mapnik/tests/data/good_maps/text_rotation.xml

56 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Map srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" bgcolor="steelblue">
<Style name="labels">
<Rule title="foo">
<Filter>([name]='CHILE')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'45˚ angle'" orientation="45" />
</Rule>
<Rule title="foo">
<Filter>([name]='Australia')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'- 45˚ angle'" orientation="-45" />
</Rule>
<Rule title="foo1">
<Filter>([name]='Brazil')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'90˚ angle'" orientation="90" />
</Rule>
<Rule title="foo">
<Filter>([name]='Mongolia')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'- 90˚ angle'" orientation="-90" />
</Rule>
<Rule title="foo">
<Filter>([name]='Sudan')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'180˚ angle'" orientation="180" />
</Rule>
<Rule title="foo">
<Filter>([name]='United States')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15"
name="'no rotation of text'" halo_radius="1" />
</Rule>
<Rule title="foo">
<ElseFilter />
<TextSymbolizer face_name="DejaVu Sans Book" size="15"
name="[name]" halo_radius="1" />
</Rule>
</Style>
<Layer name="point" srs="+init=epsg:4326">
<StyleName>labels</StyleName>
<Datasource>
<Parameter name="extent">-180,-70,180,70</Parameter>
<Parameter name="file">../sqlite/qgis_spatiallite.sqlite</Parameter>
<Parameter name="geometry_field">geometry</Parameter>
<Parameter name="key_field">pkuid</Parameter>
<Parameter name="table">point</Parameter>
<Parameter name="type">sqlite</Parameter>
<Parameter name="use_spatial_index">1</Parameter>
<Parameter name="wkb_format">spatialite</Parameter>
</Datasource>
</Layer>
</Map>