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

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

Changes to railway stations, add tram stops

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