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

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

Change display zoom level for cabins (unprovisioned, emergency shelter)

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