source: subversion/applications/rendering/nor-screenspec/layer-nationalpark.xml.ent @ 34655

Last change on this file since 34655 was 25095, checked in by vibrog, 9 years ago

Filter nature reserves based on size

File size: 1.5 KB
Line 
1
2<Style name="nationalpark">
3    <Rule>
4      &maxscale_zoom7;
5      &minscale_zoom9;
6      <Filter>[way_area] &gt;= 25000000</Filter>
7      <LineSymbolizer>
8        <CssParameter name="stroke">&border-naturereserve-color;</CssParameter>
9        <CssParameter name="stroke-width">0.5</CssParameter>
10      </LineSymbolizer>
11    </Rule>
12    <Rule>
13      &maxscale_zoom10;
14      &minscale_zoom18;
15      <LineSymbolizer>
16        <CssParameter name="stroke">&border-naturereserve-color;</CssParameter>
17        <CssParameter name="stroke-width">0.75</CssParameter>
18      </LineSymbolizer>
19    </Rule>
20    <Rule>
21      &maxscale_zoom8;
22      &minscale_zoom9;
23      <Filter>[way_area] &gt;= 100000000</Filter>
24      <TextSymbolizer name="name" fontset_name="bold-fonts"
25        size="8" dy="-8" fill="#9c9" halo_radius="1" wrap_width="14"/>
26    </Rule>
27    <Rule>
28      &maxscale_zoom10;
29      &minscale_zoom11;
30      <Filter>[way_area] &gt;= 50000000</Filter>
31      <TextSymbolizer name="name" fontset_name="bold-fonts"
32        size="11" fill="#9c9" halo_radius="1" wrap_width="14"/>
33    </Rule>
34</Style>
35
36<Layer name="nationalpark" status="on" srs="&osm2pgsql_projection;">
37    <StyleName>nationalpark</StyleName>
38    <Datasource>
39      <Parameter name="table">
40      (select way,boundary,leisure,name,way_area
41       from &prefix;_polygon
42       where boundary in ('national_park','protected_area')
43          or leisure='nature_reserve'
44      ) as nationalpark
45      </Parameter>
46      &datasource-settings;
47    </Datasource>
48</Layer>
Note: See TracBrowser for help on using the repository browser.