update test maps after r2582

This commit is contained in:
Dane Springmeyer 2011-02-05 03:21:22 +00:00
parent 93214f83a7
commit 375ece397e
55 changed files with 292 additions and 494 deletions

View file

@ -1,25 +1,25 @@
<Style name="amenity">
<Style name="amenity" minimum-version="0.7.2">
<Rule>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<Filter>[amenity]='post_box'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/post_box.png" type="png" width="16" height="16" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/post_box.png" type="png" width="16" height="16"/>
</Rule>
<Rule>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<Filter>[amenity]='post_office'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/post_office.png" type="png" width="16" height="16" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/post_office.png" type="png" width="16" height="16"/>
</Rule>
<Rule>
<MaxScaleDenominator>250000</MaxScaleDenominator>
<MinScaleDenominator>25000</MinScaleDenominator>
<Filter>[railway]='station'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/station_small.png" type="png" width="5" height="5" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/station_small.png" type="png" width="5" height="5"/>
</Rule>
<Rule>
<MaxScaleDenominator>25000</MaxScaleDenominator>
<Filter>[railway]='station'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/station.png" type="png" width="9" height="9" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/station.png" type="png" width="9" height="9"/>
</Rule>
<Rule>
<MaxScaleDenominator>50000</MaxScaleDenominator>
@ -36,34 +36,34 @@
<Rule>
<MaxScaleDenominator>10000</MaxScaleDenominator>
<Filter>[amenity]='pub'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/pub.png" type="png" width="16" height="16" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/pub.png" type="png" width="16" height="16"/>
</Rule>
<Rule>
<MaxScaleDenominator>100000</MaxScaleDenominator>
<Filter>[natural]='peak'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/peak.png" type="png" width="8" height="8" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/peak.png" type="png" width="8" height="8"/>
</Rule>
<Rule>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<Filter>[man_made]='mast'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/tower.png" type="png" width="32" height="32" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/tower.png" type="png" width="32" height="32"/>
</Rule>
<Rule>
<MaxScaleDenominator>10000</MaxScaleDenominator>
<Filter>[amenity]='recycling'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/recycling.png" type="png" width="20" height="20" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/recycling.png" type="png" width="20" height="20"/>
</Rule>
<Rule>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<Filter>[amenity]='hospital'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/hospital.png" type="png" width="20" height="20" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/hospital.png" type="png" width="20" height="20"/>
</Rule>
<Rule>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<Filter>[amenity]='bus_stop' or [highway]='bus_stop'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/bus_stop.png" type="png" width="30" height="12" />
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/bus_stop.png" type="png" width="30" height="12"/>
</Rule>
<Rule>
@ -82,5 +82,4 @@
<Filter>[amenity]='airport'</Filter>
<PointSymbolizer file="/Users/david/svn.openstreetmap.org/applications/rendering/mapnik/symbols/airport.png" type="png" width="16" height="16" allow_overlap="false"/>
</Rule>
</Style>
</Style>

View file

@ -1,3 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="darkfoo"/>
<!DOCTYPE Map>
<Map background-color="darkfoo" minimum-version="0.7.2"/>

View file

