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

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

Hiking map symbol drawing order corrected

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