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

Revision 22451, 9.4 KB checked in by vibrog, 4 years ago (diff)

Norwegian hiking map symbols for amenity=* and leisure=*

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') 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_zoom13;
85    <Filter>[tourism]='viewpoint' and not ([man_made]='tower')</Filter>
86    <PointSymbolizer file="&symbols;/viewpoint.png"
87       width="15" height="15" type="png"
88       allow_overlap="false"/>
89  </Rule>
90  <Rule>
91    &maxscale_zoom13;
92    <Filter>[tourism]='viewpoint' and [man_made]='tower'</Filter>
93    <PointSymbolizer file="&symbols;/viewtower.png"
94       width="15" height="15" type="png"
95       allow_overlap="false"/>
96  </Rule>
97
98  <Rule>
99    &maxscale_zoom12;
100    <Filter>[tourism]='hotel' and [hiking]='yes'</Filter>
101    <PointSymbolizer file="&symbols;/hotel.png"
102       width="15" height="15" type="png"
103       allow_overlap="false"/>
104  </Rule>
105  <Rule>
106    &maxscale_zoom13;
107    <Filter>[amenity]='parking' and [hiking]='yes'</Filter>
108    <PointSymbolizer file="&symbols;/parking.png"
109       width="15" height="15" type="png"
110       allow_overlap="false"/>
111  </Rule>
112
113  <Rule>
114    &maxscale_zoom15;
115    <Filter>[tourism]='information' and [information]='map' and [hiking]='yes'</Filter>
116    <PointSymbolizer file="&symbols;/information.png"
117       width="15" height="15" type="png"
118       allow_overlap="false"/>
119  </Rule>
120  <Rule>
121    &maxscale_zoom16;
122    <Filter>[tourism]='information' and [information]='guidepost' and [hiking]='yes'</Filter>
123    <PointSymbolizer file="&symbols;/signpost.png"
124       width="12" height="16" type="png"
125       allow_overlap="false"/>
126  </Rule>
127  <Rule>
128    &maxscale_zoom16;
129    <Filter>[tourism]='information' and [board_type]='nature'</Filter>
130    <PointSymbolizer file="&symbols;/natureboard.png"
131       width="15" height="15" type="png"
132       allow_overlap="false"/>
133  </Rule>
134
135  <Rule>
136    &maxscale_zoom15;
137    <Filter>[amenity]='parking' and not ([access]='private')</Filter>
138    <PointSymbolizer file="&symbols;/parking.png"
139       width="15" height="15" type="png"
140       allow_overlap="false"/>
141  </Rule>
142  <Rule>
143    &maxscale_zoom14;
144    <Filter>[tourism]='camp_site'</Filter>
145    <PointSymbolizer file="&symbols;/campsite.png"
146       width="15" height="15" type="png"
147       allow_overlap="false"/>
148  </Rule>
149  <Rule>
150    &maxscale_zoom13;
151    <Filter>[tourism]='caravan_site'</Filter>
152    <PointSymbolizer file="&symbols;/caravansite.png"
153       width="15" height="15" type="png"
154       allow_overlap="false"/>
155  </Rule>
156  <Rule>
157    &maxscale_zoom15;
158    <Filter>[highway]='bus_stop' or [amenity]='bus_station'</Filter>
159    <PointSymbolizer file="&symbols;/bus.png"
160       width="15" height="15" type="png"
161       allow_overlap="false"/>
162  </Rule>
163  <Rule>
164    &maxscale_zoom13;
165    <Filter>[railway]='station'</Filter>
166    <PointSymbolizer file="&symbols;/railwaystation.png"
167       width="15" height="15" type="png"
168       allow_overlap="false"/>
169  </Rule>
170
171  <Rule>
172    &maxscale_zoom13;
173    <Filter>[amenity]='cafe'</Filter>
174    <PointSymbolizer file="&symbols;/cafe.png"
175       width="15" height="15" type="png"
176       allow_overlap="false"/>
177  </Rule>
178  <Rule>
179    &maxscale_zoom15;
180    <Filter>[leisure]='picnic_table' or [tourism]='picnic_site'</Filter>
181    <PointSymbolizer file="&symbols;/picnicsite.png"
182       width="15" height="15" type="png"
183       allow_overlap="false"/>
184  </Rule>
185  <Rule>
186    &maxscale_zoom15;
187    <Filter>[amenity]='bbq' or [fireplace]='yes'</Filter>
188    <PointSymbolizer file="&symbols;/fireplace.png"
189       width="15" height="15" type="png"
190       allow_overlap="false"/>
191  </Rule>
192
193  <Rule>
194    &maxscale_zoom12;
195    <Filter>[amenity]='place_of_worship' and [hiking]='yes'</Filter>
196    <PointSymbolizer file="&symbols;/sportschapel.png"
197       width="15" height="15" type="png"
198       allow_overlap="false"/>
199  </Rule>
200  <Rule>
201    &maxscale_zoom14;
202    <Filter>[amenity]='place_of_worship' and not ([hiking]='yes')</Filter>
203    <PointSymbolizer file="&symbols;/church.png"
204       width="15" height="15" type="png"
205       allow_overlap="false"/>
206  </Rule>
207
208  <Rule>
209    &maxscale_zoom15;
210    <Filter>[historic]='archaeological_site' or [historic]='yes'</Filter>
211    <PointSymbolizer file="&symbols;/relic.png"
212       width="15" height="15" type="png"
213       allow_overlap="false"/>
214  </Rule>
215
216  <Rule>
217    &maxscale_zoom14;
218    <Filter>[building]='cabin'</Filter>
219    <PointSymbolizer file="&symbols;/building.png"
220        width="5" height="5" type="png" />
221  </Rule>
222  <Rule>
223    &maxscale_zoom14;
224    <Filter>[historic]='ruins'</Filter>
225    <PointSymbolizer file="&symbols;/ruin.png"
226        width="5" height="5" type="png" />
227  </Rule>
228  <Rule>
229    &maxscale_zoom14;
230    <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>
231    <PointSymbolizer file="&symbols;/tower.png"
232        width="11" height="11" type="png" />
233  </Rule>
234  <Rule>
235    &maxscale_zoom14;
236    <Filter>[man_made]='cairn' or [historic]='monument' or [historic]='memorial'</Filter>
237    <PointSymbolizer file="&symbols;/cairn.png"
238        width="11" height="11" type="png" />
239  </Rule>
240  <Rule>
241    &maxscale_zoom14;
242    <Filter>[natural]='tree'</Filter>
243    <PointSymbolizer file="&symbols;/tree.png"
244        width="8" height="8" type="png" />
245  </Rule>
246
247</Style>
248
249<Layer name="symbols" status="on" srs="&osm2pgsql_projection;">
250  <StyleName>symbols</StyleName>
251  <Datasource>
252    <Parameter name="table">
253    (select *
254    from &prefix;_point
255    where man_made in ('cairn','tower','mast','lighthouse','power_wind','windmill')
256       or amenity in ('shelter','cafe','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','motel','lean_to','picnic_site','camp_site','caravan_site')
259       or "natural" in ('cave_entrance','beach','tree')
260       or (power='generator' and power_source='wind')
261       or highway='bus_stop'
262       or railway='station'
263       or waterway='waterfall'
264       or leisure in ('golf_course','miniature_golf')
265       or sport in ('golf','shooting')
266       or fireplace='yes'
267       or building='cabin'
268    ) as symbols</Parameter>
269    &datasource-settings;
270  </Datasource>
271</Layer>
272<Layer name="symbols-poly" status="on" srs="&osm2pgsql_projection;">
273  <StyleName>symbols</StyleName>
274  <Datasource>
275    <Parameter name="table">
276    (select *
277    from &prefix;_polygon
278    where amenity in ('parking','bus_station')
279       or "natural"='beach'
280       or leisure in ('golf_course','miniature_golf')
281       or sport in ('golf','shooting')
282       or historic in ('monument','memorial','ruins','archaeological_site')
283       or tourism in ('picnic_site','camp_site','caravan_site')
284    ) as symbols</Parameter>
285    &datasource-settings;
286  </Datasource>
287</Layer>
Note: See TracBrowser for help on using the repository browser.