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

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

Add text to hiking map POIs, such as alpine huts

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