source: subversion/applications/rendering/nor-hikingmap/layer-landscape.xml.ent @ 29168

Last change on this file since 29168 was 29090, checked in by vibrog, 7 years ago

Change colors: scrub as wood, farmyard as residential

File size: 12.6 KB
Line 
1
2<Style name="leisure">
3  <Rule>
4    <Filter>[landuse] = 'brownfield' or [landuse] = 'landfill' or [landuse] = 'greenfield' or [landuse] = 'construction' or [landuse] = 'quarry'</Filter>
5    &maxscale_zoom10;
6    <PolygonSymbolizer>
7      <CssParameter name="fill">&regulatedarea-color;</CssParameter>
8    </PolygonSymbolizer>
9  </Rule>
10   <Rule>
11    <Filter>[natural] = 'wood' or [landuse] = 'wood' or [landuse] = 'forest'</Filter>
12    &maxscale_zoom9;
13    <PolygonSymbolizer>
14      <CssParameter name="fill">&forestland-color;</CssParameter>
15    </PolygonSymbolizer>
16  </Rule>
17  <Rule>
18    &maxscale_zoom12;
19    <Filter>([landuse] = 'cemetery' or [landuse] = 'grave_yard' or [amenity] = 'grave_yard')</Filter>
20    <PolygonSymbolizer>
21      <CssParameter name="fill">&openland-color;</CssParameter>
22    </PolygonSymbolizer>
23  </Rule>
24  <Rule>
25    <Filter>[leisure] = 'common' or [leisure] = 'park' or [leisure] = 'recreation_ground' or [leisure] = 'golf_course' or [landuse] = 'sport' or [landuse] = 'recreational' or [leisure] = 'winter_sport'</Filter>
26    &maxscale_zoom11;
27    <PolygonSymbolizer>
28      <CssParameter name="fill">&openland-color;</CssParameter>
29   </PolygonSymbolizer>
30  </Rule>
31  <Rule>
32    <Filter>[landuse] = 'park' or [landuse] = 'meadow' or [landuse] = 'grass' or [landuse] = 'recreation_ground' or [landuse] = 'village_green' or [landuse] = 'green'</Filter>
33    &maxscale_zoom11;
34    <PolygonSymbolizer>
35      <CssParameter name="fill">&openland-color;</CssParameter>
36   </PolygonSymbolizer>
37  </Rule>
38  <Rule>
39    &maxscale_zoom11;
40    <Filter>[natural] = 'grassland' or [natural] = 'meadow' or [tourism] = 'camp_site' or [tourism]='caravan_site' or [tourism] = 'picnic_site'</Filter>
41    <PolygonSymbolizer>
42      <CssParameter name="fill">&openland-color;</CssParameter>
43    </PolygonSymbolizer>
44  </Rule>
45  <Rule>
46    &maxscale_zoom11;
47    <Filter>[natural] = 'field' or [natural] = 'heath' or [landuse] = 'conservation'</Filter>
48    <PolygonSymbolizer>
49      <CssParameter name="fill">&openland-color;</CssParameter>
50     </PolygonSymbolizer>
51  </Rule>
52 <Rule>
53    <Filter>[natural] = 'scrub'</Filter>
54    &maxscale_zoom12;
55    <PolygonSymbolizer>
56      <CssParameter name="fill">&forestland-color;</CssParameter>
57     </PolygonSymbolizer>
58  </Rule>
59  <Rule>
60    &maxscale_zoom8;
61     <Filter>[landuse] = 'residential' or [landuse] ='commercial' or [landuse] = 'industrial' or [landuse] = 'retail' or [landuse]='farmyard'</Filter>
62    <PolygonSymbolizer>
63      <CssParameter name="fill">&urbanarea-color;</CssParameter>
64    </PolygonSymbolizer>
65  </Rule>
66  <Rule>
67    &maxscale_zoom12;
68     <Filter>[landuse] = 'school' or [amenity] = 'school' or [amenity] = 'college' or [amenity] = 'university' or [amenity]='kindergarten' or [military] = 'barracks' or [amenity] = 'hospital'</Filter>
69    <PolygonSymbolizer>
70      <CssParameter name="fill">&urbanarea-color;</CssParameter>
71    </PolygonSymbolizer>
72  </Rule>
73  <Rule>
74    <Filter>[leisure] = 'garden' or [landuse] = 'allotments' or [landuse] = 'military' or [landuse] = 'railway' or [landuse] = 'garden' or [tourism] = 'zoo'</Filter>
75    &maxscale_zoom12;
76    <PolygonSymbolizer>
77      <CssParameter name="fill">&urbanarea-color;</CssParameter>
78   </PolygonSymbolizer>
79  </Rule>
80  <Rule>
81    <Filter>[landuse] = 'field' or [landuse] = 'farm' or [landuse] = 'farmland'</Filter>
82    &maxscale_zoom11;
83    <PolygonSymbolizer>
84      <CssParameter name="fill">&farmland-color;</CssParameter>
85   </PolygonSymbolizer>
86  </Rule>
87  <Rule>
88    &maxscale_zoom11;
89    <Filter>[landuse] = 'orchard' or [landuse] = 'vineyard'</Filter>
90    <PolygonSymbolizer>
91      <CssParameter name="fill">&farmland-color;</CssParameter>
92     </PolygonSymbolizer>
93  </Rule>
94<!--
95  <Rule>
96    <Filter>[natural] = 'mud' or [natural] = 'beach' or [natural] = 'sand'</Filter>
97    &maxscale_zoom12;
98    <PolygonSymbolizer>
99       <CssParameter name="fill">&background-color;</CssParameter>
100    </PolygonSymbolizer>
101  </Rule>
102-->
103  <Rule>
104    <Filter>[amenity]='parking' or [landuse]='playground' or [leisure]='playground' or [landuse]='parking' or [highway]='pedestrian' or [highway]='services' or [highway]='turning_circle' or [power]='station' or [power]='sub_station'</Filter>
105    &maxscale_zoom12;
106   <PolygonSymbolizer>
107       <CssParameter name="fill">&roadcore-color;</CssParameter>
108    </PolygonSymbolizer>
109   <LineSymbolizer>
110      <CssParameter name="stroke">&black;</CssParameter>
111      <CssParameter name="stroke-width">0.6</CssParameter>
112    </LineSymbolizer>
113  </Rule>
114  <Rule>
115    <Filter>[leisure]='track' or [highway]='raceway'</Filter>
116    &maxscale_zoom12;
117     <LineSymbolizer>
118      <CssParameter name="stroke">&black;</CssParameter>
119      <CssParameter name="stroke-linejoin">round</CssParameter>
120      <CssParameter name="stroke-linecap">round</CssParameter>
121      <CssParameter name="stroke-width">0.75</CssParameter>
122      <CssParameter name="stroke-dasharray">4,2</CssParameter>
123    </LineSymbolizer>
124  </Rule>
125</Style>
126
127<Style name="sports_grounds">
128  <Rule>
129   &maxscale_zoom12;
130    <Filter>[leisure] = 'sports_centre' or [leisure] = 'stadium'</Filter>
131    <PolygonSymbolizer>
132       <CssParameter name="fill">&black;</CssParameter>
133    </PolygonSymbolizer>
134  </Rule>
135</Style>
136
137<Style name="sports_grounds_pitch">
138  <Rule>
139    &maxscale_zoom12;
140   <PolygonSymbolizer>
141       <CssParameter name="fill">&roadcore-color;</CssParameter>
142    </PolygonSymbolizer>
143   <LineSymbolizer>
144      <CssParameter name="stroke">&black;</CssParameter>
145      <CssParameter name="stroke-width">0.6</CssParameter>
146    </LineSymbolizer>
147  </Rule>
148</Style>
149
150<Style name="islands">
151  <Rule>
152    &maxscale_zoom8;
153    &minscale_zoom11;
154    <PolygonSymbolizer>
155      <CssParameter name="fill">&background-color;</CssParameter>
156    </PolygonSymbolizer>
157  </Rule>
158  <Rule>
159    &maxscale_zoom12;
160    &minscale_zoom12;
161    <PolygonSymbolizer>
162      <CssParameter name="fill">&background-color;</CssParameter>
163    </PolygonSymbolizer>
164    <LineSymbolizer>
165      <CssParameter name="stroke">&waterline-color;</CssParameter>
166      <CssParameter name="stroke-width">0.4</CssParameter>
167      <CssParameter name="stroke-linejoin">round</CssParameter>
168      <CssParameter name="stroke-linecap">round</CssParameter>
169    </LineSymbolizer>
170  </Rule>
171  <Rule>
172    &maxscale_zoom13;
173    <PolygonSymbolizer>
174      <CssParameter name="fill">&background-color;</CssParameter>
175    </PolygonSymbolizer>
176    <LineSymbolizer>
177      <CssParameter name="stroke">&waterline-color;</CssParameter>
178      <CssParameter name="stroke-width">0.8</CssParameter>
179      <CssParameter name="stroke-linejoin">round</CssParameter>
180      <CssParameter name="stroke-linecap">round</CssParameter>
181    </LineSymbolizer>
182  </Rule>
183</Style>
184
185<Style name="water_areas_casing">
186  <Rule>
187    <Filter>&water_area;</Filter>
188    &maxscale_zoom12;
189    &minscale_zoom13;
190    <LineSymbolizer>
191      <CssParameter name="stroke">&waterline-color;</CssParameter>
192      <CssParameter name="stroke-width">0.8</CssParameter>
193      <CssParameter name="stroke-linejoin">round</CssParameter>
194      <CssParameter name="stroke-linecap">round</CssParameter>
195   </LineSymbolizer>
196  </Rule>
197  <Rule>
198    <Filter>&water_area;</Filter>
199    &maxscale_zoom14;
200    <LineSymbolizer>
201      <CssParameter name="stroke">&waterline-color;</CssParameter>
202      <CssParameter name="stroke-width">1.6</CssParameter>
203      <CssParameter name="stroke-linejoin">round</CssParameter>
204      <CssParameter name="stroke-linecap">round</CssParameter>
205    </LineSymbolizer>
206  </Rule>
207</Style>
208
209<Style name="water_lines_casing">
210  <Rule>
211    &maxscale_zoom10;
212    &minscale_zoom11;
213    <LineSymbolizer>
214      <CssParameter name="stroke">&waterline-color;</CssParameter>
215      <CssParameter name="stroke-width">0.3</CssParameter>
216      <CssParameter name="stroke-linejoin">round</CssParameter>
217      <CssParameter name="stroke-linecap">round</CssParameter>
218    </LineSymbolizer>
219  </Rule>
220  <Rule>
221    &maxscale_zoom12;
222    &minscale_zoom12;
223    <LineSymbolizer>
224      <CssParameter name="stroke">&waterline-color;</CssParameter>
225      <CssParameter name="stroke-width">0.5</CssParameter>
226      <CssParameter name="stroke-linejoin">round</CssParameter>
227      <CssParameter name="stroke-linecap">round</CssParameter>
228    </LineSymbolizer>
229  </Rule>
230  <Rule>
231    &maxscale_zoom13;
232    &minscale_zoom13;
233    <LineSymbolizer>
234      <CssParameter name="stroke">&waterline-color;</CssParameter>
235      <CssParameter name="stroke-width">0.7</CssParameter>
236      <CssParameter name="stroke-linejoin">round</CssParameter>
237      <CssParameter name="stroke-linecap">round</CssParameter>
238    </LineSymbolizer>
239  </Rule>
240  <Rule>
241    &maxscale_zoom14;
242    <LineSymbolizer>
243      <CssParameter name="stroke">&waterline-color;</CssParameter>
244      <CssParameter name="stroke-width">0.9</CssParameter>
245      <CssParameter name="stroke-linejoin">round</CssParameter>
246      <CssParameter name="stroke-linecap">round</CssParameter>
247    </LineSymbolizer>
248  </Rule>
249</Style>
250
251<Style name="water_areas_core">
252  <Rule>
253    <Filter>&water_area;</Filter>
254    &maxscale_zoom6;
255    <PolygonSymbolizer>
256      <CssParameter name="fill">&water-color;</CssParameter>
257    </PolygonSymbolizer>
258  </Rule>
259</Style>
260
261<Style name="marshes">
262  <Rule>
263    <Filter>([natural] = 'wetland' or [natural] = 'marsh')</Filter>
264    &maxscale_zoom12;
265   <PolygonPatternSymbolizer file="&symbols;/marsh.png"/>
266  </Rule>
267</Style>
268
269<Layer name="leisure" status="on" srs="&osm2pgsql_projection;">
270  <StyleName>leisure</StyleName>
271  <Datasource>
272    <Parameter name="table">
273    (select way,aeroway,amenity,landuse,leisure,man_made,military,highway,"natural",power,tourism,name
274     from &prefix;_polygon
275     where landuse is not null
276        or leisure is not null
277        or aeroway in ('apron','aerodrome')
278        or amenity in ('parking','university','college','school','hospital','grave_yard')
279        or highway in ('pedestrian','services','turning_circle','raceway')
280        or military in ('barracks','danger_area')
281        or "natural" in ('field','beach','heath','mud','wood','scrub','meadow','crop','grass','grassland')
282        or power in ('station','sub_station')
283        or tourism in ('attraction','camp_site','caravan_site','picnic_site','zoo')
284     order by z_order,way_area desc
285    ) as leisure
286    </Parameter>
287    &datasource-settings;
288  </Datasource>
289</Layer>
290
291<Layer name="sports_grounds" status="on" srs="&osm2pgsql_projection;">
292  <StyleName>sports_grounds</StyleName>
293  <StyleName>sports_grounds_pitch</StyleName>
294  <Datasource>
295    <Parameter name="table">
296    (select way,leisure
297     from &prefix;_polygon
298     where leisure in ('sports_centre','stadium','pitch')
299     order by z_order,way_area desc) as sports_grounds
300    </Parameter>
301    &datasource-settings;
302  </Datasource>
303</Layer>
304
305<Layer name="water_areas" status="on" srs="&osm2pgsql_projection;">
306  <StyleName>water_areas_casing</StyleName>
307  <StyleName>marshes</StyleName>
308  <Datasource>
309    &datasource-settings;
310    <Parameter name="table">
311    (select way,"natural",waterway,landuse,name,way_area
312     from &prefix;_polygon
313     where waterway in ('dock','mill_pond','riverbank','canal','river')
314        or landuse in ('reservoir','water','basin')
315        or "natural" in ('lake','water','land','wetland','marsh','glacier','pond')
316     order by z_order,way_area desc
317    ) as water_areas
318    </Parameter>
319  </Datasource>
320</Layer>
321
322<Layer name="water_lines" status="on" srs="&osm2pgsql_projection;">
323  <StyleName>water_lines_casing</StyleName>
324  <Datasource>
325    &datasource-settings;
326    <Parameter name="table">
327    (select way,waterway,disused,name,
328     case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel
329     from &prefix;_line
330     where waterway in ('weir','river','canal','derelict_canal','stream','drain')
331       and (bridge is null or bridge not in ('yes','true','1','aqueduct'))
332     order by z_order
333    ) as water_lines</Parameter>
334  </Datasource>
335</Layer>
336
337<Layer name="water_areas" status="on" srs="&osm2pgsql_projection;">
338  <StyleName>water_areas_core</StyleName>
339  <Datasource>
340    &datasource-settings;
341    <Parameter name="table">
342    (select way,"natural",waterway,landuse,name,way_area
343     from &prefix;_polygon
344     where waterway in ('dock','mill_pond','riverbank','canal','river')
345        or landuse in ('reservoir','water','basin')
346        or "natural" in ('lake','water','land','glacier','pond')
347     order by z_order,way_area desc
348    ) as water_areas</Parameter>
349  </Datasource>
350</Layer>
351
352<Layer name="islands" status="on" srs="&osm2pgsql_projection;">
353  <StyleName>islands</StyleName>
354  <Datasource>
355    &datasource-settings;
356    <Parameter name="table">
357    (select way,"natural" from &prefix;_polygon
358     where "natural" in ('land', 'island')
359     order by z_order,way_area desc) as land
360    </Parameter>
361  </Datasource>
362</Layer>
Note: See TracBrowser for help on using the repository browser.