source: subversion/applications/rendering/nor-screenspec/layer-landscape.xml.ent @ 34655

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

Draw wood from zoom=8 (was zoom=9)

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