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

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

Add peak symbol

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