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

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

Initial commit: Norwegian hiking map styles

File size: 9.1 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') 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_zoom14;
64    <Filter>[sport]='shooting'</Filter>
65    <PointSymbolizer file="&symbols;/shootingrange.png"
66       width="15" height="15" type="png"
67       allow_overlap="false"/>
68  </Rule>
69  <Rule>
70    &maxscale_zoom14;
71    <Filter>[natural]='beach'</Filter>
72    <PointSymbolizer file="&symbols;/beach.png"
73       width="15" height="15" type="png"
74       allow_overlap="false"/>
75  </Rule>
76  <Rule>
77    &maxscale_zoom13;
78    <Filter>[tourism]='viewpoint' and not ([man_made]='tower')</Filter>
79    <PointSymbolizer file="&symbols;/viewpoint.png"
80       width="15" height="15" type="png"
81       allow_overlap="false"/>
82  </Rule>
83  <Rule>
84    &maxscale_zoom13;
85    <Filter>[tourism]='viewpoint' and [man_made]='tower'</Filter>
86    <PointSymbolizer file="&symbols;/viewtower.png"
87       width="15" height="15" type="png"
88       allow_overlap="false"/>
89  </Rule>
90
91  <Rule>
92    &maxscale_zoom12;
93    <Filter>[tourism]='hotel' and [hiking]='yes'</Filter>
94    <PointSymbolizer file="&symbols;/hotel.png"
95       width="15" height="15" type="png"
96       allow_overlap="false"/>
97  </Rule>
98  <Rule>
99    &maxscale_zoom14;
100    <Filter>[tourism]='hotel' or [tourism]='motel'</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
128  <Rule>
129    &maxscale_zoom15;
130    <Filter>[amenity]='parking' and not ([access]='private')</Filter>
131    <PointSymbolizer file="&symbols;/parking.png"
132       width="15" height="15" type="png"
133       allow_overlap="false"/>
134  </Rule>
135  <Rule>
136    &maxscale_zoom14;
137    <Filter>[tourism]='camp_site'</Filter>
138    <PointSymbolizer file="&symbols;/campsite.png"
139       width="15" height="15" type="png"
140       allow_overlap="false"/>
141  </Rule>
142  <Rule>
143    &maxscale_zoom13;
144    <Filter>[tourism]='caravan_site'</Filter>
145    <PointSymbolizer file="&symbols;/caravansite.png"
146       width="15" height="15" type="png"
147       allow_overlap="false"/>
148  </Rule>
149  <Rule>
150    &maxscale_zoom15;
151    <Filter>[highway]='bus_stop' or [amenity]='bus_station'</Filter>
152    <PointSymbolizer file="&symbols;/bus.png"
153       width="15" height="15" type="png"
154       allow_overlap="false"/>
155  </Rule>
156  <Rule>
157    &maxscale_zoom13;
158    <Filter>[railway]='station'</Filter>
159    <PointSymbolizer file="&symbols;/railwaystation.png"
160       width="15" height="15" type="png"
161       allow_overlap="false"/>
162  </Rule>
163
164  <Rule>
165    &maxscale_zoom13;
166    <Filter>[amenity]='cafe'</Filter>
167    <PointSymbolizer file="&symbols;/cafe.png"
168       width="15" height="15" type="png"
169       allow_overlap="false"/>
170  </Rule>
171  <Rule>
172    &maxscale_zoom15;
173    <Filter>[leisure]='picnic_table' or [tourism]='picnic_site'</Filter>
174    <PointSymbolizer file="&symbols;/picnicsite.png"
175       width="15" height="15" type="png"
176       allow_overlap="false"/>
177  </Rule>
178<!--
179    <Rule>
180      &maxscale_zoom15;
181      <Filter>[fireplace]='yes'</Filter>
182      <PointSymbolizer file="&symbols;/fireplace.png"
183         width="15" height="15" type="png"
184         allow_overlap="false"/>
185    </Rule>
186-->
187
188  <Rule>
189    &maxscale_zoom12;
190    <Filter>[amenity]='place_of_worship' and [hiking]='yes'</Filter>
191    <PointSymbolizer file="&symbols;/sportschapel.png"
192       width="15" height="15" type="png"
193       allow_overlap="false"/>
194  </Rule>
195  <Rule>
196    &maxscale_zoom14;
197    <Filter>[amenity]='place_of_worship' and not ([hiking]='yes')</Filter>
198    <PointSymbolizer file="&symbols;/church.png"
199       width="15" height="15" type="png"
200       allow_overlap="false"/>
201  </Rule>
202
203  <Rule>
204    &maxscale_zoom15;
205    <Filter>[historic]='archaeological_site' or [historic]='yes'</Filter>
206    <PointSymbolizer file="&symbols;/relic.png"
207       width="15" height="15" type="png"
208       allow_overlap="false"/>
209  </Rule>
210
211  <Rule>
212    &maxscale_zoom14;
213    <Filter>[building]='cabin'</Filter><!--or [tourism]='cabin'-->
214    <PointSymbolizer file="&symbols;/building.png"
215        width="5" height="5" type="png" />
216  </Rule>
217  <Rule>
218    &maxscale_zoom14;
219    <Filter>[historic]='ruins'</Filter>
220    <PointSymbolizer file="&symbols;/ruin.png"
221        width="5" height="5" type="png" />
222  </Rule>
223  <Rule>
224    &maxscale_zoom14;
225    <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>
226    <PointSymbolizer file="&symbols;/tower.png"
227        width="11" height="11" type="png" />
228  </Rule>
229  <Rule>
230    &maxscale_zoom14;
231    <Filter>[man_made]='cairn' or [historic]='monument' or [historic]='memorial'</Filter>
232    <PointSymbolizer file="&symbols;/cairn.png"
233        width="11" height="11" type="png" />
234  </Rule>
235  <Rule>
236    &maxscale_zoom14;
237    <Filter>[natural]='tree'</Filter>
238    <PointSymbolizer file="&symbols;/tree.png"
239        width="8" height="8" type="png" />
240  </Rule>
241
242</Style>
243
244<Layer name="symbols" status="on" srs="&osm2pgsql_projection;">
245  <StyleName>symbols</StyleName>
246  <Datasource>
247    <Parameter name="table">
248    (select *
249    from &prefix;_point
250    where man_made in ('cairn','tower','mast','lighthouse','power_wind','windmill')
251       or amenity in ('shelter','cafe','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','motel','lean_to','picnic_site','camp_site','caravan_site')
254       or "natural" in ('cave_entrance','beach','tree')
255       or (power='generator' and power_source='wind')
256       or highway='bus_stop'
257       or railway='station'
258       or waterway='waterfall'
259       or sport in ('golf','shooting')
260    ) as symbols</Parameter>
261    &datasource-settings;
262  </Datasource>
263       <!-- or fireplace='yes' -->
264</Layer>
265<Layer name="symbols-poly" status="on" srs="&osm2pgsql_projection;">
266  <StyleName>symbols</StyleName>
267  <Datasource>
268    <Parameter name="table">
269    (select *
270    from &prefix;_polygon
271    where amenity in ('parking','bus_station')
272       or "natural"='beach'
273       or leisure='golf_course'
274       or sport in ('golf','shooting')
275       or historic in ('monument','memorial','ruins','archaeological_site')
276       or tourism in ('picnic_site','camp_site','caravan_site')
277    ) as symbols</Parameter>
278    &datasource-settings;
279  </Datasource>
280</Layer>
281
282<!--
283or barrier in ('bollard','gate','lift_gate','windfall')
284-->
Note: See TracBrowser for help on using the repository browser.