File: agg_stack_blur.xml

package info (click to toggle)
mapnik 2.2.0%2Bds1-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 30,288 kB
  • ctags: 18,382
  • sloc: cpp: 115,128; python: 9,298; xml: 5,692; ansic: 3,726; makefile: 160; sh: 159; lisp: 13
file content (24 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<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">
    <!-- Asia -->
    <Style name="style" filter-mode="first">
        <Rule>
            <Filter>([REGION]=142)</Filter>
            <PolygonSymbolizer fill="yellow"/>
        </Rule>
    </Style>
    <!-- Not Asia -->
    <Style name="style2" filter-mode="first" image-filters="agg-stack-blur(2,2)">
        <Rule>
            <Filter>([REGION]!=142)</Filter>
            <PolygonSymbolizer fill="green" fill-opacity=".3"/>
        </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>style2</StyleName>
        <Datasource>
            <Parameter name="file">../../data/shp/world_merc</Parameter>
            <Parameter name="type">shape</Parameter>
        </Datasource>
    </Layer>
</Map>