source: subversion/applications/rendering/nor-hikingmap/pistemap.xml @ 24810

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

Display winter sledding tracks

File size: 11.7 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE Map [
3<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
4<!ENTITY % sharedentities SYSTEM "entities.xml.ent">
5
6<!ENTITY background-color "#E9F8FF"><!-- background (default land) -->
7<!ENTITY forestland-color "#E9F8FF"><!-- wood -->
8<!ENTITY farmland-color "#FFF"><!-- farmland, field, orchard -->
9<!ENTITY openland-color "#FFF"><!-- meadow, recreation ground, park -->
10<!ENTITY roadcore-color "#FFF"><!-- roads core, parking, pitch, yard -->
11<!ENTITY urbanarea-color "#CCC"><!-- residential, industrial -->
12<!ENTITY regulatedarea-color "#CCC"><!-- construction, landfill, quarry -->
13<!ENTITY water-color "#0076AD"><!-- water -->
14<!ENTITY waterline-color "#006594"><!-- stream, shoreline -->
15<!ENTITY naturearea-color "#007D33">
16<!ENTITY trail-color "#DDD"><!-- path, track, footway, cycleway -->
17<!ENTITY nordic-color "#F90025"><!-- piste:type=nordic, route=ski -->
18<!ENTITY sled-color "#CDABDE"><!-- piste:type=sled -->
19<!ENTITY wintertrail-color "#444"><!-- piste:type=hike -->
20
21%sharedentities;
22%entities;
23]>
24
25<Map bgcolor="&water-color;" srs="&osm2pgsql_projection;"
26     minimum_version="0.7.1">
27  &fontset-settings;
28
29<Style name="skiing">
30  <Rule>
31    <Filter>[piste:grooming] = 'backcountry'</Filter>
32    &maxscale_zoom13;
33    <LineSymbolizer>
34      <CssParameter name="stroke">&nordic-color;</CssParameter>
35      <CssParameter name="stroke-width">1.5</CssParameter>
36      <CssParameter name="stroke-dasharray">6,8</CssParameter>
37    </LineSymbolizer>
38  </Rule>
39  <Rule>
40    <Filter>[piste:grooming] = 'scooter'</Filter>
41    &maxscale_zoom11;
42    <LineSymbolizer>
43      <CssParameter name="stroke">&nordic-color;</CssParameter>
44      <CssParameter name="stroke-width">1.5</CssParameter>
45      <CssParameter name="stroke-dasharray">20,3</CssParameter>
46    </LineSymbolizer>
47  </Rule>
48  <Rule>
49    <Filter>[piste:type] = 'nordic' and not ([piste:grooming] = 'backcountry' or [piste:grooming] = 'scooter')</Filter>
50    &maxscale_zoom11;
51    <LineSymbolizer>
52      <CssParameter name="stroke">&nordic-color;</CssParameter>
53      <CssParameter name="stroke-width">2</CssParameter>
54    </LineSymbolizer>
55  </Rule>
56  <Rule>
57    <Filter>[piste:type] = 'nordic' and [lit]='yes'</Filter>
58    &maxscale_zoom13;
59    <LineSymbolizer>
60      <CssParameter name="stroke">&nordic-color;</CssParameter>
61      <CssParameter name="stroke-width">6</CssParameter>
62      <CssParameter name="stroke-dasharray">1,21</CssParameter>
63      <CssParameter name="stroke-linejoin">round</CssParameter>
64      <CssParameter name="stroke-linecap">round</CssParameter>
65    </LineSymbolizer>
66  </Rule>
67
68  <Rule>
69    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
70    &maxscale_zoom12;
71    &minscale_zoom13;
72    <LineSymbolizer>
73      <CssParameter name="stroke">#00A245</CssParameter>
74      <CssParameter name="stroke-width">1.5</CssParameter>
75      <CssParameter name="stroke-opacity">0.65</CssParameter>
76    </LineSymbolizer>
77  </Rule>
78  <Rule>
79    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
80    &maxscale_zoom14;
81    &minscale_zoom14;
82    <LineSymbolizer>
83      <CssParameter name="stroke">#00A245</CssParameter>
84      <CssParameter name="stroke-width">5</CssParameter>
85      <CssParameter name="stroke-opacity">0.65</CssParameter>
86    </LineSymbolizer>
87  </Rule>
88  <Rule>
89    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
90    &maxscale_zoom15;
91    <LineSymbolizer>
92      <CssParameter name="stroke">#00A245</CssParameter>
93      <CssParameter name="stroke-width">7.5</CssParameter>
94      <CssParameter name="stroke-opacity">0.65</CssParameter>
95    </LineSymbolizer>
96  </Rule>
97
98  <Rule>
99    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
100    &maxscale_zoom12;
101    &minscale_zoom13;
102    <LineSymbolizer>
103      <CssParameter name="stroke">#00A4DF</CssParameter>
104      <CssParameter name="stroke-width">1.5</CssParameter>
105      <CssParameter name="stroke-opacity">0.65</CssParameter>
106    </LineSymbolizer>
107  </Rule>
108  <Rule>
109    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
110    &maxscale_zoom14;
111    &minscale_zoom14;
112    <LineSymbolizer>
113      <CssParameter name="stroke">#00A4DF</CssParameter>
114      <CssParameter name="stroke-width">5</CssParameter>
115      <CssParameter name="stroke-opacity">0.65</CssParameter>
116    </LineSymbolizer>
117  </Rule>
118  <Rule>
119    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
120    &maxscale_zoom15;
121    <LineSymbolizer>
122      <CssParameter name="stroke">#00A4DF</CssParameter>
123      <CssParameter name="stroke-width">7.5</CssParameter>
124      <CssParameter name="stroke-opacity">0.65</CssParameter>
125    </LineSymbolizer>
126  </Rule>
127
128  <Rule>
129    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
130    &maxscale_zoom12;
131    &minscale_zoom13;
132    <LineSymbolizer>
133      <CssParameter name="stroke">#E70019</CssParameter>
134      <CssParameter name="stroke-width">1.5</CssParameter>
135      <CssParameter name="stroke-opacity">0.65</CssParameter>
136    </LineSymbolizer>
137  </Rule>
138  <Rule>
139    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
140    &maxscale_zoom14;
141    &minscale_zoom14;
142    <LineSymbolizer>
143      <CssParameter name="stroke">#E70019</CssParameter>
144      <CssParameter name="stroke-width">5</CssParameter>
145      <CssParameter name="stroke-opacity">0.65</CssParameter>
146    </LineSymbolizer>
147  </Rule>
148  <Rule>
149    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
150    &maxscale_zoom15;
151    <LineSymbolizer>
152      <CssParameter name="stroke">#E70019</CssParameter>
153      <CssParameter name="stroke-width">7.5</CssParameter>
154      <CssParameter name="stroke-opacity">0.65</CssParameter>
155    </LineSymbolizer>
156  </Rule>
157
158  <Rule>
159    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
160    &maxscale_zoom12;
161    &minscale_zoom13;
162    <LineSymbolizer>
163      <CssParameter name="stroke">#17180D</CssParameter>
164      <CssParameter name="stroke-width">1.5</CssParameter>
165      <CssParameter name="stroke-opacity">0.65</CssParameter>
166    </LineSymbolizer>
167  </Rule>
168  <Rule>
169    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
170    &maxscale_zoom14;
171    &minscale_zoom14;
172    <LineSymbolizer>
173      <CssParameter name="stroke">#17180D</CssParameter>
174      <CssParameter name="stroke-width">5</CssParameter>
175      <CssParameter name="stroke-opacity">0.65</CssParameter>
176    </LineSymbolizer>
177  </Rule>
178  <Rule>
179    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
180    &maxscale_zoom15;
181    <LineSymbolizer>
182      <CssParameter name="stroke">#17180D</CssParameter>
183      <CssParameter name="stroke-width">7.5</CssParameter>
184      <CssParameter name="stroke-opacity">0.65</CssParameter>
185    </LineSymbolizer>
186  </Rule>
187
188  <!-- Expert orange #FF8040 -->
189
190  <Rule>
191    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
192    &maxscale_zoom12;
193    &minscale_zoom13;
194    <LineSymbolizer>
195      <CssParameter name="stroke">#F6E760</CssParameter>
196      <CssParameter name="stroke-width">1.5</CssParameter>
197      <CssParameter name="stroke-opacity">0.65</CssParameter>
198    </LineSymbolizer>
199  </Rule>
200  <Rule>
201    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
202    &maxscale_zoom14;
203    &minscale_zoom14;
204    <LineSymbolizer>
205      <CssParameter name="stroke">#F6E760</CssParameter>
206      <CssParameter name="stroke-width">5</CssParameter>
207      <CssParameter name="stroke-opacity">0.65</CssParameter>
208    </LineSymbolizer>
209  </Rule>
210  <Rule>
211    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
212    &maxscale_zoom15;
213    <LineSymbolizer>
214      <CssParameter name="stroke">#F6E760</CssParameter>
215      <CssParameter name="stroke-width">7.5</CssParameter>
216      <CssParameter name="stroke-opacity">0.65</CssParameter>
217    </LineSymbolizer>
218  </Rule>
219
220  <Rule>
221    <Filter>[piste:type] = 'sled'</Filter>
222    &maxscale_zoom11;
223    <LineSymbolizer>
224      <CssParameter name="stroke">&sled-color;</CssParameter>
225      <CssParameter name="stroke-width">2</CssParameter>
226    </LineSymbolizer>
227  </Rule>
228  <Rule>
229    <Filter>[piste:type] = 'sled' and [lit]='yes'</Filter>
230    &maxscale_zoom13;
231    <LineSymbolizer>
232      <CssParameter name="stroke">&sled-color;</CssParameter>
233      <CssParameter name="stroke-width">6</CssParameter>
234      <CssParameter name="stroke-dasharray">1,21</CssParameter>
235      <CssParameter name="stroke-linejoin">round</CssParameter>
236      <CssParameter name="stroke-linecap">round</CssParameter>
237    </LineSymbolizer>
238  </Rule>
239
240  <Rule>
241    <Filter>[piste:type] = 'hike'</Filter>
242    &maxscale_zoom12;
243    &minscale_zoom13;
244    <LineSymbolizer>
245      <CssParameter name="stroke">&wintertrail-color;</CssParameter>
246      <CssParameter name="stroke-linejoin">round</CssParameter>
247      <CssParameter name="stroke-linecap">round</CssParameter>
248      <CssParameter name="stroke-width">0.4</CssParameter>
249      <CssParameter name="stroke-dasharray">2,1</CssParameter>
250    </LineSymbolizer>
251  </Rule>
252  <Rule>
253    <Filter>[piste:type] = 'hike'</Filter>
254    &maxscale_zoom14;
255    <LineSymbolizer>
256      <CssParameter name="stroke">&wintertrail-color;</CssParameter>
257      <CssParameter name="stroke-linejoin">round</CssParameter>
258      <CssParameter name="stroke-linecap">round</CssParameter>
259      <CssParameter name="stroke-width">0.75</CssParameter>
260      <CssParameter name="stroke-dasharray">4,2</CssParameter>
261    </LineSymbolizer>
262  </Rule>
263
264</Style>
265
266<Style name="symbols-winter">
267  <Rule>
268    &maxscale_zoom13;
269    <Filter>[leisure]='ski_playground'</Filter>
270    <PointSymbolizer file="&symbols;/skiplayground.png"
271       type="png" width="15" height="15"
272       allow_overlap="false"/>
273  </Rule>
274  <Rule>
275    &maxscale_zoom13;
276    <Filter>[sport]='biathlon'</Filter>
277    <PointSymbolizer file="&symbols;/biathlon.png"
278       type="png" width="15" height="15"
279       allow_overlap="false"/>
280  </Rule>
281  <Rule>
282    &maxscale_zoom13;
283    <Filter>[sport]='ski_jump_take_off'</Filter>
284    <PointSymbolizer file="&symbols;/skijump.png"
285       type="png" width="15" height="15"
286       allow_overlap="false"/>
287  </Rule>
288</Style>
289
290&layer-world;
291&layer-landscape;
292&layer-linefeatures;
293&layer-buildings;
294&layer-roads;
295&layer-nationalpark;
296
297<Layer name="skiing" status="on" srs="&osm2pgsql_projection;">
298    <StyleName>skiing</StyleName>
299    <Datasource>
300      <Parameter name="table">
301      (select way,"piste:type","piste:grooming","piste:difficulty",route,lit
302       from &prefix;_line
303       where "piste:type" in ('nordic','downhill','hike')
304          or "piste:grooming" is not null
305          or route='ski'
306      ) as skiing
307      </Parameter>
308      &datasource-settings;
309   </Datasource>
310</Layer>
311
312&layer-roadnames;
313&layer-powerlines;
314&layer-symbols-facilities;
315&layer-symbols-hiking;
316
317<Layer name="symbols-winter" status="on" srs="&osm2pgsql_projection;">
318  <StyleName>symbols-winter</StyleName>
319  <Datasource>
320    <Parameter name="table">
321    (select *
322    from &prefix;_point
323    where sport in ('biathlon','ski_jump_take_off')
324       or landuse='winter_sports'
325       or leisure='ski_playground'
326    ) as symbols</Parameter>
327    &datasource-settings;
328  </Datasource>
329</Layer>
330<Layer name="symbols-winter-poly" status="on" srs="&osm2pgsql_projection;">
331  <StyleName>symbols-winter</StyleName>
332  <Datasource>
333    <Parameter name="table">
334    (select *
335    from &prefix;_polygon
336    where sport is not null
337       or landuse='winter_sports'
338       or leisure='ski_playground'
339    ) as symbols</Parameter>
340    &datasource-settings;
341  </Datasource>
342</Layer>
343
344&layer-text-water;
345&layer-areatext;
346&layer-placenames;
347</Map>
Note: See TracBrowser for help on using the repository browser.