mapnik/tests/data/good_maps/point_symbolizer.xml

65 lines
3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" min_version="0.7.1">
<Style name="1">
<Rule title="foo">
<Filter>([name]='CHILE')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="[name] + ' (default OGC pixel)'" text_transform="lowercase" wrap_width="10" wrap_character=" " halo_radius="1" dy="5"/>
<PointSymbolizer />
</Rule>
<Rule title="foo">
<Filter>([name]='Australia')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="[name] + ' (png)'" halo_radius="1" dy="20"/>
<PointSymbolizer file="../images/dummy.png" type="png" dy="-10" width="16" height="16" allow_overlap="true"/>
</Rule>
<Rule title="foo1">
<Filter>([name]='Brazil')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="[name] + ' (svg &amp; tif)'" halo_radius="1" dy="20"/>
<PointSymbolizer file="../images/dummy.tif" type="tif" allow_overlap="true"/>
<PointSymbolizer file="../svg/ellipses.svg" allow_overlap="true"/>
</Rule>
<Rule title="foo">
<Filter>([name]='Mongolia')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="[name] + ' (tiff)'" halo_radius="1" dy="20"/>
<PointSymbolizer file="../images/dummy.tiff" width="16" height="16" allow_overlap="true"/>
</Rule>
<Rule title="foo">
<Filter>([name]='Sudan')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="[name] + ' (jpeg)'" halo_radius="1" dy="20"/>
<PointSymbolizer file="../images/dummy.jpeg" type="jpeg" />
</Rule>
<Rule title="foo">
<Filter>([name]='United States')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="[name] + ' (jpg)'" halo_radius="1" dy="20"/>
<PointSymbolizer file="../images/dummy.jpg" type="jpg" width="5" height="10" />
</Rule>
<Rule title="foo">
<ElseFilter />
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="[name]" halo_radius="1" dy="20"/>
<PointSymbolizer file="../images/bogus_will_fail.png"/>
</Rule>
</Style>
<Layer name="point" srs="+init=epsg:4326">
<StyleName>1</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>