|
@ -253,6 +253,9 @@ void export_image()
|
|||
.value("saturation", mapnik::saturation)
|
||||
.value("color", mapnik::_color)
|
||||
.value("value", mapnik::_value)
|
||||
.value("linear_dodge", mapnik::linear_dodge)
|
||||
.value("linear_burn", mapnik::linear_burn)
|
||||
.value("divide", mapnik::divide)
|
||||
;
|
||||
|
||||
class_<image_32,std::shared_ptr<image_32> >("Image","This class represents a 32 bit RGBA image.",init<int,int>())
|
||||
|
|
BIN
tests/python_tests/images/composited/divide.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
tests/python_tests/images/composited/linear_burn.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
tests/python_tests/images/composited/linear_dodge.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
tests/python_tests/images/style-comp-op/divide.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
tests/python_tests/images/style-comp-op/linear_burn.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
tests/python_tests/images/style-comp-op/linear_dodge.png
Normal file
After Width: | Height: | Size: 14 KiB |
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"keys": [
|
||||
"",
|
||||
"1"
|
||||
],
|
||||
"data": {},
|
||||
"grid": [
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! "
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 4 KiB |
After Width: | Height: | Size: 5.1 KiB |
|
@ -0,0 +1,67 @@
|
|||
<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" background-image="../../data/images/checker.jpg">
|
||||
|
||||
<Style name="ellipse">
|
||||
<Rule>
|
||||
<MarkersSymbolizer
|
||||
width="240"
|
||||
height="240"
|
||||
fill="white"
|
||||
fill-opacity=".7"
|
||||
comp-op="linear-dodge"
|
||||
stroke="yellow"
|
||||
stroke-width="16"
|
||||
stroke-opacity=".3"
|
||||
/>
|
||||
<MarkersSymbolizer
|
||||
width="100"
|
||||
opacity=".5"
|
||||
fill="white"
|
||||
comp-op="divide"
|
||||
transform="skewX(50)"
|
||||
allow-overlap="true"
|
||||
/>
|
||||
<MarkersSymbolizer
|
||||
width="100"
|
||||
opacity=".5"
|
||||
fill="white"
|
||||
comp-op="linear-burn"
|
||||
transform="skewX(-50)"
|
||||
allow-overlap="true"
|
||||
/>
|
||||
</Rule>
|
||||
</Style>
|
||||
|
||||
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||
<StyleName>ellipse</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="type">csv</Parameter>
|
||||
<Parameter name="inline">
|
||||
x,y
|
||||
2.5,2.5
|
||||
</Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
<!-- points to frame data view -->
|
||||
|
||||
<Style name="frame">
|
||||
<Rule>
|
||||
<PointSymbolizer />
|
||||
</Rule>
|
||||
</Style>
|
||||
|
||||
<Layer name="frame" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||
<StyleName>frame</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="type">csv</Parameter>
|
||||
<Parameter name="inline">
|
||||
x,y
|
||||
0,0
|
||||
5,0
|
||||
0,5
|
||||
5,5
|
||||
</Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
</Map>
|
|
@ -120,6 +120,7 @@ files = {
|
|||
'marker-on-line-spacing-eq-width': {'sizes':[(600,400)]},
|
||||
'marker-on-line-spacing-eq-width-overlap': {'sizes':[(600,400)]},
|
||||
'marker_line_placement_on_points':{},
|
||||
'marker-with-background-image-linear-comp-op': {},
|
||||
'marker-with-background-image': {'sizes':[(600,400),(400,600),(257,256)]},
|
||||
'marker-with-background-image-and-hsla-transform': {'sizes':[(600,400),(400,600),(257,256)]},
|
||||
'marker-on-hex-grid': {'sizes':[(600,400),(400,600),(257,256)]},
|
||||
|
|