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

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

Mapnik 0.7.1 simplification of PointSymbolizer? and add minimum version requirement

File size: 5.8 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 "#0077AD"><!-- water -->
14<!ENTITY waterline-color "#0077AD"><!-- 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
19%sharedentities;
20%entities;
21]>
22
23<Map bgcolor="&water-color;" srs="&osm2pgsql_projection;"
24     minimum_version="0.7.1">
25  &fontset-settings;
26
27<Style name="skiing">
28  <Rule>
29    <Filter>[piste:grooming] = 'backcountry'</Filter>
30    &maxscale_zoom14;
31    <LineSymbolizer>
32      <CssParameter name="stroke">&nordic-color;</CssParameter>
33      <CssParameter name="stroke-width">1.5</CssParameter>
34      <CssParameter name="stroke-dasharray">8,6</CssParameter>
35    </LineSymbolizer>
36  </Rule>
37  <Rule>
38    <Filter>[piste:grooming] = 'scooter'</Filter>
39    &maxscale_zoom12;
40    <LineSymbolizer>
41      <CssParameter name="stroke">&nordic-color;</CssParameter>
42      <CssParameter name="stroke-width">1.5</CssParameter>
43      <CssParameter name="stroke-dasharray">20,4</CssParameter>
44    </LineSymbolizer>
45  </Rule>
46  <Rule>
47    <Filter>[piste:type] = 'nordic'</Filter>
48    &maxscale_zoom12;
49    <LineSymbolizer>
50      <CssParameter name="stroke">&nordic-color;</CssParameter>
51      <CssParameter name="stroke-width">2</CssParameter>
52    </LineSymbolizer>
53  </Rule>
54<!--
55    <Filter>[lit]='yes'</Filter>
56-->
57
58  <Rule>
59    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'novice'</Filter>
60    &maxscale_zoom13;
61    <LineSymbolizer>
62      <CssParameter name="stroke">#00A245</CssParameter>
63      <CssParameter name="stroke-width">1.5</CssParameter>
64      <CssParameter name="stroke-opacity">0.65</CssParameter>
65    </LineSymbolizer>
66  </Rule>
67  <Rule>
68    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'easy'</Filter>
69    &maxscale_zoom13;
70    <LineSymbolizer>
71      <CssParameter name="stroke">#00A4DF</CssParameter>
72      <CssParameter name="stroke-width">1.5</CssParameter>
73      <CssParameter name="stroke-opacity">0.65</CssParameter>
74    </LineSymbolizer>
75  </Rule>
76  <Rule>
77    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'intermediate'</Filter>
78    &maxscale_zoom13;
79    <LineSymbolizer>
80      <CssParameter name="stroke">#E70019</CssParameter>
81      <CssParameter name="stroke-width">1.5</CssParameter>
82      <CssParameter name="stroke-opacity">0.65</CssParameter>
83    </LineSymbolizer>
84  </Rule>
85  <Rule>
86    <Filter>[piste:type] = 'downhill' and ([piste:difficulty] = 'advanced' or [piste:difficulty] = 'expert')</Filter>
87    &maxscale_zoom13;
88    <LineSymbolizer>
89      <CssParameter name="stroke">#17180D</CssParameter>
90      <CssParameter name="stroke-width">1.5</CssParameter>
91      <CssParameter name="stroke-opacity">0.65</CssParameter>
92    </LineSymbolizer>
93<!-- Expert orange #FF8040 -->
94  </Rule>
95  <Rule>
96    <Filter>[piste:type] = 'downhill' and [piste:difficulty] = 'freeride'</Filter>
97    &maxscale_zoom13;
98    <LineSymbolizer>
99      <CssParameter name="stroke">#F6E760</CssParameter>
100      <CssParameter name="stroke-width">1.5</CssParameter>
101      <CssParameter name="stroke-opacity">0.65</CssParameter>
102    </LineSymbolizer>
103  </Rule>
104</Style>
105
106<Style name="symbols-winter">
107  <Rule>
108    &maxscale_zoom13;
109    <Filter>[leisure]='ski_playground'</Filter>
110    <PointSymbolizer file="&symbols;/skiplayground.png"
111       type="png" width="15" height="15"
112       allow_overlap="false"/>
113  </Rule>
114  <Rule>
115    &maxscale_zoom13;
116    <Filter>[sport]='biathlon'</Filter>
117    <PointSymbolizer file="&symbols;/biathlon.png"
118       type="png" width="15" height="15"
119       allow_overlap="false"/>
120  </Rule>
121  <Rule>
122    &maxscale_zoom13;
123    <Filter>[sport]='ski_jump_take_off'</Filter>
124    <PointSymbolizer file="&symbols;/skijump.png"
125       type="png" width="15" height="15"
126       allow_overlap="false"/>
127  </Rule>
128</Style>
129
130&layer-world;
131&layer-landscape;
132&layer-linefeatures;
133&layer-roads;
134&layer-buildings;
135&layer-nationalpark;
136
137<Layer name="skiing" status="on" srs="&osm2pgsql_projection;">
138    <StyleName>skiing</StyleName>
139    <Datasource>
140      <Parameter name="table">
141      (select way,"piste:type","piste:grooming","piste:difficulty",route
142       from &prefix;_line
143       where "piste:type" in ('nordic','downhill')
144          or "piste:grooming" is not null
145          or route='ski'
146      ) as skiing
147      </Parameter>
148      &datasource-settings;
149   </Datasource>
150</Layer>
151
152&layer-powerlines;
153&layer-symbols-facilities;
154&layer-symbols-hiking;
155
156<Layer name="symbols-winter" status="on" srs="&osm2pgsql_projection;">
157  <StyleName>symbols-winter</StyleName>
158  <Datasource>
159    <Parameter name="table">
160    (select *
161    from &prefix;_point
162    where sport is not null
163       or landuse='winter_sports'
164       or leisure='ski_playground'
165    ) as symbols</Parameter>
166    &datasource-settings;
167  </Datasource>
168</Layer>
169<Layer name="symbols-winter-poly" status="on" srs="&osm2pgsql_projection;">
170  <StyleName>symbols-winter</StyleName>
171  <Datasource>
172    <Parameter name="table">
173    (select *
174    from &prefix;_polygon
175    where sport is not null
176       or landuse='winter_sports'
177       or leisure='ski_playground'
178    ) as symbols</Parameter>
179    &datasource-settings;
180  </Datasource>
181</Layer>
182
183&layer-areatext;
184&layer-placenames;
185</Map>
Note: See TracBrowser for help on using the repository browser.