@ -1,10 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="test 1">
<Rule>
<PointSymbolizer file="data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="maybe" />
<PointSymbolizer file="data/images/dummy.png" allow-overlap="maybe"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map>
<!DOCTYPE Map>
<Map minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<LineSymbolizer stroke-width="foobar" />
<LineSymbolizer stroke-width="foobar"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="red">
<!DOCTYPE Map>
<Map background-color="red" minimum-version="0.7.2">
<Layer name="some_layer" status="on" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<Datasource>
<Parameter name="type">foobar_db</Parameter>
@ -10,4 +9,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="red">
<!DOCTYPE Map>
<Map background-color="red" minimum-version="0.7.2">
<Layer name="some_layer" status="on" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<Datasource>
<Parameter name="user">some_one</Parameter>
@ -9,4 +8,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,16 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[
<!ENTITY db_name "gis">
<!ENTITY db_host "/no/socket/here">
<!DOCTYPE Map [
<!ENTITY db_name "gis">
<!ENTITY db_host "/no/socket/here">
]>
<Map background-color="red">
<Map background-color="red" minimum-version="0.7.2">
<Layer name="some_layer" status="on" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">&db_host;</Parameter>
<Parameter name="host">/no/socket/here</Parameter>
<Parameter name="password">SECRET</Parameter>
<Parameter name="dbname">&db_name;</Parameter>
<Parameter name="dbname">gis</Parameter>
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,16 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[
<!ENTITY db_user "foobar">
<!ENTITY db_name "gis">
<!DOCTYPE Map [
<!ENTITY db_user "foobar">
<!ENTITY db_name "gis">
]>
<Map background-color="red">
<Map background-color="red" minimum-version="0.7.2">
<Layer name="some_layer" status="on" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="user">&db_user;</Parameter>
<Parameter name="user">foobar</Parameter>
<Parameter name="password">SECRET</Parameter>
<Parameter name="dbname">&db_name;</Parameter>
<Parameter name="dbname">gis</Parameter>
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map>
<!DOCTYPE Map>
<Map minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<Filter>[mapnik:geometry] = foobar </Filter>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<TextSymbolizer name="[foo]" face_name="foobar" size="12"/>
<TextSymbolizer name="[foo]" size="12" face-name="foobar"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="red">
<!DOCTYPE Map>
<Map background-color="red" minimum-version="0.7.2">
<Style name="some_style">
<Rule name="some_rule">
<LineSymbolizer stroke-linecap="fooish" />
<LineSymbolizer stroke-linecap="fooish"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="red">
<!DOCTYPE Map>
<Map background-color="red" minimum-version="0.7.2">
<Style name="some_style">
<Rule name="some_rule">
<LineSymbolizer stroke-linejoin="meta" />
<LineSymbolizer stroke-linejoin="meta"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,3 +1,3 @@
<Map background-color="steelblue" minimum_version="50.0.0">
<Map background-color="steelblue" minimum-version="100.0.0">
<!-- arbitrarily large version number that should throw error -->
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map>
<!DOCTYPE Map>
<Map minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<MaxScaleDenominator>3,141</MaxScaleDenominator>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map>
<!DOCTYPE Map>
<Map minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<MinScaleDenominator>foobar</MinScaleDenominator>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<PolygonPatternSymbolizer width="16" type="png"/>
<PolygonPatternSymbolizer/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,10 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<ShieldSymbolizer name="[foo.ttf]" face_name="bold" size="10" fill="#444"
file="data/images/dummy.png" type="png" width="16"/>
<ShieldSymbolizer name="[foo.ttf]" size="10" fill="#444" file="data/images/dummy.png" face-name="bold"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="red">
<!DOCTYPE Map>
<Map background-color="red" minimum-version="0.7.2">
<Style name="some_style">
<Rule name="some_rule">
<LineSymbolizer stoke="red" stroke-dasharray="1.0, 4.0, foo, 6.0" />
<LineSymbolizer stoke="red" stroke-dasharray="1.0, 4.0, foo, 6.0"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map>
<!DOCTYPE Map>
<Map minimum-version="0.7.2">
<Style/>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<TextSymbolizer name="foo.ttf" face_name="bold" size="-5"/>
<TextSymbolizer name="[foo.ttf]" size="-5" face-name="bold"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,5 +1,4 @@
<?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" background-color="steelblue">
<Map srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" background-color="steelblue" minimum-version="0.7.2">
<Style name="style">
<!-- Asia - default dark color behind light polygon
@ -8,34 +7,34 @@
<Rule>
<Filter>([REGION]=142)</Filter>
<PolygonSymbolizer fill="yellow" />
<PolygonSymbolizer fill="yellow"/>
</Rule>
<!-- Europe, using Opacity avoids "ghost lines"
-->
<Rule>
<Filter>([REGION]=150)</Filter>
<PolygonSymbolizer fill="rgb(176,151,238)" fill-opacity=".3" />
<PolygonSymbolizer fill="rgb(176,151,238)" fill-opacity=".3"/>
</Rule>
<!-- Americas, using gamma of .65 to remove blue lines works as well..
-->
<Rule>
<Filter>([REGION]=19)</Filter>
<PolygonSymbolizer fill="rgb(136,172,2)" gamma=".6" />
<PolygonSymbolizer fill="rgb(136,172,2)" gamma=".6"/>
</Rule>
<!-- Africa, using gamma of .65 to remove blue lines works as well..
-->
<Rule>
<Filter>([REGION]=2)</Filter>
<PolygonSymbolizer fill="rgb(239,98,133)" gamma=".65" />
<PolygonSymbolizer fill="rgb(239,98,133)" gamma=".65"/>
</Rule>
<!-- Oceana, all disjunct polygons so it does not matter -->
<Rule>
<Filter>([REGION]=9)</Filter>
<PolygonSymbolizer fill="rgb(212,9,14)" />
<PolygonSymbolizer fill="rgb(212,9,14)"/>
</Rule>
</Style>
<Layer name="world" srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs">
@ -45,4 +44,4 @@
<Parameter name="type">shape</Parameter>
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,2 +1,2 @@
<Map background-image="../../data/images/checker.jpg">
<Map background-image="../../data/images/checker.jpg" minimum-version="0.7.2">
</Map>

View file

@ -1,52 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" paths_from_xml="false">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2" paths-from-xml="false">
<Style name="test 1">
<Rule>
<PointSymbolizer file="../data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="true" />
<PointSymbolizer file="../data/images/dummy.png" allow-overlap="true"/>
</Rule>
</Style>
<Style name="test 2">
<Rule>
<PointSymbolizer file="../data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="yes" />
<PointSymbolizer file="../data/images/dummy.png" allow-overlap="yes"/>
</Rule>
</Style>
<Style name="test 3">
<Rule>
<PointSymbolizer file="../data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="on" />
<PointSymbolizer file="../data/images/dummy.png" allow-overlap="on"/>
</Rule>
</Style>
<Style name="test 4">
<Rule>
<PointSymbolizer file="../data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="1" />
<PointSymbolizer file="../data/images/dummy.png" allow-overlap="1"/>
</Rule>
</Style>
<Style name="test 5">
<Rule>
<PointSymbolizer file="../data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="false" />
<PointSymbolizer file="../data/images/dummy.png" allow-overlap="false"/>
</Rule>
</Style>
<Style name="test 6">
<Rule>
<PointSymbolizer file="../data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="no" />
<PointSymbolizer file="../data/images/dummy.png" allow-overlap="no"/>
</Rule>
</Style>
<Style name="test 7">
<Rule>
<PointSymbolizer file="../data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="off" />
<PointSymbolizer file="../data/images/dummy.png" allow-overlap="off"/>
</Rule>
</Style>
<Style name="test 8">
<Rule>
<PointSymbolizer file="../data/images/dummy.png" type="png" width="16"
height="16" allow_overlap="0" />
<PointSymbolizer file="../data/images/dummy.png" allow-overlap="0"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,8 +1,8 @@
<Map background-color="steelblue" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs">
<Map background-color="steelblue" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs" minimum-version="0.7.2">
<Style name="test">
<Rule>
<BuildingSymbolizer fill="yellow" fill-opacity=".7" height="30" />
<BuildingSymbolizer fill="yellow" fill-opacity=".7" height="30"/>
</Rule>
</Style>

View file

@ -1,9 +1,8 @@
<!-- see: http://trac.mapnik.org/changeset/574 -->
<Map background-color="steelblue" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs">
<!-- see: http://trac.mapnik.org/changeset/574 --><Map background-color="steelblue" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs" minimum-version="0.7.2">
<Style name="test">
<Rule>
<PolygonSymbolizer />
<PolygonSymbolizer/>
</Rule>
</Style>

View file

@ -1,12 +1,11 @@
<!-- see: http://trac.mapnik.org/changeset/574 -->
<Map background-color="steelblue" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs">
<!-- see: http://trac.mapnik.org/changeset/574 --><Map background-color="steelblue" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs" minimum-version="0.7.2">
<FileSource name="foo">../images/</FileSource>
<Style name="test">
<Rule>
<BuildingSymbolizer fill="darkred" fill-opacity="1" height="30" />
<PointSymbolizer base="foo" file="dummy.png" width="16" height="16" type="png" />
<BuildingSymbolizer fill="darkred" fill-opacity="1" height="30"/>
<PointSymbolizer base="foo" file="dummy.png"/>
</Rule>
</Style>

View file

@ -1,19 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Map>
<Map minimum-version="0.7.2">
<Style name="arrows">
<Rule>
<GlyphSymbolizer
face_name="DejaVu Sans Condensed"
size="10"
char="'í'"
allow_overlap="1"
avoid_edges="0"
halo_fill="rgba(0%,0%,0%,.1)"
halo_radius="1"
value="[value]"
angle="[azimuth]+90"
angle_mode="azimuth"
>
<GlyphSymbolizer size="10" char="'&#237;'" value="[value]" angle="[azimuth]+90" face-name="DejaVu Sans Condensed" allow-overlap="1" avoid-edges="0" halo-fill="rgba(0%,0%,0%,.1)" halo-radius="1" angle-mode="azimuth">
<RasterColorizer>
<ColorBand value="0" color="#0044cc"/>
<ColorBand value="10" color="#00cc00"/>
@ -22,4 +10,4 @@
</GlyphSymbolizer>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Map srs="+init=epsg:4326" background-color="rgb(233,233,233)">
<Map srs="+init=epsg:4326" background-color="rgb(233,233,233)" minimum-version="0.7.2">
<Style name="multipolygon_style">
<Rule>
@ -9,14 +8,14 @@
<Rule>
<!-- Text using interior point -->
<!-- Using normal centroid algorithm -->
<TextSymbolizer face_name="DejaVu Sans Book" halo_radius="2" dy="2" name="'interior point'" allow_overlap="true" placement="interior"/>
<PointSymbolizer allow_overlap="true" placement="interior"/>
<TextSymbolizer dy="2" name="'interior point'" placement="interior" face-name="DejaVu Sans Book" halo-radius="2" allow-overlap="true"/>
<PointSymbolizer placement="interior" allow-overlap="true"/>
</Rule>
<Rule>
<!-- Text using interior point -->
<!-- Using normal centroid algorithm -->
<TextSymbolizer face_name="DejaVu Sans Book" halo_radius="2" dy="-2" name="'centroid'" allow_overlap="true"/>
<PointSymbolizer allow_overlap="true"/>
<TextSymbolizer dy="-2" name="'centroid'" face-name="DejaVu Sans Book" halo-radius="2" allow-overlap="true"/>
<PointSymbolizer allow-overlap="true"/>
</Rule>
</Style>

View file

@ -1,4 +1,4 @@
<Map background-color="steelblue" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs">
<Map background-color="steelblue" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs" minimum-version="0.7.2">
<Style name="test">
<Rule>

View file

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="white" srs="+init=epsg:4326" minimum_version="0.8.0">
<!DOCTYPE Map>
<Map background-color="white" srs="+init=epsg:4326" minimum-version="0.8.0">
<Style name="1">
<Rule title="foo">
<MarkersSymbolizer stroke="green" stroke-width="1.3" fill="yellow" />
<LineSymbolizer stroke-width=".2" stroke="grey" />
<MarkersSymbolizer stroke="green" stroke-width="1.3" fill="yellow"/>
<LineSymbolizer stroke-width=".2" stroke="grey"/>
</Rule>
</Style>
@ -22,4 +21,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="white" srs="+init=epsg:4326" minimum_version="0.8.0">
<!DOCTYPE Map>
<Map background-color="white" srs="+init=epsg:4326" minimum-version="0.8.0">
<Style name="1">
<Rule title="foo">
@ -28,7 +27,7 @@
<MarkersSymbolizer fill="#cc3344" opacity=".7" width="15" height="10" stroke="#cc3344" stroke-width="7" stroke-opacity=".2" placement="point" marker_type="ellipse"/>
</Rule>
<Rule title="foo">
<ElseFilter />
<ElseFilter/>
<PointSymbolizer file="../svg/ellipses.svg"/>
</Rule>
</Style>
@ -61,4 +60,4 @@
</Datasource>
</Layer>
-->
</Map>
</Map>

View file

@ -1,18 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Map srs="+init=epsg:4326" minimum_version="0.8.0">
<Map srs="+init=epsg:4326" minimum-version="0.8.0">
<Style name="1">
<Rule>
<MarkersSymbolizer fill="black" opacity=".01" width="10" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity=".05" width="9" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="8" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="7" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="6" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="5" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="4" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="3" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.2" width="2" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.2" width="1" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity=".01" width="10" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity=".05" width="9" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="8" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="7" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="6" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="5" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="4" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.1" width="3" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.2" width="2" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="black" opacity="0.2" width="1" allow_overlap="true" stroke-width="0"/>
</Rule>
</Style>
@ -29,4 +28,4 @@
<Parameter name="wkb_format">spatialite</Parameter>
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Map background-color="lightgrey" srs="+init=epsg:4326" minimum_version="0.8.0">
<Map background-color="lightgrey" srs="+init=epsg:4326" minimum-version="0.8.0">
<Style name="1">
<Rule>
<Filter>([name]='CHILE' or [name]='Australia' or [name]='Brazil')</Filter>
<!-- stacked without outlines -->
<MarkersSymbolizer fill="red" width="5" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="red" width="5" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="orange" width="4" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="yellow" width="3" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="green" width="2" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="green" width="2" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="blue" width="1" allow_overlap="true" stroke-width="0"/>
<MarkersSymbolizer fill="purple" width=".5" allow_overlap="true" stroke-width="0"/>
</Rule>
<Rule>
<ElseFilter />
<ElseFilter/>
<!-- single with without outline using stroke params -->
<MarkersSymbolizer fill="white" allow_overlap="true" stroke-width=".3" stroke="green" stroke-opacity=".5"/>
</Rule>
@ -31,4 +30,4 @@
<Parameter name="wkb_format">spatialite</Parameter>
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,6 +1,5 @@
<?xml version='1.0' encoding='ASCII' standalone='yes'?>
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="mapnik:selection">
<Rule>
<Filter>[mapnik:geometry] = 1</Filter>
@ -54,7 +53,7 @@
<Rule>
<MaxScaleDenominator>50000000</MaxScaleDenominator>
<MinScaleDenominator>10000000</MinScaleDenominator>
<TextSymbolizer name="[place_name]" face_name="DejaVu Sans Book" size="10" fill="#444" halo_radius="1" wrap_width="0"/>
<TextSymbolizer name="[place_name]" size="10" fill="#444" face-name="DejaVu Sans Book" halo-radius="1" wrap-width="0"/>
</Rule>
</Style>
<Style name="text">
@ -62,85 +61,85 @@
<Filter>[place] = 'city'</Filter>
<MaxScaleDenominator>10000000</MaxScaleDenominator>
<MinScaleDenominator>2000000</MinScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
<TextSymbolizer name="[name]" size="10" fill="#000" dy="0" face-name="DejaVu Sans Book" halo-radius="1" wrap-width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'city'</Filter>
<MaxScaleDenominator>2000000</MaxScaleDenominator>
<MinScaleDenominator>20000</MinScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="14" fill="#000" dy="0" halo_radius="2" wrap_width="0"/>
<TextSymbolizer name="[name]" size="14" fill="#000" dy="0" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'town'</Filter>
<MaxScaleDenominator>2000000</MaxScaleDenominator>
<MinScaleDenominator>50000</MinScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="11" fill="#000" halo_radius="2" wrap_width="20"/>
<TextSymbolizer name="[name]" size="11" fill="#000" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="20"/>
</Rule>
<Rule>
<Filter>[place] = 'town'</Filter>
<MaxScaleDenominator>50000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="14" fill="#777777" halo_radius="1" wrap_width="20"/>
<TextSymbolizer name="[name]" size="14" fill="#777777" face-name="DejaVu Sans Book" halo-radius="1" wrap-width="20"/>
</Rule>
<Rule>
<Filter>[place] = 'village'</Filter>
<MaxScaleDenominator>250000</MaxScaleDenominator>
<MinScaleDenominator>50000</MinScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="8" fill="#000" halo_radius="2" wrap_width="0"/>
<TextSymbolizer name="[name]" size="8" fill="#000" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'village'</Filter>
<MaxScaleDenominator>50000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="11" fill="#777777" halo_radius="1" wrap_width="0"/>
<TextSymbolizer name="[name]" size="11" fill="#777777" face-name="DejaVu Sans Book" halo-radius="1" wrap-width="0"/>
</Rule>
<Rule>
<Filter>[place] = 'hamlet'</Filter>
<MaxScaleDenominator>125000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="8" fill="#000" halo_radius="1" wrap_width="0"/>
<TextSymbolizer name="[name]" size="8" fill="#000" face-name="DejaVu Sans Book" halo-radius="1" wrap-width="0"/>
</Rule>
<Rule>
<Filter>[amenity] = 'pub'</Filter>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Bold" size="10" fill="brown" dy="16" halo_radius="1" wrap_width="0"/>
<TextSymbolizer name="[name]" size="10" fill="brown" dy="16" face-name="DejaVu Sans Bold" halo-radius="1" wrap-width="0"/>
</Rule>
<Rule>
<Filter>[amenity] = 'place_of_worship'</Filter>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="#000033" dy="12" halo_radius="1" wrap_width="20"/>
<TextSymbolizer name="[name]" size="10" fill="#000033" dy="12" face-name="DejaVu Sans Book" halo-radius="1" wrap-width="20"/>
</Rule>
<Rule>
<Filter>[leisure] &lt;&gt; '' or [landuse] &lt;&gt; '' </Filter>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="#000" halo_radius="2" wrap_width="10"/>
<TextSymbolizer name="[name]" size="10" fill="#000" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="10"/>
</Rule>
<Rule>
<Filter>[natural] = 'wood'</Filter>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="#000" halo_radius="2" wrap_width="10"/>
<TextSymbolizer name="[name]" size="10" fill="#000" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="10"/>
</Rule>
<Rule>
<Filter>[natural] = 'peak'</Filter>
<MaxScaleDenominator>100000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="brown" dy="10" halo_radius="1" wrap_width="20"/>
<TextSymbolizer name="[name]" size="10" fill="brown" dy="10" face-name="DejaVu Sans Book" halo-radius="1" wrap-width="20"/>
</Rule>
<Rule>
<Filter>[natural] = 'water' or [natural] = 'lake' or [landuse] = 'reservoir'</Filter>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="#6699cc" halo_radius="1" wrap_width="20"/>
<TextSymbolizer name="[name]" size="10" fill="#6699cc" face-name="DejaVu Sans Book" halo-radius="1" wrap-width="20"/>
</Rule>
<Rule>
<Filter>[tourism] &lt;&gt; ''</Filter>
<MaxScaleDenominator>10000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="#660033" halo_radius="2" wrap_width="10"/>
<TextSymbolizer name="[name]" size="10" fill="#660033" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="10"/>
</Rule>
<Rule>
<Filter>[amenity] = 'school' or [amenity] = 'university'</Filter>
<MaxScaleDenominator>25000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="8" fill="#000033" halo_radius="2" wrap_width="12"/>
<TextSymbolizer name="[name]" size="8" fill="#000033" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="12"/>
</Rule>
<Rule>
<Filter>[amenity] = 'hospital'</Filter>
<MaxScaleDenominator>25000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="8" fill="#000033" dy="12" halo_radius="2" wrap_width="12"/>
<TextSymbolizer name="[name]" size="8" fill="#000033" dy="12" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="12"/>
</Rule>
</Style>
<Style name="water">
@ -176,7 +175,7 @@
<MaxScaleDenominator>100000</MaxScaleDenominator>
<MinScaleDenominator>50000</MinScaleDenominator>
<LineSymbolizer stroke-linejoin="round" stroke="#b5d0d0" stroke-width="4" stroke-linecap="round"/>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="8" fill="#6699cc" halo_radius="1" placement="line"/>
<TextSymbolizer name="[name]" size="8" fill="#6699cc" placement="line" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule>
<ElseFilter/>
@ -189,21 +188,21 @@
<MaxScaleDenominator>25000</MaxScaleDenominator>
<MinScaleDenominator>1000</MinScaleDenominator>
<LineSymbolizer stroke-linejoin="round" stroke="#b5d0d0" stroke-width="10" stroke-linecap="round"/>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="#6699cc" halo_radius="1" placement="line"/>
<TextSymbolizer name="[name]" size="10" fill="#6699cc" placement="line" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule>
<Filter>[waterway]='canal'</Filter>
<MaxScaleDenominator>50000</MaxScaleDenominator>
<MinScaleDenominator>1000</MinScaleDenominator>
<LineSymbolizer stroke-linejoin="round" stroke="#b5d0d0" stroke-width="7" stroke-linecap="round"/>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="9" fill="#6699cc" halo_radius="1" placement="line"/>
<TextSymbolizer name="[name]" size="9" fill="#6699cc" placement="line" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule>
<ElseFilter/>
<MaxScaleDenominator>25000</MaxScaleDenominator>
<MinScaleDenominator>1000</MinScaleDenominator>
<LineSymbolizer stroke="#b5d0d0" stroke-width="2"/>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="8" fill="#6699cc" halo_radius="1" placement="line"/>
<TextSymbolizer name="[name]" size="8" fill="#6699cc" placement="line" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
</Style>
<Style name="minor-roads-casing">
@ -729,26 +728,25 @@
<Filter>[highway] = 'trunk' or [highway] = 'primary' or [highway] = 'secondary'</Filter>
<MaxScaleDenominator>75000</MaxScaleDenominator>
<MinScaleDenominator>50000</MinScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="8" fill="black" halo_radius="0" placement="line"/>
<TextSymbolizer name="[name]" size="8" fill="black" placement="line" face-name="DejaVu Sans Book" halo-radius="0"/>
</Rule>
<Rule>
<Filter>[highway] = 'trunk' or [highway] = 'primary' or [highway] = 'secondary'</Filter>
<MaxScaleDenominator>50000</MaxScaleDenominator>
<MinScaleDenominator>1000</MinScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="black" halo_radius="0" placement="line"/>
<TextSymbolizer name="[name]" size="10" fill="black" placement="line" face-name="DejaVu Sans Book" halo-radius="0"/>
</Rule>
<Rule>
<ElseFilter/>
<MaxScaleDenominator>25000</MaxScaleDenominator>
<MinScaleDenominator>5000</MinScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="9" fill="#000" halo_radius="1" placement="line"/>
<TextSymbolizer name="[name]" size="9" fill="#000" placement="line" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule>
<ElseFilter/>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<MinScaleDenominator>100</MinScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="11" fill="#000" halo_radius="1" placement="line"/>
<TextSymbolizer name="[name]" size="11" fill="#000" placement="line" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,5 +1,5 @@
<!DOCTYPE Map>
<Map srs="+proj=latlong +datum=WGS84" background-color="steelblue" minimum_version="0.7.2">
<Map srs="+proj=latlong +datum=WGS84" background-color="steelblue" minimum-version="0.7.2">
<Style name="red">
<Rule>

View file

@ -1,4 +1,4 @@
<Map paths_from_xml="false">
<Map minimum-version="0.7.2" paths-from-xml="false">
<Layer name="lay">
<Datasource base="shp">

View file

@ -1,4 +1,4 @@
<Map paths_from_xml="true"><!-- default is true -->
<Map minimum-version="0.7.2" paths-from-xml="true"><!-- default is true -->
<Layer name="lay">
<Datasource base="shp">

View file

@ -1,37 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum_version="0.7.0">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum-version="0.7.0">
<Style name="1">
<Rule title="foo">
<Filter>([x]=0)</Filter>
<TextSymbolizer
name="[label]"
face_name="DejaVu Sans Book"
size="10"
halo_radius="1" dy="-10"
allow_overlap="true"
/>
<PointSymbolizer />
<TextSymbolizer name="[label]" size="10" dy="-10" face-name="DejaVu Sans Book" halo-radius="1" allow-overlap="true"/>
<PointSymbolizer/>
</Rule>
<Rule title="foo">
<Filter>([y]=0)</Filter>
<TextSymbolizer
name="[label]"
face_name="DejaVu Sans Book"
size="10"
halo_radius="1" dy="5"
/>
<PointSymbolizer />
<TextSymbolizer name="[label]" size="10" dy="5" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer/>
</Rule>
<Rule title="foo">
<ElseFilter />
<TextSymbolizer
name="[label]"
face_name="DejaVu Sans Book"
size="10"
halo_radius="1" dy="-5"
/>
<PointSymbolizer />
<ElseFilter/>
<TextSymbolizer name="[label]" size="10" dy="-5" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer/>
</Rule>
</Style>
@ -45,4 +28,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,37 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum_version="0.7.0">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum-version="0.7.0">
<Style name="1">
<Rule title="foo">
<Filter>([x]=0)</Filter>
<TextSymbolizer
name="[label]"
face_name="DejaVu Sans Book"
size="10"
halo_radius="1" dy="-10"
allow_overlap="true"
/>
<PointSymbolizer />
<TextSymbolizer name="[label]" size="10" dy="-10" face-name="DejaVu Sans Book" halo-radius="1" allow-overlap="true"/>
<PointSymbolizer/>
</Rule>
<Rule title="foo">
<Filter>([y]=0)</Filter>
<TextSymbolizer
name="[label]"
face_name="DejaVu Sans Book"
size="10"
halo_radius="1" dy="5"
/>
<PointSymbolizer />
<TextSymbolizer name="[label]" size="10" dy="5" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer/>
</Rule>
<Rule title="foo">
<ElseFilter />
<TextSymbolizer
name="[label]"
face_name="DejaVu Sans Book"
size="10"
halo_radius="1" dy="-5"
/>
<PointSymbolizer />
<ElseFilter/>
<TextSymbolizer name="[label]" size="10" dy="-5" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer/>
</Rule>
</Style>
@ -84,4 +67,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,48 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum_version="0.8.0">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum-version="0.8.0">
<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 />
<TextSymbolizer size="10" name="[name] + ' (default OGC pixel)'" dy="5" face-name="DejaVu Sans Book" text-transform="lowercase" wrap-width="10" wrap-character=" " halo-radius="1"/>
<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"/>
<TextSymbolizer size="10" name="[name] + ' (png)'" dy="20" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer file="../images/dummy.png" dy="-10" 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"/>
<TextSymbolizer size="10" name="[name] + ' (svg &amp; tif)'" dy="20" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer file="../images/dummy.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"/>
<TextSymbolizer size="10" name="[name] + ' (tiff)'" dy="20" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer file="../images/dummy.tiff" 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" />
<TextSymbolizer size="10" name="[name] + ' (jpeg)'" dy="20" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer file="../images/dummy.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" />
<TextSymbolizer size="10" name="[name] + ' (jpg)'" dy="20" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer file="../images/dummy.jpg"/>
</Rule>
<Rule title="foo">
<ElseFilter />
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="[name]" halo_radius="1" dy="20"/>
<ElseFilter/>
<TextSymbolizer size="10" name="[name]" dy="20" face-name="DejaVu Sans Book" halo-radius="1"/>
<PointSymbolizer file="../images/bogus_will_fail.png"/>
</Rule>
</Style>
@ -61,4 +53,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum_version="0.8.0">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum-version="0.8.0">
<Style name="1">
<Rule title="foo1">
<Filter>([name]='Brazil' or [name]='Mongolia' or [name]='Sudan')</Filter>
<PointSymbolizer file="../svg/ellipses.svg" allow_overlap="true"/>
<PointSymbolizer file="../svg/ellipses.svg" allow-overlap="true"/>
</Rule>
<Rule title="foo">
<ElseFilter />
<PointSymbolizer ignore_placement="true" file="../svg/ellipses.svg"/>
<PointSymbolizer />
<ElseFilter/>
<PointSymbolizer file="../svg/ellipses.svg" ignore-placement="true"/>
<PointSymbolizer/>
</Rule>
</Style>
@ -27,4 +26,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,29 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" minimum_version="0.8.0">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" minimum-version="0.8.0">
<Style name="test">
<Rule title="asia">
<Filter>([REGION]=142)</Filter>
<PointSymbolizer file="../images/dummy.png" allow_overlap="true"/>
<PointSymbolizer file="../images/dummy.png" allow-overlap="true"/>
</Rule>
<Rule title="europe">
<Filter>([REGION]=150)</Filter>
<!-- requires at least Mapnik 0.7.1 to work due to http://trac.mapnik.org/ticket/508 -->
<PolygonPatternSymbolizer file="../images/dummy.png" />
<PolygonPatternSymbolizer file="../images/dummy.png"/>
</Rule>
<Rule title="americas">
<Filter>([REGION]=19)</Filter>
<!-- requires at least Mapnik 0.7.1 to work due to http://trac.mapnik.org/ticket/508 -->
<LinePatternSymbolizer file="../images/dummy.png" />
<LinePatternSymbolizer file="../images/dummy.png"/>
</Rule>
<Rule title="Africa">
<Filter>([REGION]=2)</Filter>
<ShieldSymbolizer name="[NAME]" placement="vertex" face_name="DejaVu Sans Bold" size="10" fill="#000000" file="../images/dummy.png" />
<ShieldSymbolizer name="[NAME]" placement="vertex" size="10" fill="#000000" file="../images/dummy.png" face-name="DejaVu Sans Bold"/>
</Rule>
<Rule title="rest">
<ElseFilter />
<LineSymbolizer stroke-width="1" />
<ElseFilter/>
<LineSymbolizer stroke-width="1"/>
</Rule>
</Style>
@ -34,4 +33,4 @@
<Parameter name="type">shape</Parameter>
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Map srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs">
<Map srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs" minimum-version="0.7.2">
<FileSource name="foo">../images/</FileSource>
@ -7,23 +6,15 @@
<Rule>
<Filter>([EAS_ID]&lt;=170) and ([EAS_ID] &lt;&gt; 165)</Filter>
<!-- alignment="local" is default -->
<PolygonPatternSymbolizer
alignment="local"
file="../images/checker.jpg"
/>
<PolygonPatternSymbolizer alignment="local" file="../images/checker.jpg"/>
<LineSymbolizer stroke="green" stroke-width="2"/>
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="'local'" halo_radius="1" dy="20"/>
<TextSymbolizer size="10" name="'local'" dy="20" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule>
<ElseFilter />
<PolygonPatternSymbolizer
alignment="global"
file="../images/checker.jpg"
/>
<ElseFilter/>
<PolygonPatternSymbolizer alignment="global" file="../images/checker.jpg"/>
<LineSymbolizer stroke="yellow" stroke-width=".5"/>
<TextSymbolizer face_name="DejaVu Sans Book" size="10"
name="'global'" halo_radius="1" dy="20"/>
<TextSymbolizer size="10" name="'global'" dy="20" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
</Style>

View file

@ -1,13 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- see: http://trac.mapnik.org/changeset/574 -->
<Map background-color="transparent" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs">
<!-- see: http://trac.mapnik.org/changeset/574 --><Map background-color="transparent" srs="+proj=longlat +ellps=airy +datum=OSGB36 +no_defs" minimum-version="0.7.2">
<FileSource name="foo">../images/</FileSource>
<Style name="test">
<Rule>
<PolygonSymbolizer fill="lavender" fill-opacity=".5" />
<PointSymbolizer base="foo" file="dummy.png" width="16" height="16" type="png" />
<PolygonSymbolizer fill="lavender" fill-opacity=".5"/>
<PointSymbolizer base="foo" file="dummy.png"/>
</Rule>
</Style>

View file

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Map background-color="white" srs="+init=epsg:32630">
<Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2">
<Style name="two-value" >
<Style name="two-value">
<Rule>
<RasterSymbolizer opacity="1" >
<RasterSymbolizer opacity="1">
<RasterColorizer>
<ColorBand value="0" color="yellow" label="&lt;0"></ColorBand>
<ColorBand value="26" color="purple" midpoints="1"></ColorBand>
<ColorBand value="0" color="yellow" label="&lt;0"/>
<ColorBand value="26" color="purple" midpoints="1"/>
</RasterColorizer>
</RasterSymbolizer>
</Rule>
@ -16,8 +15,8 @@
<Rule>
<RasterSymbolizer>
<RasterColorizer>
<ColorBand value="0" color="red" label="&lt;0"></ColorBand>
<ColorBand value="26" color="green" midpoints="100"></ColorBand>
<ColorBand value="0" color="red" label="&lt;0"/>
<ColorBand value="26" color="green" midpoints="100"/>
</RasterColorizer>
</RasterSymbolizer>
</Rule>

View file

@ -1,43 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- nik2img.py -b 60 46 80 28 rtl_text_map.xml text_styles.png -->
<Map
background-color="#eee"
srs="+init=epsg:4326"
font_directory="../fonts/"
minimum_version="0.1.1"
>
<!-- nik2img.py -b 60 46 80 28 rtl_text_map.xml text_styles.png --><Map background-color="#eee" srs="+init=epsg:4326" minimum-version="0.1.1" font-directory="../fonts/">
<Style name="custom_font">
<Rule>
<TextSymbolizer
name="[NAME_FA]"
face_name="XB Zar Regular"
fill="#000"
size="20"
halo_fill="#fff"
halo_radius="2"
dy="-2"
wrap_width="50"
line_spacing="3"
allow_overlap="true"
/>
<TextSymbolizer
name="[NAME_EN]"
face_name="DejaVu Sans Book"
text_transform="uppercase"
fill="#000"
opacity="0.6"
size="10"
halo_fill="#fff"
halo_radius="2"
character_spacing="3"
dy="2"
wrap_width="50"
line_spacing="4"
allow_overlap="true"
/>
<TextSymbolizer name="[NAME_FA]" fill="#000" size="20" dy="-2" face-name="XB Zar Regular" halo-fill="#fff" halo-radius="2" wrap-width="50" line-spacing="3" allow-overlap="true"/>
<TextSymbolizer name="[NAME_EN]" fill="#000" opacity="0.6" size="10" dy="2" face-name="DejaVu Sans Book" text-transform="uppercase" halo-fill="#fff" halo-radius="2" character-spacing="3" wrap-width="50" line-spacing="4" allow-overlap="true"/>
</Rule>
</Style>
@ -49,4 +15,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,49 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum_version="0.7.0">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum-version="0.7.0">
<Style name="1">
<Rule>
<ShieldSymbolizer
name="[label]"
file="../images/dummy.png"
face_name="DejaVu Sans Book"
size="10"
transform="scale(5) translate(15, 15) rotate(20) skewX(20) skewY(5)"
halo_radius="1"
dy="-5"
dx="-5"
shield_dx="10"
shield_dy="10"
no_text="false"
opacity=".5"
text-opacity=".3"
allow_overlap="true"
avoid_edges="false"
/>
<ShieldSymbolizer name="[label]" file="../images/dummy.png" size="10" transform="scale(5) translate(15, 15) rotate(20) skewX(20) skewY(5)" dy="-5" dx="-5" opacity=".5" text-opacity=".3" face-name="DejaVu Sans Book" halo-radius="1" shield-dx="10" shield-dy="10" no-text="false" allow-overlap="true" avoid-edges="false"/>
</Rule>
<Rule>
<PointSymbolizer
allow_overlap="true" />
<PointSymbolizer allow-overlap="true"/>
</Rule>
</Style>
<Style name="2">
<Rule>
<LineSymbolizer></LineSymbolizer>
<LineSymbolizer/>
</Rule>
<Rule>
<ShieldSymbolizer
name="[label]"
file="../svg/ellipses.svg"
allow_overlap="true"
face_name="DejaVu Sans Book"
size="10"
no_text="false"
opacity=".5"
text-opacity=".3"
spacing="50"
line_spacing="10"
placement="line"
/>
<ShieldSymbolizer name="[label]" file="../svg/ellipses.svg" size="10" opacity=".5" text-opacity=".3" spacing="50" placement="line" allow-overlap="true" face-name="DejaVu Sans Book" no-text="false" line-spacing="10"/>
</Rule>
</Style>
@ -65,4 +35,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Map srs="+init=epsg:4326" background-color="rgb(255,255,255)">
<Map srs="+init=epsg:4326" background-color="rgb(255,255,255)" minimum-version="0.7.2">
<Style name="point_style">
<Rule>
<PointSymbolizer file="../svg/point.svg"/>
<TextSymbolizer face_name="DejaVu Sans Book" size="12" name="[name]" halo_fill="rgba(255,255,255,.5)" halo_radius=".5" dy="-5"/>
<TextSymbolizer size="12" name="[name]" dy="-5" face-name="DejaVu Sans Book" halo-fill="rgba(255,255,255,.5)" halo-radius=".5"/>
</Rule>
</Style>
<Style name="world_borders_style">

View file

@ -1,30 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum_version="0.7.0">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum-version="0.7.0">
<Style name="1">
<Rule>
<Filter>([label]='center')</Filter>
<TextSymbolizer
name="'one&#10;two&#10;three'"
face_name="DejaVu Sans Book"
size="10"
wrap_character=","
wrap_width="1"
halo_radius="1" dy="-5"
/>
<PointSymbolizer />
<TextSymbolizer name="'one&#10;two&#10;three'" size="10" dy="-5" face-name="DejaVu Sans Book" wrap-character="," wrap-width="1" halo-radius="1"/>
<PointSymbolizer/>
</Rule>
<Rule>
<ElseFilter />
<TextSymbolizer
name="[label]"
face_name="DejaVu Sans Book"
size="10"
wrap_character=","
wrap_width="1"
halo_radius="1" dy="-5"
/>
<PointSymbolizer />
<ElseFilter/>
<TextSymbolizer name="[label]" size="10" dy="-5" face-name="DejaVu Sans Book" wrap-character="," wrap-width="1" halo-radius="1"/>
<PointSymbolizer/>
</Rule>
</Style>
@ -76,4 +61,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,41 +1,33 @@
<?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" background-color="steelblue">
<Map srs="+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" background-color="steelblue" minimum-version="0.7.2">
<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" />
<TextSymbolizer size="15" name="'45&#730; angle'" orientation="45" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule title="foo">
<Filter>([name]='Australia')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'- 45˚ angle'" orientation="-45" />
<TextSymbolizer size="15" name="'- 45&#730; angle'" orientation="-45" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule title="foo1">
<Filter>([name]='Brazil')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'90˚ angle'" orientation="90" />
<TextSymbolizer size="15" name="'90&#730; angle'" orientation="90" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule title="foo">
<Filter>([name]='Mongolia')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'- 90˚ angle'" orientation="-90" />
<TextSymbolizer size="15" name="'- 90&#730; angle'" orientation="-90" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule title="foo">
<Filter>([name]='Sudan')</Filter>
<TextSymbolizer face_name="DejaVu Sans Book" size="15" halo_radius="1"
name="'180˚ angle'" orientation="180" />
<TextSymbolizer size="15" name="'180&#730; angle'" orientation="180" face-name="DejaVu Sans Book" halo-radius="1"/>
</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" />
<TextSymbolizer size="15" name="'no rotation of text'" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
<Rule title="foo">
<ElseFilter />
<TextSymbolizer face_name="DejaVu Sans Book" size="15"
name="[name]" halo_radius="1" />
<ElseFilter/>
<TextSymbolizer size="15" name="[name]" face-name="DejaVu Sans Book" halo-radius="1"/>
</Rule>
</Style>
@ -53,4 +45,4 @@
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,5 +1,4 @@
<?xml version='1.0' encoding='ASCII' standalone='yes'?>
<Map srs="+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs" background-color="rgba(0,0,0,0)">
<Map srs="+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs" background-color="rgba(0,0,0,0)" minimum-version="0.7.2">
<Style name="poly20090929162130952_style">
<Rule>
<Filter>([EAS_ID]!=158)</Filter>
@ -23,5 +22,4 @@
<Parameter name="type">shape</Parameter>
</Datasource>
</Layer>
</Map>
</Map>

View file

@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="text">
<Rule>
<Filter>[leisure] &lt;&gt; '' or [landuse] &lt;&gt; '' </Filter>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<TextSymbolizer name="[name]" face_name="DejaVu Sans Book" size="10" fill="#000" halo_radius="2" wrap_width="10"/>
<TextSymbolizer name="[name]" size="10" fill="#000" face-name="DejaVu Sans Book" halo-radius="2" wrap-width="10"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<LinePatternSymbolizer file="foo.png" />
<LinePatternSymbolizer file="foo.png"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<PolygonPatternSymbolizer width="16" height="16" type="png" file="/no/shuch/icon.png"/>
<PolygonPatternSymbolizer file="/no/shuch/icon.png"/>
</Rule>
</Style>
</Map>
</Map>

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">
<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs" minimum-version="0.7.2">
<Style name="some_style">
<Rule>
<PointSymbolizer file="foo.png"/>
</Rule>
</Style>
</Map>
</Map>