mapnik/tests/visual_tests/styles/orientation.xml
Hermann Kraus 6d9c808b6d Fix all reference to points.shp.
Add new character spacing test.
2012-09-13 23:35:42 +02:00

66 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">osm</Parameter>
<Parameter name="file">../data/points.osm</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<Filter>[nr] = '1'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="45">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '2'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="90">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '3'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="180">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '4'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="45" dy="10">"Line&#10;break"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '5'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="45" dy="10">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '6'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="90" dy="10">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '7'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="180" dy="10">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '8'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="0" horizontal-alignment="right" vertical-alignment="top" rotate-displacement="true">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '9'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="90" horizontal-alignment="right" vertical-alignment="top" rotate-displacement="true">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = '10'</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" orientation="180" horizontal-alignment="right" vertical-alignment="top" rotate-displacement="true">"XYZ"</TextSymbolizer>
<PointSymbolizer allow-overlap="true"/>
</Rule>
</Style>
</Map>