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

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

Norwegian hiking map: Add symbols and organize into separate styles

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