mapnik/tests/visual_tests/styles/orientation.xml

71 lines
3.6 KiB
XML
Raw Normal View History

2013-10-24 08:59:14 +02:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84">
2014-12-09 16:31:23 +01:00
<Parameters>
<Parameter name="sizes">800, 200</Parameter>
</Parameters>
2013-10-24 08:59:14 +02:00
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
2014-12-09 16:31:23 +01:00
<Parameter name="extent">-0.05, -0.01, 0.95, 0.01</Parameter>
2013-10-24 08:59:14 +02:00
<Parameter name="file">../data/points.csv</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<Filter>[nr] = 1</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" text-transform="uppercase" orientation="rad_to_deg*0.7853981633974483">"XYZ"</TextSymbolizer>
2014-12-09 16:31:23 +01:00
<PointSymbolizer allow-overlap="true"/>
2013-10-24 08:59:14 +02:00
</Rule>
<Rule>
<Filter>[nr] = 2</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" text-transform="lowercase" orientation="180/pi*1.5707963267948966">"XYZ"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = 3</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" text-transform="capitalize" orientation="180">"XYZ"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = 4</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" text-transform="reverse" orientation="45" dy="10">"Line&#10;break"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = 5</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" orientation="45" dy="10">"XYZ"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = 6</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" orientation="90" dy="10">"XYZ"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = 7</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" orientation="180" dy="10">"XYZ"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = 8</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" orientation="0" horizontal-alignment="right" vertical-alignment="top" rotate-displacement="true">"XYZ"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = 9</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" orientation="90" horizontal-alignment="right" vertical-alignment="top" rotate-displacement="true">"XYZ"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
<Rule>
<Filter>[nr] = 10</Filter>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" allow-overlap="true" orientation="180" horizontal-alignment="right" vertical-alignment="top" rotate-displacement="true">"XYZ"</TextSymbolizer>
2013-10-24 08:59:14 +02:00
<PointSymbolizer allow-overlap="true"/>
</Rule>
</Style>
</Map>