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

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

Norwegian hiking map: Add motorsport symbol

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  <Rule>
135    &maxscale_zoom16;
136    <Filter>[tourism]='information' and [board_type]='nature'</Filter>
137    <PointSymbolizer file="&symbols;/natureboard.png"
138       width="15" height="15" type="png"
139       allow_overlap="false"/>
140  </Rule>
141
142  <Rule>
143    &maxscale_zoom15;
144    <Filter>[amenity]='parking' and not ([access]='private')</Filter>
145    <PointSymbolizer file="&symbols;/parking.png"
146       width="15" height="15" type="png"
147       allow_overlap="false"/>
148  </Rule>
149  <Rule>
150    &maxscale_zoom14;
151    <Filter>[tourism]='camp_site'</Filter>
152    <PointSymbolizer file="&symbols;/campsite.png"
153       width="15" height="15" type="png"
154       allow_overlap="false"/>
155  </Rule>
156  <Rule>
157    &maxscale_zoom13;
158    <Filter>[tourism]='caravan_site'</Filter>
159    <PointSymbolizer file="&symbols;/caravansite.png"
160       width="15" height="15" type="png"
161       allow_overlap="false"/>
162  </Rule>
163  <Rule>
164    &maxscale_zoom15;
165    <Filter>[highway]='bus_stop' or [amenity]='bus_station'</Filter>
166    <PointSymbolizer file="&symbols;/bus.png"
167       width="15" height="15" type="png"
168       allow_overlap="false"/>
169  </Rule>
170  <Rule>
171    &maxscale_zoom13;
172    <Filter>[railway]='station'</Filter>
173    <PointSymbolizer file="&symbols;/railwaystation.png"
174       width="15" height="15" type="png"
175       allow_overlap="false"/>
176  </Rule>
177
178  <Rule>
179    &maxscale_zoom13;
180    <Filter>[amenity]='cafe'</Filter>
181    <PointSymbolizer file="&symbols;/cafe.png"
182       width="15" height="15" type="png"
183       allow_overlap="false"/>
184  </Rule>
185  <Rule>
186    &maxscale_zoom15;
187    <Filter>[leisure]='picnic_table' or [tourism]='picnic_site'</Filter>
188    <PointSymbolizer file="&symbols;/picnicsite.png"
189       width="15" height="15" type="png"
190       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"
197       allow_overlap="false"/>
198  </Rule>
199
200  <Rule>
201    &maxscale_zoom12;
202    <Filter>[amenity]='place_of_worship' and [hiking]='yes'</Filter>
203    <PointSymbolizer file="&symbols;/sportschapel.png"
204       width="15" height="15" type="png"
205       allow_overlap="false"/>
206  </Rule>
207  <Rule>
208    &maxscale_zoom14;
209    <Filter>[amenity]='place_of_worship' and not ([hiking]='yes')</Filter>
210    <PointSymbolizer file="&symbols;/church.png"
211       width="15" height="15" type="png"
212       allow_overlap="false"/>
213  </Rule>
214
215  <Rule>
216    &maxscale_zoom15;
217    <Filter>[historic]='archaeological_site' or [historic]='yes'</Filter>
218    <PointSymbolizer file="&symbols;/relic.png"
219       width="15" height="15" type="png"
220       allow_overlap="false"/>
221  </Rule>
222
223  <Rule>
224    &maxscale_zoom14;
225    <Filter>[building]='cabin'</Filter>
226    <PointSymbolizer file="&symbols;/building.png"
227        width="5" height="5" type="png" />
228  </Rule>
229  <Rule>
230    &maxscale_zoom14;
231    <Filter>[historic]='ruins'</Filter>
232    <PointSymbolizer file="&symbols;/ruin.png"
233        width="5" height="5" type="png" />
234  </Rule>
235  <Rule>
236    &maxscale_zoom14;
237    <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>
238    <PointSymbolizer file="&symbols;/tower.png"
239        width="11" height="11" type="png" />
240  </Rule>
241  <Rule>
242    &maxscale_zoom14;
243    <Filter>[man_made]='cairn' or [historic]='monument' or [historic]='memorial'</Filter>
244    <PointSymbolizer file="&symbols;/cairn.png"
245        width="11" height="11" type="png" />
246  </Rule>
247  <Rule>
248    &maxscale_zoom14;
249    <Filter>[natural]='tree'</Filter>
250    <PointSymbolizer file="&symbols;/tree.png"
251        width="8" height="8" type="png" />
252  </Rule>
253
254</Style>
255
256<Layer name="symbols" status="on" srs="&osm2pgsql_projection;">
257  <StyleName>symbols</StyleName>
258  <Datasource>
259    <Parameter name="table">
260    (select *
261    from &prefix;_point
262    where man_made in ('cairn','tower','mast','lighthouse','power_wind','windmill')
263       or amenity in ('shelter','cafe','place_of_worship','parking','bus_station','hunting_stand')
264       or historic in ('monument','memorial','ruins','archaeological_site','yes')
265       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')
266       or "natural" in ('cave_entrance','beach','tree')
267       or (power='generator' and power_source='wind')
268       or highway='bus_stop'
269       or railway='station'
270       or waterway='waterfall'
271       or leisure in ('picnic_table','golf_course','miniature_golf','fishing')
272       or sport in ('golf','shooting')
273       or building='cabin'
274    ) as symbols</Parameter>
275    &datasource-settings;
276  </Datasource>
277</Layer>
278<Layer name="symbols-poly" status="on" srs="&osm2pgsql_projection;">
279  <StyleName>symbols</StyleName>
280  <Datasource>
281    <Parameter name="table">
282    (select *
283    from &prefix;_polygon
284    where amenity in ('parking','bus_station')
285       or "natural"='beach'
286       or leisure in ('golf_course','miniature_golf','fishing')
287       or sport in ('golf','shooting')
288       or historic in ('monument','memorial','ruins','archaeological_site')
289       or tourism in ('picnic_site','camp_site','caravan_site')
290    ) as symbols</Parameter>
291    &datasource-settings;
292  </Datasource>
293</Layer>
Note: See TracBrowser for help on using the repository browser.