source: subversion/applications/rendering/nor-hikingmap/layer-symbols-hiking.xml.ent @ 22517

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

Norwegian hiking map: Correct mine shaft tag name typo

File size: 9.1 KB
Line 
1<Style name="symbols-landmarks">
2  <Rule>
3    &maxscale_zoom14;
4    <Filter>([man_made]='tower' and not [tourism]='viewpoint') or [man_made]='mast' or [amenity]='hunting_stand' or [man_made]='lighthouse' or [man_made]='windmill' or [man_made]='power_wind' or ([power]='generator' and [power_source] = 'wind')</Filter>
5    <PointSymbolizer file="&symbols;/tower.png"
6       width="11" height="11" type="png" allow_overlap="false"/>
7  </Rule>
8  <Rule>
9    &maxscale_zoom14;
10    <Filter>[man_made]='cairn' or [historic]='monument' or [historic]='memorial'</Filter>
11    <PointSymbolizer file="&symbols;/cairn.png"
12       width="11" height="11" type="png" allow_overlap="false"/>
13  </Rule>
14  <Rule>
15    &maxscale_zoom14;
16    <Filter>[natural]='tree'</Filter>
17    <PointSymbolizer file="&symbols;/tree.png"
18       width="8" height="8" type="png" allow_overlap="false"/>
19  </Rule>
20  <Rule>
21    &maxscale_zoom14;
22    <Filter>[building]='cabin' and not ([access]='permissive' or [access]='public' or [access]='emergency' or [access]='yes')</Filter>
23    <PointSymbolizer file="&symbols;/building.png"
24       width="5" height="5" type="png" allow_overlap="false"/>
25  </Rule>
26  <Rule>
27    &maxscale_zoom14;
28    <Filter>[historic]='ruins'</Filter>
29    <PointSymbolizer file="&symbols;/ruin.png"
30       width="5" height="5" type="png" allow_overlap="false"/>
31  </Rule>
32</Style>
33
34<Style name="symbols-sights">
35  <Rule>
36    &maxscale_zoom14;
37    <Filter>[natural]='cave_entrance'</Filter>
38    <PointSymbolizer file="&symbols;/cave.png"
39       width="15" height="15" type="png" allow_overlap="false"/>
40  </Rule>
41  <Rule>
42    &maxscale_zoom14;
43    <Filter>[man_made]='mineshaft' and ([access]='public' or [access]='')</Filter>
44    <PointSymbolizer file="&symbols;/mine.png"
45       width="15" height="15" type="png" allow_overlap="false"/>
46  </Rule>
47  <Rule>
48    &maxscale_zoom14;
49    <Filter>[waterway]='waterfall'</Filter>
50    <PointSymbolizer file="&symbols;/waterfall.png"
51       width="15" height="15" type="png" allow_overlap="false"/>
52  </Rule>
53  <Rule>
54    &maxscale_zoom16;
55    <Filter>[tourism]='information' and [board_type]='nature'</Filter>
56    <PointSymbolizer file="&symbols;/natureboard.png"
57       width="15" height="15" type="png" allow_overlap="false"/>
58  </Rule>
59  <Rule>
60    &maxscale_zoom13;
61    <Filter>[tourism]='viewpoint' and not ([man_made]='tower')</Filter>
62    <PointSymbolizer file="&symbols;/viewpoint.png"
63       width="15" height="15" type="png" allow_overlap="false"/>
64  </Rule>
65  <Rule>
66    &maxscale_zoom13;
67    <Filter>[tourism]='viewpoint' and [man_made]='tower'</Filter>
68    <PointSymbolizer file="&symbols;/viewtower.png"
69       width="15" height="15" type="png" allow_overlap="false"/>
70  </Rule>
71  <Rule>
72    &maxscale_zoom14;
73    <Filter>[amenity]='place_of_worship' and not ([hiking]='yes')</Filter>
74    <PointSymbolizer file="&symbols;/church.png"
75       width="15" height="15" type="png" allow_overlap="false"/>
76  </Rule>
77  <Rule>
78    &maxscale_zoom12;
79    <Filter>[amenity]='place_of_worship' and [hiking]='yes'</Filter>
80    <PointSymbolizer file="&symbols;/sportschapel.png"
81       width="15" height="15" type="png" allow_overlap="false"/>
82  </Rule>
83  <Rule>
84    &maxscale_zoom15;
85    <Filter>[historic]='archaeological_site' or [historic]='yes'</Filter>
86    <PointSymbolizer file="&symbols;/relic.png"
87       width="15" height="15" type="png" allow_overlap="false"/>
88  </Rule>
89  <Rule>
90    &maxscale_zoom14;
91    <Filter>[natural]='beach'</Filter>
92    <PointSymbolizer file="&symbols;/beach.png"
93       width="15" height="15" type="png" allow_overlap="false"/>
94  </Rule>
95</Style>
96
97<Style name="symbols-trailheads">
98  <Rule>
99    &maxscale_zoom13;
100    <Filter>[amenity]='parking' and [hiking]='yes'</Filter>
101    <PointSymbolizer file="&symbols;/parking.png"
102       width="15" height="15" type="png" allow_overlap="false"/>
103  </Rule>
104  <Rule>
105    &maxscale_zoom15;
106    <Filter>[amenity]='parking' and not ([access]='private')</Filter>
107    <PointSymbolizer file="&symbols;/parking.png"
108       width="15" height="15" type="png" allow_overlap="false"/>
109  </Rule>
110  <Rule>
111    &maxscale_zoom13;
112    <Filter>[railway]='station'</Filter>
113    <PointSymbolizer file="&symbols;/railwaystation.png"
114       width="15" height="15" type="png" allow_overlap="false"/>
115  </Rule>
116  <Rule>
117    &maxscale_zoom15;
118    <Filter>[highway]='bus_stop' or [amenity]='bus_station'</Filter>
119    <PointSymbolizer file="&symbols;/bus.png"
120       width="15" height="15" type="png" allow_overlap="false"/>
121  </Rule>
122</Style>
123
124<Style name="symbols-cabins">
125  <Rule>
126    &maxscale_zoom7;
127    <Filter>([tourism]='guest_house' or [tourism]='hostel' or [tourism]='alpine_hut') and [operator]='Den Norske Turistforening'</Filter>
128    <PointSymbolizer file="&symbols;/cabin-staffedlodge.png"
129       width="15" height="15" type="png" allow_overlap="false"/>
130  </Rule>
131  <Rule>
132    &maxscale_zoom8;
133    <Filter>([building]='cabin' or [tourism]='cabin') and [service]='self' and [operator]='Den Norske Turistforening'</Filter>
134    <PointSymbolizer file="&symbols;/cabin-selfservice.png"
135       width="15" height="15" type="png" allow_overlap="false"/>
136  </Rule>
137  <Rule>
138    &maxscale_zoom9;
139    <Filter>([building]='cabin' or [tourism]='cabin') and [service]='no' and [operator]='Den Norske Turistforening'</Filter>
140    <PointSymbolizer file="&symbols;/cabin-unprovisioned.png"
141       width="15" height="15" type="png" allow_overlap="false"/>
142  </Rule>
143  <Rule>
144    &maxscale_zoom12;
145    <Filter>(([building]='cabin' or [tourism]='cabin') and ([access]='permissive' or [access]='public' or [access]='emergency' or [access]='yes')) or [tourism]='basic_hut' or [tourism]='wilderness_hut'</Filter>
146    <PointSymbolizer file="&symbols;/shelter.png"
147       width="15" height="15" type="png" allow_overlap="false"/>
148  </Rule>
149  <Rule>
150    &maxscale_zoom13;
151    <Filter>[building]='lean_to' or [tourism]='lean_to' or [amenity]='shelter'</Filter>
152    <PointSymbolizer file="&symbols;/leanto.png"
153       width="15" height="15" type="png" allow_overlap="false"/>
154  </Rule>
155  <Rule>
156    &maxscale_zoom12;
157    <Filter>[tourism]='hotel' and [hiking]='yes'</Filter>
158    <PointSymbolizer file="&symbols;/hotel.png"
159       width="15" height="15" type="png" allow_overlap="false"/>
160  </Rule>
161</Style>
162
163<Style name="symbols-eating">
164  <Rule>
165    &maxscale_zoom13;
166    <Filter>[amenity]='cafe'</Filter>
167    <PointSymbolizer file="&symbols;/cafe.png"
168       width="15" height="15" type="png" allow_overlap="false"/>
169  </Rule>
170  <Rule>
171    &maxscale_zoom15;
172    <Filter>[amenity]='bbq'</Filter>
173    <PointSymbolizer file="&symbols;/fireplace.png"
174       width="15" height="15" type="png" allow_overlap="false"/>
175  </Rule>
176  <Rule>
177    &maxscale_zoom15;
178    <Filter>[leisure]='picnic_table' or [tourism]='picnic_site'</Filter>
179    <PointSymbolizer file="&symbols;/picnicsite.png"
180       width="15" height="15" type="png" allow_overlap="false"/>
181  </Rule>
182</Style>
183
184<Style name="symbols-signs">
185  <Rule>
186    &maxscale_zoom15;
187    <Filter>[tourism]='information' and [information]='map' and ([hiking]='yes' or [ski]='yes')</Filter>
188    <PointSymbolizer file="&symbols;/information.png"
189       width="15" height="15" type="png" allow_overlap="false"/>
190  </Rule>
191  <Rule>
192    &maxscale_zoom16;
193    <Filter>[tourism]='information' and [information]='guidepost' and ([hiking]='yes' or [ski]='yes')</Filter>
194    <PointSymbolizer file="&symbols;/signpost.png"
195       width="12" height="16" type="png" allow_overlap="false"/>
196  </Rule>
197</Style>
198
199<Layer name="symbols" status="on" srs="&osm2pgsql_projection;">
200  <StyleName>symbols-landmarks</StyleName>
201  <StyleName>symbols-sights</StyleName>
202  <StyleName>symbols-trailheads</StyleName>
203  <StyleName>symbols-eating</StyleName>
204  <StyleName>symbols-signs</StyleName>
205  <StyleName>symbols-cabins</StyleName>
206  <Datasource>
207    <Parameter name="table">
208    (select *
209     from &prefix;_point
210     where man_made in ('cairn','tower','mast','lighthouse','power_wind','windmill')
211        or amenity in ('shelter','cafe','bbq','place_of_worship','parking','bus_station','hunting_stand')
212        or historic in ('monument','memorial','ruins','archaeological_site','yes')
213        or tourism in ('viewpoint','information','cabin','guest_house','alpine_hut','hostel','hotel','lean_to','picnic_site','basic_hut','wilderness_hut')
214        or "natural" in ('cave_entrance','tree','beach')
215        or (power='generator' and power_source='wind')
216        or highway='bus_stop'
217        or railway='station'
218        or waterway='waterfall'
219        or leisure in ('picnic_table')
220        or building in ('cabin','lean_to')
221     order by z_order
222    ) as symbols</Parameter>
223    &datasource-settings;
224  </Datasource>
225</Layer>
226<Layer name="symbols-poly" status="on" srs="&osm2pgsql_projection;">
227  <StyleName>symbols-landmarks</StyleName>
228  <StyleName>symbols-sights</StyleName>
229  <StyleName>symbols-trailheads</StyleName>
230  <StyleName>symbols-eating</StyleName>
231  <Datasource>
232    <Parameter name="table">
233    (select *
234     from &prefix;_polygon
235     where amenity in ('parking','bus_station')
236        or "natural"='beach'
237        or historic in ('monument','memorial','ruins','archaeological_site')
238        or tourism in ('picnic_site')
239     order by z_order
240    ) as symbols</Parameter>
241    &datasource-settings;
242  </Datasource>
243</Layer>
Note: See TracBrowser for help on using the repository browser.