LinePatternSymbolizer visual test
BIN
tests/data/pngsuite/linepattern.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
tests/data/pngsuite/linepattern1.png
Normal file
After Width: | Height: | Size: 210 B |
97
tests/data/svg/linepattern.svg
Normal file
|
@ -0,0 +1,97 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="12"
|
||||
height="5"
|
||||
id="svg2"
|
||||
inkscape:label="Pozadí"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="Nový dokument 1">
|
||||
<defs
|
||||
id="defs3" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="63.356767"
|
||||
inkscape:cx="5.6969231"
|
||||
inkscape:cy="-1.2203929"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1052"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid2984"
|
||||
empspacing="1"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true"
|
||||
originx="-18px"
|
||||
originy="-2.3841865e-07px" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata6">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Vrstva 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-18,-1047.3622)">
|
||||
<rect
|
||||
style="fill:#000000"
|
||||
id="rect2986"
|
||||
width="12"
|
||||
height="1"
|
||||
x="18"
|
||||
y="4"
|
||||
transform="translate(0,1047.3622)" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:1;stroke:none"
|
||||
d="m 26,1052.3622 2,-5 2,5 z"
|
||||
id="path3792"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#000000;fill-opacity:1;stroke:none"
|
||||
id="path3806"
|
||||
sodipodi:cx="22"
|
||||
sodipodi:cy="9"
|
||||
sodipodi:rx="2"
|
||||
sodipodi:ry="2"
|
||||
d="m 20.00001,8.9935833 c 0.0035,-1.1045638 0.901843,-1.9971168 2.006407,-1.993573 1.097565,0.00352 1.987227,0.8909156 1.99355,1.9884679 L 22,9 z"
|
||||
transform="translate(-0.97858528,1042.3746)"
|
||||
sodipodi:start="3.144801"
|
||||
sodipodi:end="6.2774244" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"keys": [
|
||||
"",
|
||||
"4",
|
||||
"3",
|
||||
"2",
|
||||
"1",
|
||||
"7",
|
||||
"8",
|
||||
"5"
|
||||
],
|
||||
"data": {},
|
||||
"grid": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" !!!!! ########### $$$$$$$$$$ %%%%%%% ",
|
||||
" !!! !!! ### ### $$$ $$$ %%%% %%% ",
|
||||
" !! !! ## ## $$ $$ %% %%% ",
|
||||
" !! !! ## ## $ $$ %% % ",
|
||||
" !! ! # # $$ $ % %% ",
|
||||
" ! !! # # $$ $ %% % ",
|
||||
" ! !! # # $ $ %% % ",
|
||||
" !! ! # # $ $ % % ",
|
||||
" ! ! # # $ $ % % ",
|
||||
" ! ! # # $ $ % % ",
|
||||
" ! ! # # $ $ % % ",
|
||||
" ! ! &&&&& # $ $ % % ",
|
||||
" ! '''''''''''''''''''''''''''''' # # $ $ % (((((((((((( ",
|
||||
" ! ! # # $ $ % % ",
|
||||
" ! ! # $ $ % ",
|
||||
" ! # # $ % ",
|
||||
" ! ! ## # $ $ % % ",
|
||||
" ! ! # # $ $ % % ",
|
||||
" !! ! # # $ $ % % ",
|
||||
" !! ! ## ## $$ $ % % ",
|
||||
" ! !! # # $ $$ %% %% ",
|
||||
" !! !! ## ### $$ $$ %% %% ",
|
||||
" !! !! ### ### $$$ $$$ %%% %%% ",
|
||||
" !!!!! !!!!!! ######### $$$$$$$$$$ %%%%%%%%%%%% ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 6 KiB |
28
tests/visual_tests/styles/line-pattern-symbolizer.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE Map>
|
||||
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||
<StyleName>My Style</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="type">csv</Parameter>
|
||||
<Parameter name="file">../data/line-offset.csv</Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
<Style name="My Style">
|
||||
<Rule>
|
||||
<LineSymbolizer stroke="#00FF00"/>
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[ref]=1 or [ref]=3</Filter>
|
||||
<LinePatternSymbolizer file="../../data/pngsuite/linepattern.png"/>
|
||||
<LinePatternSymbolizer offset="-5" file="../../data/pngsuite/linepattern1.png"/>
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[ref]=2 or [ref]=4</Filter>
|
||||
<LinePatternSymbolizer file="../../data/pngsuite/linepattern.png"/>
|
||||
<LinePatternSymbolizer offset="5" file="../../data/pngsuite/linepattern1.png"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
|
||||
</Map>
|
|
@ -131,6 +131,7 @@ files = {
|
|||
'rtl-point': {'sizes': [(200, 200)],'bbox':default_text_box},
|
||||
'jalign-auto': {'sizes': [(200, 200)],'bbox':default_text_box},
|
||||
'line-offset': {'sizes':[(900, 250)],'bbox': mapnik.Box2d(-5.192, 50.189, -5.174, 50.195)},
|
||||
'line-pattern-symbolizer': {'sizes':[(900, 250)],'bbox': mapnik.Box2d(-5.192, 50.189, -5.174, 50.195)},
|
||||
'tiff-alpha-gdal': {'sizes':[(600,400)]},
|
||||
'tiff-alpha-broken-assoc-alpha-gdal': {'sizes':[(600,400)]},
|
||||
'tiff-alpha-gradient-gdal': {'sizes':[(600,400)]},
|
||||
|
|