mapnik/tests/visual_tests/styles/marker-vs-point.xml
Matt Amos eacdff2f7d Added test for markers compared with points.
Both are rendering the same SVG marker, at the same size. The
output should (and does, for Cairo & Grid renderers) look like
identical rows of spots. But the AGG one does not.

This is an attempt to create a test case for issue #2117.
2014-01-02 18:51:01 +00:00

73 lines
No EOL
1.5 KiB
XML

<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
background-color="green"
background-image-opacity="0.8"
background-image-comp-op="screen"
background-image="../data/pattern.png">
<Style name="markers">
<Rule>
<MarkersSymbolizer
width="60"
height="60"
file="../../data/svg/transparent_circle.svg"
/>
</Rule>
</Style>
<Style name="points">
<Rule>
<PointSymbolizer
file="../../data/svg/transparent_circle.svg"
/>
</Rule>
</Style>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>markers</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
x,y
-2.5,3
-2.5,0
-2.5,-3
</Parameter>
</Datasource>
</Layer>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>points</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
x,y
2.5,3
2.5,0
2.5,-3
</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
-5,-5
5,-5
-5,5
5,5
</Parameter>
</Datasource>
</Layer>
</Map>