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

Last change on this file since 22809 was 22444, checked in by vibrog, 9 years ago

Initial commit: Norwegian hiking map styles

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