source: subversion/applications/rendering/nor-hikingmap/layer-linefeatures.xml.ent @ 34560

Last change on this file since 34560 was 29927, checked in by vibrog, 6 years ago

Make hedges less prominent

File size: 1.4 KB
Line 
1<Style name="cliffs">
2     <Rule>
3      &maxscale_zoom13;
4      <Filter>[natural] = 'cliff'</Filter>
5       <LinePatternSymbolizer file="&symbols;/cliff.png"/>
6    </Rule>
7</Style>
8
9<Style name="barriers">
10    <Rule>
11      &maxscale_zoom14;
12      <Filter>[natural]='hedge' or [barrier] = 'hedge'</Filter>
13      <LineSymbolizer>
14        <CssParameter name="stroke">&naturearea-color;</CssParameter>
15        <CssParameter name="stroke-width">1.5</CssParameter>
16      </LineSymbolizer>
17    </Rule>
18    <Rule>
19      &maxscale_zoom13;
20      <Filter>[barrier] &lt;&gt; '' and not [barrier] = 'hedge'</Filter>
21       <LinePatternSymbolizer file="&symbols;/wall.png"/>
22    </Rule>
23</Style>
24
25<Layer name="line features" status="on" srs="&osm2pgsql_projection;">
26  <StyleName>cliffs</StyleName>
27  <StyleName>barriers</StyleName>
28  <Datasource>
29    <Parameter name="table">
30    (select way,barrier,"natural",man_made from &prefix;_line
31     where barrier is not null
32        or "natural" in ('hedge','cliff')
33    ) as roads
34    </Parameter>
35    &datasource-settings;
36  </Datasource>
37</Layer>
38
39<Layer name="polygon barriers" status="on" srs="&osm2pgsql_projection;">
40  <StyleName>barriers</StyleName>
41  <Datasource>
42    <Parameter name="table">
43    (select way,barrier,"natural" from &prefix;_polygon where barrier is not null or "natural"='hedge') as barriers
44    </Parameter>
45    &datasource-settings;
46  </Datasource>
47</Layer>
Note: See TracBrowser for help on using the repository browser.