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

Last change on this file since 29168 was 29099, checked in by vibrog, 7 years ago

Show cafes from z12

File size: 13.2 KB
Line 
1<Style name="symbols-landmarks">
2  <Rule>
3    &maxscale_zoom14;
4    <Filter>[building]='cabin' and not ([access]='permissive' or [access]='public' or [access]='emergency' or [access]='yes' or [service]='self' or [service]='no')</Filter>
5    <PointSymbolizer file="&symbols;/building.png"/>
6  </Rule>
7  <Rule>
8    &maxscale_zoom14;
9    <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>
10    <PointSymbolizer file="&symbols;/tower.png"/>
11  </Rule>
12  <Rule>
13    &maxscale_zoom14;
14    <Filter>[man_made]='cairn' or [historic]='monument' or [historic]='memorial'</Filter>
15    <PointSymbolizer file="&symbols;/cairn.png"/>
16  </Rule>
17  <Rule>
18    &maxscale_zoom16;
19    <Filter>[barrier]='gate' or [barrier]='lift_gate' or [barrier]='bollard' or [barrier]='cycle_barrier' or [barrier]='block' or [barrier]='chain'</Filter>
20    <PointSymbolizer file="&symbols;/gate.png"/>
21  </Rule>
22  <Rule>
23    &maxscale_zoom14;
24    <Filter>[natural]='tree'</Filter>
25    <PointSymbolizer file="&symbols;/tree.png"/>
26  </Rule>
27  <Rule>
28    &maxscale_zoom15;
29    <Filter>[natural]='stone'</Filter>
30    <PointSymbolizer file="&symbols;/stone.png"/>
31  </Rule>
32  <Rule>
33    &maxscale_zoom14;
34    <Filter>[historic]='ruins'</Filter>
35    <PointSymbolizer file="&symbols;/ruin.png"/>
36  </Rule>
37  <Rule>
38    &maxscale_zoom14;
39    &minscale_zoom16;
40    <Filter>[natural]='peak' or [man_made]='survey_point'</Filter>
41    <PointSymbolizer file="&symbols;/peak.png"/>
42  </Rule>
43</Style>
44
45<Style name="symbols-sights">
46  <Rule>
47    &maxscale_zoom14;
48    <Filter>[natural]='cave_entrance'</Filter>
49    <PointSymbolizer file="&symbols;/cave.png"/>
50  </Rule>
51  <Rule>
52    &maxscale_zoom14;
53    <Filter>[man_made]='mineshaft' and ([access]='public' or [access]='')</Filter>
54    <PointSymbolizer file="&symbols;/mine.png"/>
55  </Rule>
56  <Rule>
57    &maxscale_zoom14;
58    <Filter>[waterway]='waterfall'</Filter>
59    <PointSymbolizer file="&symbols;/waterfall.png"/>
60  </Rule>
61  <Rule>
62    &maxscale_zoom13;
63    <Filter>[tourism]='viewpoint' and not ([man_made]='tower')</Filter>
64    <PointSymbolizer file="&symbols;/viewpoint.png"/>
65  </Rule>
66  <Rule>
67    &maxscale_zoom13;
68    <Filter>[tourism]='viewpoint' and [man_made]='tower'</Filter>
69    <PointSymbolizer file="&symbols;/viewtower.png"/>
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  </Rule>
76  <Rule>
77    &maxscale_zoom12;
78    <Filter>[amenity]='place_of_worship' and [hiking]='yes'</Filter>
79    <PointSymbolizer file="&symbols;/sportschapel.png"/>
80  </Rule>
81  <Rule>
82    &maxscale_zoom15;
83    <Filter>[historic]='archaeological_site' or [historic]='yes'</Filter>
84    <PointSymbolizer file="&symbols;/relic.png"/>
85  </Rule>
86  <Rule>
87    &maxscale_zoom14;
88    <Filter>[natural]='beach'</Filter>
89    <PointSymbolizer file="&symbols;/beach.png"/>
90  </Rule>
91</Style>
92
93<Style name="symbols-trailheads">
94  <Rule>
95    &maxscale_zoom13;
96    <Filter>[amenity]='parking' and [hiking]='yes'</Filter>
97    <PointSymbolizer file="&symbols;/parking.png"/>
98  </Rule>
99  <Rule>
100    &maxscale_zoom15;
101    <Filter>[amenity]='parking' and not ([access]='private')</Filter>
102    <PointSymbolizer file="&symbols;/parking.png"/>
103  </Rule>
104  <Rule>
105    &maxscale_zoom13;
106    <Filter>[railway]='station'</Filter>
107    <PointSymbolizer file="&symbols;/railwaystation.png"/>
108  </Rule>
109  <Rule>
110    &maxscale_zoom14;
111    <Filter>[railway]='halt'</Filter>
112    <PointSymbolizer file="&symbols;/railwaystation.png"/>
113  </Rule>
114  <Rule>
115    &maxscale_zoom15;
116    <Filter>[railway]='tram_stop'</Filter>
117    <PointSymbolizer file="&symbols;/tram.png"/>
118  </Rule>
119  <Rule>
120    &maxscale_zoom15;
121    <Filter>[highway]='bus_stop' or [amenity]='bus_station'</Filter>
122    <PointSymbolizer file="&symbols;/bus.png"/>
123  </Rule>
124</Style>
125
126<Style name="symbols-cabins">
127  <Rule>
128    &maxscale_zoom7;
129    <Filter>[tourism]='alpine_hut' or ([tourism]='guest_house' or [tourism]='hostel' or [tourism]='hotel') and [operator]='Den Norske Turistforening'</Filter>
130    <PointSymbolizer file="&symbols;/cabin-staffedlodge.png"/>
131  </Rule>
132  <Rule>
133    &maxscale_zoom8;
134    <Filter>[tourism]='cabin' and [service]='self'</Filter>
135    <PointSymbolizer file="&symbols;/cabin-selfservice.png"/>
136  </Rule>
137  <Rule>
138    &maxscale_zoom10;
139    <Filter>[tourism]='cabin' and [service]='no'</Filter>
140    <PointSymbolizer file="&symbols;/cabin-unprovisioned.png"/>
141  </Rule>
142  <Rule>
143    &maxscale_zoom11;
144    <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>
145    <PointSymbolizer file="&symbols;/shelter.png"/>
146  </Rule>
147  <Rule>
148    &maxscale_zoom13;
149    <Filter>[tourism]='lean_to' or [amenity]='shelter'</Filter>
150    <PointSymbolizer file="&symbols;/leanto.png"/>
151  </Rule>
152  <Rule>
153    &maxscale_zoom12;
154    <Filter>[tourism]='hotel' and [hiking]='yes'</Filter>
155    <PointSymbolizer file="&symbols;/hotel.png"/>
156  </Rule>
157</Style>
158
159<Style name="symbols-eating">
160  <Rule>
161    &maxscale_zoom12;
162    <Filter>[amenity]='cafe'</Filter>
163    <PointSymbolizer file="&symbols;/cafe.png"/>
164  </Rule>
165  <Rule>
166    &maxscale_zoom15;
167    <Filter>[amenity]='bbq'</Filter>
168    <PointSymbolizer file="&symbols;/fireplace.png"/>
169  </Rule>
170  <Rule>
171    &maxscale_zoom15;
172    <Filter>[leisure]='picnic_table' or [tourism]='picnic_site'</Filter>
173    <PointSymbolizer file="&symbols;/picnicsite.png"/>
174  </Rule>
175</Style>
176
177<Style name="symbols-signs">
178  <Rule>
179    &maxscale_zoom15;
180    <Filter>[tourism]='information' and [information]='map' and ([hiking]='yes' or [ski]='yes')</Filter>
181    <PointSymbolizer file="&symbols;/information.png"/>
182  </Rule>
183  <Rule>
184    &maxscale_zoom16;
185    <Filter>[tourism]='information' and [information]='guidepost'</Filter>
186    <PointSymbolizer file="&symbols;/signpost.png"/>
187  </Rule>
188</Style>
189
190<Style name="symbols-text">
191  <Rule>
192    &maxscale_zoom7;
193    <Filter>[tourism]='alpine_hut' or ([tourism]='guest_house' or [tourism]='hostel' or [tourism]='hotel') and [operator]='Den Norske Turistforening'</Filter>
194    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
195      fill="black" dy="9" halo_radius="1"/>
196  </Rule>
197  <Rule>
198    &maxscale_zoom8;
199    <Filter>[tourism]='cabin' and [service]='self'</Filter>
200    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
201      fill="black" dy="9" halo_radius="1"/>
202  </Rule>
203  <Rule>
204    &maxscale_zoom10;
205    <Filter>[tourism]='cabin' and [service]='no'</Filter>
206    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
207      fill="black" dy="9" halo_radius="1"/>
208  </Rule>
209  <Rule>
210    &maxscale_zoom11;
211    <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>
212    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
213      fill="black" dy="9" halo_radius="1"/>
214  </Rule>
215  <Rule>
216    &maxscale_zoom16;
217    <Filter>([tourism]='alpine_hut' or [tourism]='cabin') and [operator]!=''</Filter>
218    <TextSymbolizer name="operator" fontset_name="book-fonts" size="8"
219      fill="&grey50;" dy="20" halo_radius="1"/>
220  </Rule>
221  <Rule>
222    &maxscale_zoom13;
223    <Filter>[amenity]='place_of_worship' and [hiking]='yes'</Filter>
224    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
225      fill="black" dy="9" halo_radius="1"/>
226  </Rule>
227  <Rule>
228    &maxscale_zoom12;
229    <Filter>[amenity]='cafe'</Filter>
230    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
231      fill="black" dy="9" halo_radius="1"/>
232  </Rule>
233  <Rule>
234    &maxscale_zoom13;
235    <Filter>[railway]='station'</Filter>
236    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
237      fill="black" dy="9" halo_radius="1"/>
238  </Rule>
239  <Rule>
240    &maxscale_zoom14;
241    <Filter>[railway]='halt'</Filter>
242    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
243      fill="black" dy="9" halo_radius="1"/>
244  </Rule>
245  <Rule>
246    &maxscale_zoom15;
247    <Filter>[railway]='tram_stop'</Filter>
248    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
249      fill="black" dy="9" halo_radius="1"/>
250  </Rule>
251  <Rule>
252    &maxscale_zoom14;
253    <Filter>[amenity]='parking' and [hiking]='yes'</Filter>
254    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
255      fill="black" dy="9" halo_radius="1"/>
256  </Rule>
257  <Rule>
258    &maxscale_zoom15;
259    <Filter>[natural]='beach'</Filter>
260    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
261      fill="black" dy="9" halo_radius="1"/>
262  </Rule>
263  <Rule>
264    <Filter>[natural] = 'peak'</Filter>
265    &maxscale_zoom14;
266    &minscale_zoom16;
267    <TextSymbolizer name="name" fontset_name="book-fonts" size="10"
268      fill="black" dy="5" halo_radius="1"/>
269  </Rule>
270  <Rule>
271    <Filter>[natural] = 'peak' and not [name] != ''</Filter>
272    &maxscale_zoom14;
273    &minscale_zoom16;
274    <TextSymbolizer name="ele" fontset_name="oblique-fonts" size="9"
275      fill="&grey50;" dy="6" halo_radius="1"/>
276  </Rule>
277  <Rule>
278    <Filter>[natural] = 'peak' and [name] != ''</Filter>
279    &maxscale_zoom14;
280    &minscale_zoom16;
281    <TextSymbolizer name="ele" fontset_name="oblique-fonts" size="9"
282      fill="&grey50;" dy="16" halo_radius="1"/>
283  </Rule>
284  <Rule>
285    <Filter>[natural] = 'cave_entrance'</Filter>
286    &maxscale_zoom16;
287    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
288      fill="black" dy="9" halo_radius="1" wrap_width="20" />
289  </Rule>
290  <Rule>
291    &maxscale_zoom17;
292    <Filter>[tourism]='information' and [information]='guidepost'</Filter>
293    <TextSymbolizer name="name" fontset_name="book-fonts" size="8"
294      fill="black" dy="9" halo_radius="1"/>
295  </Rule>
296</Style>
297
298<Layer name="symbols" status="on" srs="&osm2pgsql_projection;">
299  <StyleName>symbols-cabins</StyleName>
300  <StyleName>symbols-trailheads</StyleName>
301  <StyleName>symbols-eating</StyleName>
302  <StyleName>symbols-sights</StyleName>
303  <StyleName>symbols-signs</StyleName>
304  <StyleName>symbols-landmarks</StyleName>
305  <Datasource>
306    <Parameter name="table">
307    (select *
308     from &prefix;_point
309     where man_made in ('cairn','tower','mast','survey_point','lighthouse','power_wind','windmill')
310        or amenity in ('shelter','cafe','bbq','place_of_worship','parking','bus_station','hunting_stand')
311        or historic in ('monument','memorial','ruins','archaeological_site','yes')
312        or tourism in ('viewpoint','information','cabin','guest_house','alpine_hut','hostel','hotel','lean_to','picnic_site','basic_hut','wilderness_hut')
313        or "natural" in ('peak','cave_entrance','tree','stone','beach')
314        or (power='generator' and power_source='wind')
315        or highway='bus_stop'
316        or railway in ('station','halt','tram_stop')
317        or waterway='waterfall'
318        or barrier in ('gate','lift_gate','bollard','cycle_barrier','block','chain')
319        or leisure in ('picnic_table')
320        or building in ('cabin','lean_to')
321    ) as symbols</Parameter>
322    &datasource-settings;
323  </Datasource>
324</Layer>
325<Layer name="symbols-poly" status="on" srs="&osm2pgsql_projection;">
326  <StyleName>symbols-cabins</StyleName>
327  <StyleName>symbols-trailheads</StyleName>
328  <StyleName>symbols-eating</StyleName>
329  <StyleName>symbols-sights</StyleName>
330  <StyleName>symbols-landmarks</StyleName>
331  <Datasource>
332    <Parameter name="table">
333    (select *
334     from &prefix;_polygon
335     where amenity in ('cafe','place_of_worship','parking','bus_station')
336        or "natural"='beach'
337        or historic in ('monument','memorial','ruins','archaeological_site')
338        or tourism in ('viewpoint','information','cabin','guest_house','alpine_hut','hostel','hotel','lean_to','picnic_site','basic_hut','wilderness_hut')
339    ) as symbols</Parameter>
340    &datasource-settings;
341  </Datasource>
342</Layer>
343
344<Layer name="symbols-text" status="on" srs="&osm2pgsql_projection;">
345  <StyleName>symbols-text</StyleName>
346  <Datasource>
347    <Parameter name="table">
348    (select way,amenity,tourism,"natural",railway,building,name,ele,operator,service,access,information,hiking,ski,'yes'::text as point
349     from &prefix;_point
350     where amenity in ('cafe','place_of_worship','parking')
351        or tourism in ('information','cabin','guest_house','alpine_hut','hostel','hotel','basic_hut','wilderness_hut')
352        or building='cabin'
353        or "natural" in ('peak','beach','cave_entrance')
354        or railway in ('station','halt','tram_stop')
355    ) as text</Parameter>
356    &datasource-settings;
357  </Datasource>
358</Layer>
359<Layer name="symbols-text-poly" status="on" srs="&osm2pgsql_projection;">
360  <StyleName>symbols-text</StyleName>
361  <Datasource>
362    <Parameter name="table">
363    (select way,amenity,tourism,"natural",railway,building,name,NULL as ele,operator,service,access,information,hiking,ski,'no'::text as point
364     from &prefix;_polygon
365     where amenity in ('cafe','place_of_worship','parking')
366        or tourism in ('cabin','guest_house','alpine_hut','hostel','hotel','basic_hut','wilderness_hut')
367        or building='cabin'
368        or "natural"='beach'
369    ) as text</Parameter>
370    &datasource-settings;
371  </Datasource>
372</Layer>
Note: See TracBrowser for help on using the repository browser.