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

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

Norwegian hiking map: Disable board_type=*

File size: 9.6 KB
Line 
1<Style name="symbols">
2
3  <Rule>
4    &maxscale_zoom14;
5    <Filter>[natural]='cave_entrance'</Filter>
6    <PointSymbolizer file="&symbols;/cave.png"
7       type="png" width="15" height="15"
8       allow_overlap="false"/>
9  </Rule>
10  <Rule>
11    &maxscale_zoom14;
12    <Filter>[waterway]='waterfall'</Filter>
13    <PointSymbolizer file="&symbols;/waterfall.png"
14       width="15" height="15" type="png"
15       allow_overlap="false"/>
16  </Rule>
17
18  <Rule>
19    &maxscale_zoom7;
20    <Filter>([tourism]='guest_house' or [tourism]='hostel' or [tourism]='alpine_hut') and [operator]='Den Norske Turistforening'</Filter>
21    <PointSymbolizer file="&symbols;/tourist-cabin-staffed-lodge.png"
22       width="15" height="15" type="png"
23       allow_overlap="false"/>
24  </Rule>
25  <Rule>
26    &maxscale_zoom8;
27    <Filter>[tourism]='cabin' and [service]='self' and [operator]='Den Norske Turistforening'</Filter>
28    <PointSymbolizer file="&symbols;/tourist-cabin-selfservice.png"
29       width="15" height="15" type="png"
30       allow_overlap="false"/>
31  </Rule>
32  <Rule>
33    &maxscale_zoom9;
34    <Filter>[tourism]='cabin' and [service]='no' and [operator]='Den Norske Turistforening'</Filter>
35    <PointSymbolizer file="&symbols;/tourist-cabin-unprovisioned.png"
36       width="15" height="15" type="png"
37       allow_overlap="false"/>
38  </Rule>
39
40  <Rule>
41    &maxscale_zoom12;
42    <Filter>(([building]='cabin' or [tourism]='cabin') and ([access]='permissive' or [access]='emergency')) or [tourism]='basic_hut' or [tourism]='wilderness_hut'</Filter>
43    <PointSymbolizer file="&symbols;/shelter.png"
44       width="15" height="15" type="png"
45       allow_overlap="false"/>
46  </Rule>
47  <Rule>
48    &maxscale_zoom13;
49    <Filter>[building]='lean_to' or [tourism]='lean_to' or [amenity]='shelter'</Filter>
50    <PointSymbolizer file="&symbols;/leanto.png"
51       width="15" height="15" type="png"
52       allow_overlap="false"/>
53  </Rule>
54
55  <Rule>
56    &maxscale_zoom14;
57    <Filter>[leisure]='golf_course' or [sport]='golf'</Filter>
58    <PointSymbolizer file="&symbols;/golfcourse.png"
59       width="15" height="15" type="png"
60       allow_overlap="false"/>
61  </Rule>
62  <Rule>
63    &maxscale_zoom16;
64    <Filter>[leisure]='miniature_golf'</Filter>
65    <PointSymbolizer file="&symbols;/minigolf.png"
66       width="15" height="15" type="png"
67       allow_overlap="false"/>
68  </Rule>
69  <Rule>
70    &maxscale_zoom14;
71    <Filter>[sport]='shooting'</Filter>
72    <PointSymbolizer file="&symbols;/shootingrange.png"
73       width="15" height="15" type="png"
74       allow_overlap="false"/>
75  </Rule>
76  <Rule>
77    &maxscale_zoom14;
78    <Filter>[natural]='beach'</Filter>
79    <PointSymbolizer file="&symbols;/beach.png"
80       width="15" height="15" type="png"
81       allow_overlap="false"/>
82  </Rule>
83  <Rule>
84    &maxscale_zoom15;
85    <Filter>[leisure]='fishing'</Filter>
86    <PointSymbolizer file="&symbols;/fishing.png"
87       width="15" height="15" type="png"
88       allow_overlap="false"/>
89  </Rule>
90  <Rule>
91    &maxscale_zoom13;
92    <Filter>[tourism]='viewpoint' and not ([man_made]='tower')</Filter>
93    <PointSymbolizer file="&symbols;/viewpoint.png"
94       width="15" height="15" type="png"
95       allow_overlap="false"/>
96  </Rule>
97  <Rule>
98    &maxscale_zoom13;
99    <Filter>[tourism]='viewpoint' and [man_made]='tower'</Filter>
100    <PointSymbolizer file="&symbols;/viewtower.png"
101       width="15" height="15" type="png"
102       allow_overlap="false"/>
103  </Rule>
104
105  <Rule>
106    &maxscale_zoom12;
107    <Filter>[tourism]='hotel' and [hiking]='yes'</Filter>
108    <PointSymbolizer file="&symbols;/hotel.png"
109       width="15" height="15" type="png"
110       allow_overlap="false"/>
111  </Rule>
112  <Rule>
113    &maxscale_zoom13;
114    <Filter>[amenity]='parking' and [hiking]='yes'</Filter>
115    <PointSymbolizer file="&symbols;/parking.png"
116       width="15" height="15" type="png"
117       allow_overlap="false"/>
118  </Rule>
119
120  <Rule>
121    &maxscale_zoom15;
122    <Filter>[tourism]='information' and [information]='map' and [hiking]='yes'</Filter>
123    <PointSymbolizer file="&symbols;/information.png"
124       width="15" height="15" type="png"
125       allow_overlap="false"/>
126  </Rule>
127  <Rule>
128    &maxscale_zoom16;
129    <Filter>[tourism]='information' and [information]='guidepost' and [hiking]='yes'</Filter>
130    <PointSymbolizer file="&symbols;/signpost.png"
131       width="12" height="16" type="png"
132       allow_overlap="false"/>
133  </Rule>
134<!--
135  <Rule>
136    &maxscale_zoom16;
137    <Filter>[tourism]='information' and [board_type]='nature'</Filter>
138    <PointSymbolizer file="&symbols;/natureboard.png"
139       width="15" height="15" type="png"
140       allow_overlap="false"/>
141  </Rule>
142-->
143
144  <Rule>
145    &maxscale_zoom15;
146    <Filter>[amenity]='parking' and not ([access]='private')</Filter>
147    <PointSymbolizer file="&symbols;/parking.png"
148       width="15" height="15" type="png"
149       allow_overlap="false"/>
150  </Rule>
151  <Rule>
152    &maxscale_zoom14;
153    <Filter>[tourism]='camp_site'</Filter>
154    <PointSymbolizer file="&symbols;/campsite.png"
155       width="15" height="15" type="png"
156       allow_overlap="false"/>
157  </Rule>
158  <Rule>
159    &maxscale_zoom13;
160    <Filter>[tourism]='caravan_site'</Filter>
161    <PointSymbolizer file="&symbols;/caravansite.png"
162       width="15" height="15" type="png"
163       allow_overlap="false"/>
164  </Rule>
165  <Rule>
166    &maxscale_zoom15;
167    <Filter>[highway]='bus_stop' or [amenity]='bus_station'</Filter>
168    <PointSymbolizer file="&symbols;/bus.png"
169       width="15" height="15" type="png"
170       allow_overlap="false"/>
171  </Rule>
172  <Rule>
173    &maxscale_zoom13;
174    <Filter>[railway]='station'</Filter>
175    <PointSymbolizer file="&symbols;/railwaystation.png"
176       width="15" height="15" type="png"
177       allow_overlap="false"/>
178  </Rule>
179
180  <Rule>
181    &maxscale_zoom13;
182    <Filter>[amenity]='cafe'</Filter>
183    <PointSymbolizer file="&symbols;/cafe.png"
184       width="15" height="15" type="png"
185       allow_overlap="false"/>
186  </Rule>
187  <Rule>
188    &maxscale_zoom15;
189    <Filter>[leisure]='picnic_table' or [tourism]='picnic_site'</Filter>
190    <PointSymbolizer file="&symbols;/picnicsite.png"
191       width="15" height="15" type="png"
192       allow_overlap="false"/>
193  </Rule>
194  <Rule>
195    &maxscale_zoom15;
196    <Filter>[amenity]='bbq'</Filter>
197    <PointSymbolizer file="&symbols;/fireplace.png"
198       width="15" height="15" type="png"
199       allow_overlap="false"/>
200  </Rule>
201
202  <Rule>
203    &maxscale_zoom12;
204    <Filter>[amenity]='place_of_worship' and [hiking]='yes'</Filter>
205    <PointSymbolizer file="&symbols;/sportschapel.png"
206       width="15" height="15" type="png"
207       allow_overlap="false"/>
208  </Rule>
209  <Rule>
210    &maxscale_zoom14;
211    <Filter>[amenity]='place_of_worship' and not ([hiking]='yes')</Filter>
212    <PointSymbolizer file="&symbols;/church.png"
213       width="15" height="15" type="png"
214       allow_overlap="false"/>
215  </Rule>
216
217  <Rule>
218    &maxscale_zoom15;
219    <Filter>[historic]='archaeological_site' or [historic]='yes'</Filter>
220    <PointSymbolizer file="&symbols;/relic.png"
221       width="15" height="15" type="png"
222       allow_overlap="false"/>
223  </Rule>
224
225  <Rule>
226    &maxscale_zoom14;
227    <Filter>[building]='cabin'</Filter>
228    <PointSymbolizer file="&symbols;/building.png"
229        width="5" height="5" type="png" />
230  </Rule>
231  <Rule>
232    &maxscale_zoom14;
233    <Filter>[historic]='ruins'</Filter>
234    <PointSymbolizer file="&symbols;/ruin.png"
235        width="5" height="5" type="png" />
236  </Rule>
237  <Rule>
238    &maxscale_zoom14;
239    <Filter>[man_made]='tower' 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>
240    <PointSymbolizer file="&symbols;/tower.png"
241        width="11" height="11" type="png" />
242  </Rule>
243  <Rule>
244    &maxscale_zoom14;
245    <Filter>[man_made]='cairn' or [historic]='monument' or [historic]='memorial'</Filter>
246    <PointSymbolizer file="&symbols;/cairn.png"
247        width="11" height="11" type="png" />
248  </Rule>
249  <Rule>
250    &maxscale_zoom14;
251    <Filter>[natural]='tree'</Filter>
252    <PointSymbolizer file="&symbols;/tree.png"
253        width="8" height="8" type="png" />
254  </Rule>
255
256</Style>
257
258<Layer name="symbols" status="on" srs="&osm2pgsql_projection;">
259  <StyleName>symbols</StyleName>
260  <Datasource>
261    <Parameter name="table">
262    (select *
263    from &prefix;_point
264    where man_made in ('cairn','tower','mast','lighthouse','power_wind','windmill')
265       or amenity in ('shelter','cafe','place_of_worship','parking','bus_station','hunting_stand')
266       or historic in ('monument','memorial','ruins','archaeological_site','yes')
267       or tourism in ('viewpoint','information','cabin','guest_house','alpine_hut','hostel','hotel','motel','lean_to','picnic_site','camp_site','caravan_site','basic_hut','wilderness_hut')
268       or "natural" in ('cave_entrance','beach','tree')
269       or (power='generator' and power_source='wind')
270       or highway='bus_stop'
271       or railway='station'
272       or waterway='waterfall'
273       or leisure in ('picnic_table','golf_course','miniature_golf','fishing')
274       or sport in ('golf','shooting')
275       or building='cabin'
276    ) as symbols</Parameter>
277    &datasource-settings;
278  </Datasource>
279</Layer>
280<Layer name="symbols-poly" status="on" srs="&osm2pgsql_projection;">
281  <StyleName>symbols</StyleName>
282  <Datasource>
283    <Parameter name="table">
284    (select *
285    from &prefix;_polygon
286    where amenity in ('parking','bus_station')
287       or "natural"='beach'
288       or leisure in ('golf_course','miniature_golf','fishing')
289       or sport in ('golf','shooting')
290       or historic in ('monument','memorial','ruins','archaeological_site')
291       or tourism in ('picnic_site','camp_site','caravan_site')
292    ) as symbols</Parameter>
293    &datasource-settings;
294  </Datasource>
295</Layer>
Note: See TracBrowser for help on using the repository browser.