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

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

Remove rules incompatible with current database import

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