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

Last change on this file since 29599 was 29599, checked in by vibrog, 6 years ago

Render nordic free-skate skiing pistes in a darker color

File size: 15.1 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 "#FFF"><!-- 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 -->
18<!ENTITY nordic-skate-color "#BB2F42"><!-- piste:grooming=skating -->
19<!ENTITY sled-color "#CDABDE"><!-- piste:type=sled -->
20<!ENTITY wintertrail-color "#444"><!-- piste:type=hike -->
21
22%sharedentities;
23%entities;
24]>
25
26<Map bgcolor="&water-color;" srs="&osm2pgsql_projection;"
27     minimum_version="0.7.1">
28  &fontset-settings;
29
30<Style name="snowplowing">
31  <Rule>
32    <Filter>&residential_road; and ([snowplowing]='no' or [piste:type] = 'nordic')</Filter>
33    &maxscale_zoom12;
34    &minscale_zoom12;
35    <LineSymbolizer>
36      <CssParameter name="stroke">&trail-color;</CssParameter>
37      <CssParameter name="stroke-width">1.1</CssParameter>
38      <CssParameter name="stroke-linejoin">round</CssParameter>
39      <CssParameter name="stroke-linecap">round</CssParameter>
40    </LineSymbolizer>
41  </Rule>
42  <Rule>
43    <Filter>&residential_road; and ([snowplowing]='no' or [piste:type] = 'nordic')</Filter>
44    &maxscale_zoom13;
45    &minscale_zoom13;
46    <LineSymbolizer>
47      <CssParameter name="stroke">&trail-color;</CssParameter>
48      <CssParameter name="stroke-width">1.6</CssParameter>
49      <CssParameter name="stroke-linejoin">round</CssParameter>
50      <CssParameter name="stroke-linecap">round</CssParameter>
51    </LineSymbolizer>
52  </Rule>
53  <Rule>
54    <Filter>&residential_road; and ([snowplowing]='no' or [piste:type] = 'nordic')</Filter>
55    &maxscale_zoom14;
56    &minscale_zoom14;
57    <LineSymbolizer>
58      <CssParameter name="stroke">&trail-color;</CssParameter>
59      <CssParameter name="stroke-width">2.5</CssParameter>
60      <CssParameter name="stroke-linejoin">round</CssParameter>
61      <CssParameter name="stroke-linecap">round</CssParameter>
62    </LineSymbolizer>
63  </Rule>
64  <Rule>
65    <Filter>&residential_road; and ([snowplowing]='no' or [piste:type] = 'nordic')</Filter>
66    &maxscale_zoom15;
67    <LineSymbolizer>
68      <CssParameter name="stroke">&trail-color;</CssParameter>
69      <CssParameter name="stroke-width">3.3</CssParameter>
70      <CssParameter name="stroke-linejoin">round</CssParameter>
71      <CssParameter name="stroke-linecap">round</CssParameter>
72    </LineSymbolizer>
73  </Rule>
74</Style>
75
76<Style name="skiing">
77  <Rule>
78    <Filter>[piste:grooming]='backcountry'</Filter>
79    &maxscale_zoom13;
80    <LineSymbolizer>
81      <CssParameter name="stroke">&nordic-color;</CssParameter>
82      <CssParameter name="stroke-width">3</CssParameter>
83      <CssParameter name="stroke-dasharray">2,5</CssParameter>
84    </LineSymbolizer>
85  </Rule>
86  <Rule>
87    <Filter>[piste:grooming] = 'scooter'</Filter>
88    &maxscale_zoom11;
89    <LineSymbolizer>
90      <CssParameter name="stroke">&nordic-color;</CssParameter>
91      <CssParameter name="stroke-width">1.5</CssParameter>
92      <CssParameter name="stroke-dasharray">22,8</CssParameter>
93    </LineSymbolizer>
94  </Rule>
95  <Rule>
96    <Filter>[piste:type] = 'nordic' and ([piste:grooming] = 'classic' or not [piste:grooming] != '')</Filter>
97    &maxscale_zoom11;
98    <LineSymbolizer>
99      <CssParameter name="stroke">&nordic-color;</CssParameter>
100      <CssParameter name="stroke-width">2</CssParameter>
101    </LineSymbolizer>
102  </Rule>
103  <Rule>
104    <Filter>[piste:type] = 'nordic' and ([piste:grooming] = 'skating' or [piste:grooming] = 'classic+skating')</Filter>
105    &maxscale_zoom11;
106    <LineSymbolizer>
107      <CssParameter name="stroke">&nordic-skate-color;</CssParameter>
108      <CssParameter name="stroke-width">2.6</CssParameter>
109    </LineSymbolizer>
110  </Rule>
111  <Rule>
112    <Filter>[piste:type] = 'nordic' and ([lit]='yes' or [piste:lit]='yes') and ([piste:grooming] = 'classic' or [piste:grooming] = 'scooter' or not [piste:grooming] != '')</Filter>
113    &maxscale_zoom13;
114    <LineSymbolizer>
115      <CssParameter name="stroke">&nordic-color;</CssParameter>
116      <CssParameter name="stroke-width">6</CssParameter>
117      <CssParameter name="stroke-dasharray">1,21</CssParameter>
118      <CssParameter name="stroke-linejoin">round</CssParameter>
119      <CssParameter name="stroke-linecap">round</CssParameter>
120    </LineSymbolizer>
121  </Rule>
122  <Rule>
123    <Filter>[piste:type] = 'nordic' and ([lit]='yes' or [piste:lit]='yes') and ([piste:grooming] = 'skating' or [piste:grooming] = 'classic+skating')</Filter>
124    &maxscale_zoom13;
125    <LineSymbolizer>
126      <CssParameter name="stroke">&nordic-skate-color;</CssParameter>
127      <CssParameter name="stroke-width">6</CssParameter>
128      <CssParameter name="stroke-dasharray">1,21</CssParameter>
129      <CssParameter name="stroke-linejoin">round</CssParameter>
130      <CssParameter name="stroke-linecap">round</CssParameter>
131    </LineSymbolizer>
132  </Rule>
133
134  <Rule>
135    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
136    &maxscale_zoom11;
137    &minscale_zoom13;
138    <LineSymbolizer>
139      <CssParameter name="stroke">#00A245</CssParameter>
140      <CssParameter name="stroke-width">1.5</CssParameter>
141      <CssParameter name="stroke-opacity">0.65</CssParameter>
142    </LineSymbolizer>
143  </Rule>
144  <Rule>
145    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
146    &maxscale_zoom14;
147    &minscale_zoom14;
148    <LineSymbolizer>
149      <CssParameter name="stroke">#00A245</CssParameter>
150      <CssParameter name="stroke-width">5</CssParameter>
151      <CssParameter name="stroke-opacity">0.65</CssParameter>
152    </LineSymbolizer>
153  </Rule>
154  <Rule>
155    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
156    &maxscale_zoom15;
157    <LineSymbolizer>
158      <CssParameter name="stroke">#00A245</CssParameter>
159      <CssParameter name="stroke-width">7.5</CssParameter>
160      <CssParameter name="stroke-opacity">0.65</CssParameter>
161    </LineSymbolizer>
162  </Rule>
163
164  <Rule>
165    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
166    &maxscale_zoom11;
167    &minscale_zoom13;
168    <LineSymbolizer>
169      <CssParameter name="stroke">#00A4DF</CssParameter>
170      <CssParameter name="stroke-width">1.5</CssParameter>
171      <CssParameter name="stroke-opacity">0.65</CssParameter>
172    </LineSymbolizer>
173  </Rule>
174  <Rule>
175    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
176    &maxscale_zoom14;
177    &minscale_zoom14;
178    <LineSymbolizer>
179      <CssParameter name="stroke">#00A4DF</CssParameter>
180      <CssParameter name="stroke-width">5</CssParameter>
181      <CssParameter name="stroke-opacity">0.65</CssParameter>
182    </LineSymbolizer>
183  </Rule>
184  <Rule>
185    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
186    &maxscale_zoom15;
187    <LineSymbolizer>
188      <CssParameter name="stroke">#00A4DF</CssParameter>
189      <CssParameter name="stroke-width">7.5</CssParameter>
190      <CssParameter name="stroke-opacity">0.65</CssParameter>
191    </LineSymbolizer>
192  </Rule>
193
194  <Rule>
195    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
196    &maxscale_zoom11;
197    &minscale_zoom13;
198    <LineSymbolizer>
199      <CssParameter name="stroke">#E70019</CssParameter>
200      <CssParameter name="stroke-width">1.5</CssParameter>
201      <CssParameter name="stroke-opacity">0.65</CssParameter>
202    </LineSymbolizer>
203  </Rule>
204  <Rule>
205    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
206    &maxscale_zoom14;
207    &minscale_zoom14;
208    <LineSymbolizer>
209      <CssParameter name="stroke">#E70019</CssParameter>
210      <CssParameter name="stroke-width">5</CssParameter>
211      <CssParameter name="stroke-opacity">0.65</CssParameter>
212    </LineSymbolizer>
213  </Rule>
214  <Rule>
215    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
216    &maxscale_zoom15;
217    <LineSymbolizer>
218      <CssParameter name="stroke">#E70019</CssParameter>
219      <CssParameter name="stroke-width">7.5</CssParameter>
220      <CssParameter name="stroke-opacity">0.65</CssParameter>
221    </LineSymbolizer>
222  </Rule>
223
224  <Rule>
225    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
226    &maxscale_zoom11;
227    &minscale_zoom13;
228    <LineSymbolizer>
229      <CssParameter name="stroke">#17180D</CssParameter>
230      <CssParameter name="stroke-width">1.5</CssParameter>
231      <CssParameter name="stroke-opacity">0.65</CssParameter>
232    </LineSymbolizer>
233  </Rule>
234  <Rule>
235    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
236    &maxscale_zoom14;
237    &minscale_zoom14;
238    <LineSymbolizer>
239      <CssParameter name="stroke">#17180D</CssParameter>
240      <CssParameter name="stroke-width">5</CssParameter>
241      <CssParameter name="stroke-opacity">0.65</CssParameter>
242    </LineSymbolizer>
243  </Rule>
244  <Rule>
245    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
246    &maxscale_zoom15;
247    <LineSymbolizer>
248      <CssParameter name="stroke">#17180D</CssParameter>
249      <CssParameter name="stroke-width">7.5</CssParameter>
250      <CssParameter name="stroke-opacity">0.65</CssParameter>
251    </LineSymbolizer>
252  </Rule>
253
254  <!-- Expert orange #FF8040 -->
255
256  <Rule>
257    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
258    &maxscale_zoom11;
259    &minscale_zoom13;
260    <LineSymbolizer>
261      <CssParameter name="stroke">#F6E760</CssParameter>
262      <CssParameter name="stroke-width">1.5</CssParameter>
263      <CssParameter name="stroke-opacity">0.65</CssParameter>
264    </LineSymbolizer>
265  </Rule>
266  <Rule>
267    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
268    &maxscale_zoom14;
269    &minscale_zoom14;
270    <LineSymbolizer>
271      <CssParameter name="stroke">#F6E760</CssParameter>
272      <CssParameter name="stroke-width">5</CssParameter>
273      <CssParameter name="stroke-opacity">0.65</CssParameter>
274    </LineSymbolizer>
275  </Rule>
276  <Rule>
277    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
278    &maxscale_zoom15;
279    <LineSymbolizer>
280      <CssParameter name="stroke">#F6E760</CssParameter>
281      <CssParameter name="stroke-width">7.5</CssParameter>
282      <CssParameter name="stroke-opacity">0.65</CssParameter>
283    </LineSymbolizer>
284  </Rule>
285
286  <Rule>
287    <Filter>[piste:type] = 'sled'</Filter>
288    &maxscale_zoom11;
289    <LineSymbolizer>
290      <CssParameter name="stroke">&sled-color;</CssParameter>
291      <CssParameter name="stroke-width">2</CssParameter>
292    </LineSymbolizer>
293  </Rule>
294  <Rule>
295    <Filter>[piste:type] = 'sled' and [lit]='yes'</Filter>
296    &maxscale_zoom13;
297    <LineSymbolizer>
298      <CssParameter name="stroke">&sled-color;</CssParameter>
299      <CssParameter name="stroke-width">6</CssParameter>
300      <CssParameter name="stroke-dasharray">1,21</CssParameter>
301      <CssParameter name="stroke-linejoin">round</CssParameter>
302      <CssParameter name="stroke-linecap">round</CssParameter>
303    </LineSymbolizer>
304  </Rule>
305  <Rule>
306    <Filter>[piste:type] = 'sleigh'</Filter>
307    &maxscale_zoom11;
308    <LineSymbolizer>
309      <CssParameter name="stroke">&sled-color;</CssParameter>
310      <CssParameter name="stroke-width">1.5</CssParameter>
311      <CssParameter name="stroke-dasharray">20,3</CssParameter>
312    </LineSymbolizer>
313  </Rule>
314
315  <Rule>
316    <Filter>[piste:type] = 'hike'</Filter>
317    &maxscale_zoom12;
318    &minscale_zoom13;
319    <LineSymbolizer>
320      <CssParameter name="stroke">&wintertrail-color;</CssParameter>
321      <CssParameter name="stroke-linejoin">round</CssParameter>
322      <CssParameter name="stroke-linecap">round</CssParameter>
323      <CssParameter name="stroke-width">0.4</CssParameter>
324      <CssParameter name="stroke-dasharray">2,1</CssParameter>
325    </LineSymbolizer>
326  </Rule>
327  <Rule>
328    <Filter>[piste:type] = 'hike'</Filter>
329    &maxscale_zoom14;
330    <LineSymbolizer>
331      <CssParameter name="stroke">&wintertrail-color;</CssParameter>
332      <CssParameter name="stroke-linejoin">round</CssParameter>
333      <CssParameter name="stroke-linecap">round</CssParameter>
334      <CssParameter name="stroke-width">0.75</CssParameter>
335      <CssParameter name="stroke-dasharray">4,2</CssParameter>
336    </LineSymbolizer>
337  </Rule>
338
339</Style>
340
341<Style name="symbols-winter">
342  <Rule>
343    &maxscale_zoom13;
344    <Filter>[piste:type]='playground'</Filter>
345    <PointSymbolizer file="&symbols;/skiplayground.png" allow_overlap="false"/>
346  </Rule>
347  <Rule>
348    &maxscale_zoom13;
349    <Filter>[sport]='biathlon'</Filter>
350    <PointSymbolizer file="&symbols;/biathlon.png" allow_overlap="false"/>
351  </Rule>
352  <Rule>
353    &maxscale_zoom13;
354    <Filter>[sport]='ski_jump_take_off'</Filter>
355    <PointSymbolizer file="&symbols;/skijump.png" allow_overlap="false"/>
356  </Rule>
357</Style>
358
359&layer-world;
360&layer-landscape;
361&layer-linefeatures;
362&layer-buildings;
363&layer-roads;
364&layer-nationalpark;
365
366<Layer name="snowplowing" status="on" srs="&osm2pgsql_projection;">
367    <StyleName>snowplowing</StyleName>
368    <Datasource>
369      <Parameter name="table">
370      (select way,highway,snowplowing,"piste:type","piste:grooming"
371       from &prefix;_line
372       where snowplowing='no'
373          or "piste:type" in ('nordic')
374          or "piste:grooming" is not null
375      ) as snowplowing
376      </Parameter>
377      &datasource-settings;
378   </Datasource>
379</Layer>
380
381<Layer name="skiing" status="on" srs="&osm2pgsql_projection;">
382    <StyleName>skiing</StyleName>
383    <Datasource>
384      <Parameter name="table">
385      (select way,"piste:type","piste:grooming","piste:difficulty","piste:lit",lit
386       from &prefix;_line
387       where "piste:type" in ('nordic','downhill','hike','sled','sleigh')
388          or "piste:grooming" is not null
389      ) as skiing
390      </Parameter>
391      &datasource-settings;
392   </Datasource>
393</Layer>
394
395&layer-roadnames;
396&layer-powerlines;
397&layer-symbols-facilities;
398&layer-symbols-hiking;
399
400<Layer name="symbols-winter" status="on" srs="&osm2pgsql_projection;">
401  <StyleName>symbols-winter</StyleName>
402  <Datasource>
403    <Parameter name="table">
404    (select *
405    from &prefix;_point
406    where sport in ('biathlon','ski_jump_take_off')
407       or landuse='winter_sports'
408       or "piste:type"='playground'
409    ) as symbols</Parameter>
410    &datasource-settings;
411  </Datasource>
412</Layer>
413<Layer name="symbols-winter-poly" status="on" srs="&osm2pgsql_projection;">
414  <StyleName>symbols-winter</StyleName>
415  <Datasource>
416    <Parameter name="table">
417    (select *
418    from &prefix;_polygon
419    where sport is not null
420       or landuse='winter_sports'
421       or "piste:type"='playground'
422    ) as symbols</Parameter>
423    &datasource-settings;
424  </Datasource>
425</Layer>
426
427&layer-text-water;
428&layer-areatext;
429&layer-placenames;
430</Map>
Note: See TracBrowser for help on using the repository browser.