source: subversion/applications/rendering/mapnik-german/inc-de/layer-water.xml.inc @ 27845

Last change on this file since 27845 was 25243, checked in by frederik, 9 years ago

first attempt at committing german map style (written by Beate Braun for her Bachelor Thesis)

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