source: subversion/applications/rendering/mapnik/inc/layer-water.xml.inc @ 25725

Revision 25725, 22.8 KB checked in by ldp, 3 years ago (diff)

Move natural=scrub from water inc to main landuse style. Bumped from z13 to z10 to keep in line with many other landuse/natural types.

Line 
1<Style name="water_areas">
2    <Rule>
3      <Filter>[natural] = 'glacier'</Filter>
4      &maxscale_zoom6;
5      &minscale_zoom7;
6      <LineSymbolizer>
7        <CssParameter name="stroke">#9cf</CssParameter>
8        <CssParameter name="stroke-width">1.5</CssParameter>
9        <CssParameter name="stroke-dasharray">4,2</CssParameter>
10      </LineSymbolizer>
11      <PolygonPatternSymbolizer file="&symbols;/glacier.png" />
12    </Rule>
13    <Rule>
14      <Filter>[natural] = 'glacier'</Filter>
15      &maxscale_zoom8;
16      <LineSymbolizer>
17        <CssParameter name="stroke">#9cf</CssParameter>
18        <CssParameter name="stroke-width">1.5</CssParameter>
19        <CssParameter name="stroke-dasharray">4,2</CssParameter>
20      </LineSymbolizer>
21      <PolygonPatternSymbolizer file="&symbols;/glacier2.png" />
22    </Rule>
23    <Rule>
24      <Filter>[waterway] = 'dock' or [waterway] = 'mill_pond' or [waterway]='canal'</Filter>
25      &maxscale_zoom9;
26      <PolygonSymbolizer>
27        <CssParameter name="fill">#b5d0d0</CssParameter>
28        <CssParameter name="gamma">.75</CssParameter>
29     </PolygonSymbolizer>
30    </Rule>
31    <Rule>
32      <Filter>[landuse] = 'basin'</Filter>
33      &maxscale_zoom7;
34      <PolygonSymbolizer>
35        <CssParameter name="fill">#b5d0d0</CssParameter>
36        <CssParameter name="gamma">.75</CssParameter>
37     </PolygonSymbolizer>
38    </Rule>
39    <Rule>
40      <Filter>[natural] = 'lake' or [natural] = 'water' or [landuse] = 'reservoir' or [waterway] = 'riverbank' or [landuse] = 'water' or [natural]='bay'</Filter>
41      &maxscale_zoom6;
42      <PolygonSymbolizer>
43        <CssParameter name="fill">#b5d0d0</CssParameter>
44        <CssParameter name="gamma">.75</CssParameter>
45     </PolygonSymbolizer>
46    </Rule>
47    <Rule>
48      <Filter>[natural] = 'mud'</Filter>
49      &maxscale_zoom13;
50      <PolygonPatternSymbolizer file="&symbols;/mud.png" />
51    </Rule>
52    <Rule>
53      <Filter>[natural] = 'land'</Filter>
54      &maxscale_zoom10;
55      <PolygonSymbolizer>
56        <CssParameter name="fill">#f2efe9</CssParameter>
57     </PolygonSymbolizer>
58    </Rule>
59</Style>
60<Style name="water-areas-overlay">
61    <Rule>
62      &maxscale_zoom13;
63      <Filter>[natural] = 'marsh' or [natural] = 'wetland'</Filter>
64      <PolygonPatternSymbolizer file="&symbols;/marsh.png" />
65    </Rule>
66</Style>
67<Style name="glaciers-text">
68    <Rule>
69      <Filter>[way_area] &gt;= 10000000</Filter>
70      &maxscale_zoom10;
71      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#99f" halo_radius="1" wrap_width="20"/>
72    </Rule>
73    <Rule>
74      <Filter>[way_area] &gt;= 5000000 and [way_area] &lt; 10000000</Filter>
75      &maxscale_zoom11;
76      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#99f" halo_radius="1" wrap_width="20"/>
77    </Rule>
78    <Rule>
79      <Filter>[way_area] &lt; 5000000</Filter>
80      &maxscale_zoom12;
81      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#99f" halo_radius="1" wrap_width="20"/>
82    </Rule>
83</Style>
84
85<Style name="water-lines-casing">
86    <Rule>
87      <Filter>[waterway]='stream' or [waterway]='ditch' or [waterway]='drain'</Filter>
88      &maxscale_zoom13;
89      &minscale_zoom14;
90      <LineSymbolizer>
91        <CssParameter name="stroke">white</CssParameter>
92        <CssParameter name="stroke-width">1.5</CssParameter>
93      </LineSymbolizer>
94    </Rule>
95    <Rule>
96      <Filter>[waterway]='stream'</Filter>
97      &maxscale_zoom15;
98      &minscale_zoom18;
99      <LineSymbolizer>
100        <CssParameter name="stroke">white</CssParameter>
101        <CssParameter name="stroke-width">2.5</CssParameter>
102      </LineSymbolizer>
103    </Rule>
104</Style>
105
106<Style name="water-lines-low-zoom">
107    <Rule>
108      <Filter>[waterway]='river'</Filter>
109      &maxscale_zoom8;
110      &minscale_zoom8;
111      <LineSymbolizer>
112        <CssParameter name="stroke">#b5d0d0</CssParameter>
113        <CssParameter name="stroke-width">0.7</CssParameter>
114      </LineSymbolizer>
115    </Rule>
116    <Rule>
117      <Filter>[waterway]='river'</Filter>
118      &maxscale_zoom9;
119      &minscale_zoom9;
120      <LineSymbolizer>
121        <CssParameter name="stroke">#b5d0d0</CssParameter>
122        <CssParameter name="stroke-width">1.2</CssParameter>
123      </LineSymbolizer>
124    </Rule>
125    <Rule>
126      <Filter>[waterway]='river'</Filter>
127      &maxscale_zoom10;
128      &minscale_zoom11;
129      <LineSymbolizer>
130        <CssParameter name="stroke">#b5d0d0</CssParameter>
131        <CssParameter name="stroke-width">1.6</CssParameter>
132      </LineSymbolizer>
133    </Rule>
134</Style>
135
136<Style name="water_lines">
137    <Rule>
138      <Filter>[waterway]='weir'</Filter>
139      &maxscale_zoom15;
140      &minscale_zoom18;
141      <LineSymbolizer>
142        <CssParameter name="stroke">#aaa</CssParameter>
143        <CssParameter name="stroke-width">2</CssParameter>
144        <CssParameter name="stroke-linejoin">round</CssParameter>
145        <CssParameter name="stroke-linecap">round</CssParameter>
146      </LineSymbolizer>
147    </Rule>
148    <Rule>
149      <Filter>[waterway]='wadi'</Filter>
150      &maxscale_zoom13;
151      &minscale_zoom15;
152      <LineSymbolizer>
153        <CssParameter name="stroke">#b5d0d0</CssParameter>
154        <CssParameter name="stroke-width">1</CssParameter>
155        <CssParameter name="stroke-linejoin">round</CssParameter>
156        <CssParameter name="stroke-linecap">round</CssParameter>
157        <CssParameter name="stroke-dasharray">4,4</CssParameter>
158      </LineSymbolizer>
159    </Rule>
160    <Rule>
161      <Filter>[waterway]='wadi'</Filter>
162      &maxscale_zoom16;
163      <LineSymbolizer>
164        <CssParameter name="stroke">#b5d0d0</CssParameter>
165        <CssParameter name="stroke-width">2</CssParameter>
166        <CssParameter name="stroke-linejoin">round</CssParameter>
167        <CssParameter name="stroke-linecap">round</CssParameter>
168        <CssParameter name="stroke-dasharray">4,4</CssParameter>
169      </LineSymbolizer>
170    </Rule>
171    <Rule>
172      <Filter>[waterway]='river'</Filter>
173      &maxscale_zoom12;
174      &minscale_zoom12;
175      <LineSymbolizer>
176        <CssParameter name="stroke">#b5d0d0</CssParameter>
177        <CssParameter name="stroke-width">2</CssParameter>
178        <CssParameter name="stroke-linejoin">round</CssParameter>
179        <CssParameter name="stroke-linecap">round</CssParameter>
180      </LineSymbolizer>
181    </Rule>
182    <Rule>
183      <Filter>[waterway]='river'</Filter>
184      &maxscale_zoom13;
185      &minscale_zoom13;
186      <LineSymbolizer>
187        <CssParameter name="stroke">#b5d0d0</CssParameter>
188        <CssParameter name="stroke-width">3</CssParameter>
189        <CssParameter name="stroke-linejoin">round</CssParameter>
190        <CssParameter name="stroke-linecap">round</CssParameter>
191      </LineSymbolizer>
192      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#6699cc" halo_radius="1" placement="line" spacing="400" />
193    </Rule>
194    <Rule>
195      <Filter>[waterway]='river'</Filter>
196      &maxscale_zoom14;
197      &minscale_zoom14;
198      <LineSymbolizer>
199        <CssParameter name="stroke">#b5d0d0</CssParameter>
200        <CssParameter name="stroke-width">5</CssParameter>
201        <CssParameter name="stroke-linejoin">round</CssParameter>
202        <CssParameter name="stroke-linecap">round</CssParameter>
203      </LineSymbolizer>
204      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#6699cc" halo_radius="1" placement="line" spacing="400" />
205    </Rule><Rule>
206      <Filter>[waterway]='river'</Filter>
207      &maxscale_zoom15;
208      &minscale_zoom16;
209      <LineSymbolizer>
210        <CssParameter name="stroke">#b5d0d0</CssParameter>
211        <CssParameter name="stroke-width">6</CssParameter>
212        <CssParameter name="stroke-linejoin">round</CssParameter>
213        <CssParameter name="stroke-linecap">round</CssParameter>
214      </LineSymbolizer>
215      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#6699cc" halo_radius="1" placement="line" spacing="400" />
216    </Rule>
217    <Rule>
218      <Filter>[waterway]='river'</Filter>
219      &maxscale_zoom17;
220      &minscale_zoom17;
221      <LineSymbolizer>
222        <CssParameter name="stroke">#b5d0d0</CssParameter>
223        <CssParameter name="stroke-width">10</CssParameter>
224        <CssParameter name="stroke-linejoin">round</CssParameter>
225        <CssParameter name="stroke-linecap">round</CssParameter>
226      </LineSymbolizer>
227      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#6699cc" halo_radius="1" placement="line" spacing="400" />
228    </Rule>
229    <Rule>
230      <Filter>[waterway]='river'</Filter>
231      &maxscale_zoom18;
232      &minscale_zoom18;
233      <LineSymbolizer>
234        <CssParameter name="stroke">#b5d0d0</CssParameter>
235        <CssParameter name="stroke-width">12</CssParameter>
236        <CssParameter name="stroke-linejoin">round</CssParameter>
237        <CssParameter name="stroke-linecap">round</CssParameter>
238      </LineSymbolizer>
239      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#6699cc" halo_radius="1" placement="line" spacing="400" />
240    </Rule>
241    <Rule>
242      <Filter>[waterway]='canal' and not [disused]='yes'</Filter>
243      &maxscale_zoom12;
244      &minscale_zoom12;
245      <LineSymbolizer>
246        <CssParameter name="stroke">#b5d0d0</CssParameter>
247        <CssParameter name="stroke-width">3</CssParameter>
248        <CssParameter name="stroke-linejoin">round</CssParameter>
249        <CssParameter name="stroke-linecap">round</CssParameter>
250      </LineSymbolizer>
251    </Rule>
252    <Rule>
253      <Filter>[waterway]='canal' and not [disused]='yes'</Filter>
254      &maxscale_zoom13;
255      &minscale_zoom13;
256      <LineSymbolizer>
257        <CssParameter name="stroke">#b5d0d0</CssParameter>
258        <CssParameter name="stroke-width">4</CssParameter>
259        <CssParameter name="stroke-linejoin">round</CssParameter>
260        <CssParameter name="stroke-linecap">round</CssParameter>
261      </LineSymbolizer>
262      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#6699cc" halo_radius="1" placement="line"/>
263    </Rule>
264    <Rule>
265      <Filter>[waterway]='stream' or [waterway]='ditch' or [waterway]='drain'</Filter>
266      &maxscale_zoom13;
267      &minscale_zoom14;
268      <LineSymbolizer>
269        <CssParameter name="stroke">#b5d0d0</CssParameter>
270        <CssParameter name="stroke-width">1</CssParameter>
271      </LineSymbolizer>
272    </Rule>
273    <Rule>
274      <Filter>[waterway]='river' and [tunnel] = 'yes'</Filter>
275      &maxscale_zoom14;
276      &minscale_zoom14;
277      <LineSymbolizer>
278        <CssParameter name="stroke">#b5d0d0</CssParameter>
279        <CssParameter name="stroke-width">6</CssParameter>
280        <CssParameter name="stroke-dasharray">4,2</CssParameter>
281      </LineSymbolizer>
282      <LineSymbolizer>
283        <CssParameter name="stroke">white</CssParameter>
284        <CssParameter name="stroke-width">4</CssParameter>
285      </LineSymbolizer>
286      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#6699cc" halo_radius="1" placement="line" min_distance="200"/>
287    </Rule><Rule>
288      <Filter>[waterway]='river' and [tunnel] = 'yes'</Filter>
289      &maxscale_zoom15;
290      &minscale_zoom16;
291      <LineSymbolizer>
292        <CssParameter name="stroke">#b5d0d0</CssParameter>
293        <CssParameter name="stroke-width">7</CssParameter>
294        <CssParameter name="stroke-dasharray">4,2</CssParameter>
295      </LineSymbolizer>
296      <LineSymbolizer>
297        <CssParameter name="stroke">white</CssParameter>
298        <CssParameter name="stroke-width">4</CssParameter>
299      </LineSymbolizer>
300      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#6699cc" halo_radius="1" placement="line" min_distance="200"/>
301    </Rule>
302    <Rule>
303      <Filter>[waterway]='river' and [tunnel] = 'yes'</Filter>
304      &maxscale_zoom17;
305      &minscale_zoom17;
306      <LineSymbolizer>
307        <CssParameter name="stroke">#b5d0d0</CssParameter>
308        <CssParameter name="stroke-width">11</CssParameter>
309        <CssParameter name="stroke-dasharray">4,2</CssParameter>
310      </LineSymbolizer>
311      <LineSymbolizer>
312        <CssParameter name="stroke">white</CssParameter>
313        <CssParameter name="stroke-width">7</CssParameter>
314      </LineSymbolizer>
315      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#6699cc" halo_radius="1" placement="line" min_distance="200"/>
316    </Rule>
317    <Rule>
318      <Filter>[waterway]='river' and [tunnel] = 'yes'</Filter>
319      &maxscale_zoom18;
320      <LineSymbolizer>
321        <CssParameter name="stroke">#b5d0d0</CssParameter>
322        <CssParameter name="stroke-width">13</CssParameter>
323        <CssParameter name="stroke-dasharray">4,2</CssParameter>
324      </LineSymbolizer>
325      <LineSymbolizer>
326        <CssParameter name="stroke">white</CssParameter>
327        <CssParameter name="stroke-width">9</CssParameter>
328      </LineSymbolizer>
329      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#6699cc" halo_radius="1" placement="line" min_distance="200"/>
330    </Rule>
331    <Rule>
332      <Filter>[waterway]='canal' and [tunnel] = 'yes'</Filter>
333      &maxscale_zoom14;
334      &minscale_zoom16;
335       <LineSymbolizer>
336        <CssParameter name="stroke">#b5d0d0</CssParameter>
337        <CssParameter name="stroke-width">7</CssParameter>
338        <CssParameter name="stroke-dasharray">4,2</CssParameter>
339      </LineSymbolizer>
340      <LineSymbolizer>
341        <CssParameter name="stroke">white</CssParameter>
342        <CssParameter name="stroke-width">3</CssParameter>
343      </LineSymbolizer>
344      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#6699cc" halo_radius="1" placement="line"/>
345    </Rule>
346    <Rule>
347      <Filter>[waterway]='canal' and not ([tunnel] = 'yes' or [disused]='yes')</Filter>
348      &maxscale_zoom14;
349      &minscale_zoom16;
350      <LineSymbolizer>
351        <CssParameter name="stroke">#b5d0d0</CssParameter>
352        <CssParameter name="stroke-width">7</CssParameter>
353        <CssParameter name="stroke-linejoin">round</CssParameter>
354        <CssParameter name="stroke-linecap">round</CssParameter>
355      </LineSymbolizer>
356      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#6699cc" halo_radius="1" placement="line"/>
357    </Rule>
358    <Rule>
359      <Filter>[waterway]='canal' and [tunnel] = 'yes'</Filter>
360      &maxscale_zoom17;
361      &minscale_zoom18;
362       <LineSymbolizer>
363        <CssParameter name="stroke">#b5d0d0</CssParameter>
364        <CssParameter name="stroke-width">11</CssParameter>
365        <CssParameter name="stroke-dasharray">4,2</CssParameter>
366      </LineSymbolizer>
367      <LineSymbolizer>
368        <CssParameter name="stroke">white</CssParameter>
369        <CssParameter name="stroke-width">7</CssParameter>
370      </LineSymbolizer>
371      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#6699cc" halo_radius="1" placement="line"/>
372    </Rule>
373    <Rule>
374      <Filter>[waterway]='canal' and not ([tunnel] = 'yes' or [disused]='yes' or [lock]='yes')</Filter>
375      &maxscale_zoom17;
376      &minscale_zoom18;
377      <LineSymbolizer>
378        <CssParameter name="stroke">#b5d0d0</CssParameter>
379        <CssParameter name="stroke-width">11</CssParameter>
380        <CssParameter name="stroke-linejoin">round</CssParameter>
381        <CssParameter name="stroke-linecap">round</CssParameter>
382      </LineSymbolizer>
383      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#6699cc" halo_radius="1" placement="line"/>
384    </Rule>
385    <Rule>
386      <Filter>[waterway]='canal' and not ([tunnel] = 'yes' or [disused]='yes') and [lock]='yes'</Filter>
387      &maxscale_zoom17;
388      &minscale_zoom18;
389      <LineSymbolizer>
390        <CssParameter name="stroke">#b5d0d0</CssParameter>
391        <CssParameter name="stroke-width">7</CssParameter>
392        <CssParameter name="stroke-linejoin">round</CssParameter>
393        <CssParameter name="stroke-linecap">round</CssParameter>
394      </LineSymbolizer>
395      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#6699cc" halo_radius="1" wrap_width="20"/>
396    </Rule>
397    <Rule>
398      <Filter>[waterway]='derelict_canal' or ([waterway]='canal' and [disused]='yes')</Filter>
399      &maxscale_zoom12;
400      &minscale_zoom12;
401      <LineSymbolizer>
402        <CssParameter name="stroke">#b5e4d0</CssParameter>
403        <CssParameter name="stroke-width">1.5</CssParameter>
404        <CssParameter name="stroke-dasharray">4,4</CssParameter>
405        <CssParameter name="stroke-opacity">0.5</CssParameter>
406        <CssParameter name="stroke-linejoin">round</CssParameter>
407        <CssParameter name="stroke-linecap">round</CssParameter>
408      </LineSymbolizer>
409    </Rule>
410    <Rule>
411      <Filter>[waterway]='derelict_canal' or ([waterway]='canal' and [disused]='yes')</Filter>
412      &maxscale_zoom13;
413      &minscale_zoom13;
414      <LineSymbolizer>
415        <CssParameter name="stroke">#b5e4d0</CssParameter>
416        <CssParameter name="stroke-width">2.5</CssParameter>
417        <CssParameter name="stroke-dasharray">4,6</CssParameter>
418        <CssParameter name="stroke-opacity">0.5</CssParameter>
419        <CssParameter name="stroke-linejoin">round</CssParameter>
420        <CssParameter name="stroke-linecap">round</CssParameter>
421      </LineSymbolizer>
422      <TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="#80d1ae" halo_radius="1" spacing="600" placement="line"/>
423    </Rule>
424    <Rule>
425      <Filter>[waterway]='derelict_canal' or ([waterway]='canal' and [disused]='yes')</Filter>
426      &maxscale_zoom14;
427      &minscale_zoom18;
428      <LineSymbolizer>
429        <CssParameter name="stroke">#b5e4d0</CssParameter>
430        <CssParameter name="stroke-width">4.5</CssParameter>
431        <CssParameter name="stroke-dasharray">4,8</CssParameter>
432        <CssParameter name="stroke-opacity">0.5</CssParameter>
433        <CssParameter name="stroke-linejoin">round</CssParameter>
434        <CssParameter name="stroke-linecap">round</CssParameter>
435      </LineSymbolizer>
436      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#80d1ae" halo_radius="1" spacing="600" placement="line"/>
437    </Rule>
438    <Rule>
439      <Filter>[waterway]='stream' and [tunnel]='yes'</Filter>
440      &maxscale_zoom15;
441      &minscale_zoom18;
442      <LineSymbolizer>
443        <CssParameter name="stroke">#b5d0d0</CssParameter>
444        <CssParameter name="stroke-width">2.4</CssParameter>
445        <CssParameter name="stroke-dasharray">4,2</CssParameter>
446      </LineSymbolizer>
447      <LineSymbolizer>
448        <CssParameter name="stroke">#f3f7f7</CssParameter>
449        <CssParameter name="stroke-width">1.2</CssParameter>
450      </LineSymbolizer>
451    </Rule>
452    <Rule>
453      <Filter>[waterway]='stream' and not [tunnel]='yes'</Filter>
454      &maxscale_zoom15;
455      &minscale_zoom18;
456      <LineSymbolizer>
457        <CssParameter name="stroke">#b5d0d0</CssParameter>
458        <CssParameter name="stroke-width">2</CssParameter>
459      </LineSymbolizer>
460      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#6699cc" halo_radius="1" spacing="600" placement="line"/>
461    </Rule>
462    <Rule>
463      <Filter>([waterway]='drain' or [waterway]='ditch') and [tunnel]='yes'</Filter>
464      &maxscale_zoom15;
465      &minscale_zoom18;
466      <LineSymbolizer>
467        <CssParameter name="stroke">#b5d0d0</CssParameter>
468        <CssParameter name="stroke-width">2</CssParameter>
469        <CssParameter name="stroke-dasharray">4,2</CssParameter>
470      </LineSymbolizer>
471      <LineSymbolizer>
472        <CssParameter name="stroke">#f3f7f7</CssParameter>
473        <CssParameter name="stroke-width">1</CssParameter>
474      </LineSymbolizer>
475    </Rule>
476    <Rule>
477      <Filter>([waterway]='drain' or [waterway]='ditch') and not [tunnel]='yes'</Filter>
478      &maxscale_zoom15;
479      &minscale_zoom18;
480      <LineSymbolizer>
481        <CssParameter name="stroke">#b5d0d0</CssParameter>
482        <CssParameter name="stroke-width">1</CssParameter>
483      </LineSymbolizer>
484      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#6699cc" halo_radius="1" spacing="600" placement="line"/>
485    </Rule>
486</Style>
487
488<Layer name="water-lines-casing" status="on" srs="&osm2pgsql_projection;">
489    <StyleName>water-lines-casing</StyleName>
490    <Datasource>
491      <Parameter name="table">
492      (select way,waterway
493      from &prefix;_line
494      where waterway in ('stream','drain','ditch')
495        and (tunnel is null or tunnel != 'yes')
496      ) as water_lines</Parameter>
497      &datasource-settings;
498    </Datasource>
499</Layer>
500<Layer name="water_areas" status="on" srs="&osm2pgsql_projection;">
501    <StyleName>water_areas</StyleName>
502    <Datasource>
503      <Parameter name="table">
504      (select way,"natural",waterway,landuse,name
505      from &prefix;_polygon
506      where waterway in ('dock','mill_pond','riverbank','canal')
507         or landuse in ('reservoir','water','basin')
508         or "natural" in ('lake','water','land','glacier','mud','bay')
509      order by z_order,way_area desc
510      ) as water_areas</Parameter>
511      &datasource-settings;
512    </Datasource>
513</Layer>
514<!-- Make sure overlay styles are always rendered on top of solid areas. -->
515<Layer name="water-areas-overlay" status="on" srs="&osm2pgsql_projection;">
516    <StyleName>water-areas-overlay</StyleName>
517    <Datasource>
518      <Parameter name="table">
519      (select way,"natural"
520      from &prefix;_polygon
521      where "natural" in ('marsh','wetland')
522      order by z_order,way_area desc
523      ) as water_areas</Parameter>
524      &datasource-settings;
525    </Datasource>
526</Layer>
527<Layer name="glaciers-text" status="on" srs="&osm2pgsql_projection;">
528    <StyleName>glaciers-text</StyleName>
529    <Datasource>
530      <Parameter name="table">
531      (select way,name,way_area
532      from &prefix;_polygon
533      where "natural"='glacier'
534      order by way_area desc
535      ) as glaciers</Parameter>
536      &datasource-settings;
537    </Datasource>
538</Layer>
539
540<Layer name="water-lines-low-zoom" status="on" srs="&osm2pgsql_projection;">
541    <StyleName>water-lines-low-zoom</StyleName>
542    <Datasource>
543      <Parameter name="table">
544      (select way,waterway
545      from &prefix;_line
546      where waterway='river'
547      ) as water_lines</Parameter>
548      &datasource-settings;
549    </Datasource>
550</Layer>
551
552<Layer name="water_lines" status="on" srs="&osm2pgsql_projection;">
553    <StyleName>water_lines</StyleName>
554    <Datasource>
555      <Parameter name="table">
556      (select way,waterway,disused,lock,name,
557      case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel
558      from &prefix;_line
559      where waterway in ('weir','river','canal','derelict_canal','stream','drain','ditch','wadi')
560        and (bridge is null or bridge not in ('yes','true','1','aqueduct'))
561      order by z_order
562      ) as water_lines</Parameter>
563      &datasource-settings;
564    </Datasource>
565</Layer>
Note: See TracBrowser for help on using the repository browser.