mapnik/tests/data/good_maps/geometry-transform.xml

50 lines
1.8 KiB
XML
Raw Normal View History

<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="steelblue" minimum-version="0.7.2">
<Style name="base">
<Rule>
<LineSymbolizer stroke-width=".5"/>
</Rule>
</Style>
<Style name="style">
<!-- Asia -->
<Rule>
<Filter>([REGION]=142)</Filter>
<PolygonSymbolizer fill="yellow" geometry-transform="translate(10,10)"/>
</Rule>
<!-- Europe -->
<Rule>
<Filter>([REGION]=150)</Filter>
<PolygonSymbolizer fill="rgb(176,151,238)" geometry-transform="translate(-10,-10)"/>
</Rule>
<!-- Americas -->
<Rule>
<Filter>([REGION]=19)</Filter>
<PolygonSymbolizer fill="rgb(136,172,2)" geometry-transform="skewX(-10) skewY(-10)"/>
</Rule>
<!-- Africa -->
<Rule>
<Filter>([REGION]=2)</Filter>
<PolygonSymbolizer fill="rgb(239,98,133)" geometry-transform="rotate(10,1,-1)"/>
</Rule>
<!-- Oceana -->
<Rule>
<Filter>([REGION]=9)</Filter>
<PolygonSymbolizer fill="darkred" geometry-transform="translate(1.1,1.1)"/>
<PolygonSymbolizer fill="red" geometry-transform="translate(-1.1,-1.1)"/>
</Rule>
</Style>
<Layer name="world" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>style</StyleName>
<StyleName>base</StyleName>
<Datasource>
<Parameter name="file">../../data/shp/world_merc</Parameter>
<Parameter name="type">shape</Parameter>
</Datasource>
</Layer>
</Map>