source: subversion/applications/rendering/toposm/features-fill.xml.templ @ 34399

Last change on this file since 34399 was 24211, checked in by ahlzen, 9 years ago

Applied several bugfix patches by Phil Gold.

File size: 28.3 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE Map[
3    <!ENTITY % utils SYSTEM "include/utils.inc">
4    <!ENTITY % colors SYSTEM "include/colors.inc">
5        <!ENTITY dbsettings SYSTEM "include/dbsettings.inc">
6        <!ENTITY extents SYSTEM "include/extents.inc">
7        <!ENTITY extentsLatLon SYSTEM "include/extentsLatLon.inc">
8        <!ENTITY rounded SYSTEM "include/rounded.inc">
9        <!ENTITY bridgeoutline SYSTEM "include/bridgeoutline.inc">
10        %utils;
11        %colors;
12]>
13
14<Map bgcolor="&landcolor;" srs="&srs900913;">
15
16<Style name="parking">
17  <Rule>
18        &minz14;
19        &maxz15;
20    <Filter>[amenity] = 'parking'</Filter>
21        <PolygonSymbolizer>
22         <CssParameter name="fill">&parkingcolor;</CssParameter>
23      </PolygonSymbolizer>
24  </Rule>
25  <Rule>
26        &minz16;
27    <Filter>[amenity] = 'parking'</Filter>
28    <PolygonSymbolizer>
29         <CssParameter name="fill">&parkingcolor;</CssParameter>
30      </PolygonSymbolizer>
31  </Rule>
32</Style>
33
34
35<!-- Duplicated in tmp-watermask.xml -->
36<!--
37Perennial lakes and ponds (39000, 39003, 39004, 39009-39012)
38Intermittent lakes and ponds (39001, 39002, 39005, 39006)
39Perennial rivers/streams (46000, 46004, 46005, 46006)
40Intermittent rivers/streams (46001, 46002, 46003)
41Reservoirs (Reservoir) (436xx)
42Canals and ditches (CanalDitch) (336xx)
43-->
44<!--
45<Style name="water">
46  <Rule>
47    &minz10;
48    <Filter>
49        [fcode] = 39000 or [fcode] = 39003 or [fcode] = 39004 or ([fcode] &gt;= 39009 and [fcode] &lt;= 39012) or
50        [fcode] = 46000 or [fcode] = 46004 or [fcode] = 46005 or [fcode] = 46006 or
51                ([fcode] &gt;= 43600 and [fcode] &lt;= 43699) or
52        ([fcode] &gt;= 33600 and [fcode] &lt;= 33699) or
53        [fcode] = 39001 or [fcode] = 39002 or [fcode] = 39005 or [fcode] = 39006 or
54        [fcode] = 46001 or [fcode] = 46002 or [fcode] = 46003
55    </Filter>
56    <PolygonSymbolizer>
57      <CssParameter name="fill">&waterfillcolor;</CssParameter>
58    </PolygonSymbolizer>
59  </Rule>
60</Style>
61-->
62
63<Style name="highway">
64
65  <!--
66  Bridge outlines
67  (roads, paths, rail - scales below 60000 (z14 and up) only)
68 
69  NOTE: Bridge outlines don't *really* belong here (should
70  be "cut" by halos), but there is no other way since they need to
71  be drawn "between" road fills at difference levels.
72  -->
73
74  <Rule>
75        &minz14;
76        &maxz14;
77    <Filter>([highway] = 'motorway' or [highway] = 'trunk') and [bridge] = 'yes' and [pass] = 1
78    </Filter>
79    <LineSymbolizer>
80        <CssParameter name="stroke-width">9.0</CssParameter>
81                &bridgeoutline;
82    </LineSymbolizer>
83  </Rule>
84  <Rule>
85        &minz15;
86    <Filter>([highway] = 'motorway' or [highway] = 'trunk') and [bridge] = 'yes' and [pass] = 1
87    </Filter>
88    <LineSymbolizer>
89        <CssParameter name="stroke-width">16.0</CssParameter>
90                &bridgeoutline;
91    </LineSymbolizer>
92  </Rule>
93  <Rule>
94        &minz14;
95        &maxz14;
96    <Filter>([highway] = 'primary') and [bridge] = 'yes' and [pass] = 1</Filter>
97    <LineSymbolizer>
98                <CssParameter name="stroke-width">7.5</CssParameter>
99                &bridgeoutline;
100    </LineSymbolizer>
101  </Rule>
102  <Rule>
103        &minz15;
104    <Filter>([highway] = 'primary') and [bridge] = 'yes' and [pass] = 1</Filter>
105    <LineSymbolizer>
106                <CssParameter name="stroke-width">13</CssParameter>
107                &bridgeoutline;
108    </LineSymbolizer>
109  </Rule>
110  <Rule>
111        &minz14;
112        &maxz15;
113    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and [bridge] = 'yes' and [pass] = 1</Filter>
114    <LineSymbolizer>
115       <CssParameter name="stroke-width">7.5</CssParameter>
116       &bridgeoutline;
117    </LineSymbolizer>
118  </Rule>
119  <Rule>
120        &minz16;
121    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and [bridge] = 'yes' and [pass] = 1</Filter>
122    <LineSymbolizer>
123       <CssParameter name="stroke-width">13</CssParameter>
124       &bridgeoutline;
125    </LineSymbolizer>
126  </Rule>
127        <Rule>
128        &minz14;
129        &maxz15;
130    <Filter>
131      ([highway] = 'motorway_link' or
132      [highway] = 'trunk_link' or
133      [highway] = 'primary_link' or
134      [highway] = 'secondary_link' or
135      [highway] = 'residential' or
136      [highway] = 'unclassified' or
137      [highway] = 'service') and [bridge] = 'yes' and [pass] = 1
138    </Filter>
139    <LineSymbolizer>
140       <CssParameter name="stroke-width">6.0</CssParameter>
141       &bridgeoutline;
142    </LineSymbolizer>
143  </Rule>
144  <Rule>
145        &minz16;
146    <Filter>
147      ([highway] = 'motorway_link' or
148      [highway] = 'trunk_link' or
149      [highway] = 'primary_link' or
150      [highway] = 'secondary_link' or
151      [highway] = 'residential' or
152      [highway] = 'unclassified' or
153      [highway] = 'service') and [bridge] = 'yes' and [pass] = 1
154    </Filter>
155    <LineSymbolizer>
156       <CssParameter name="stroke-width">10</CssParameter>
157       &bridgeoutline;
158    </LineSymbolizer>
159  </Rule>
160  <Rule>
161        &minz14;
162        &maxz14;
163        <Filter>
164                ([highway] = 'cycleway' or
165                [highway] = 'bikeway' or
166                [highway] = 'path' or
167            [highway] = 'trail' or
168        [highway] = 'footway' or
169        [highway] = 'steps' or
170        [highway] = 'pedestrian') and [bridge] = 'yes' and [pass] = 1
171    </Filter>
172    <LineSymbolizer>
173       <CssParameter name="stroke-width">2.5</CssParameter>
174       &bridgeoutline;
175    </LineSymbolizer>
176  </Rule>
177  <Rule>
178        &minz15;
179        <Filter>
180                ([highway] = 'cycleway' or
181                [highway] = 'bikeway' or
182                [highway] = 'path' or
183            [highway] = 'trail' or
184        [highway] = 'footway' or
185        [highway] = 'steps' or
186        [highway] = 'pedestrian') and [bridge] = 'yes' and [pass] = 1
187    </Filter>
188    <LineSymbolizer>
189       <CssParameter name="stroke-width">4.0</CssParameter>
190       &bridgeoutline;
191    </LineSymbolizer>
192  </Rule>
193 
194
195
196  <!-- Road (incl tunnel) fills -->
197 
198  <!-- Interstates -->
199  <Rule>
200        &minz9;
201        &maxz11;
202    <Filter>[highway] = 'motorway' and [tunnel] = 'yes'</Filter>
203    <LineSymbolizer>
204        <CssParameter name="stroke">&interstatecolortunnel;</CssParameter>
205        <CssParameter name="stroke-width">2.5</CssParameter>
206        &rounded;
207    </LineSymbolizer>
208  </Rule>
209  <Rule>
210        &minz12;
211        &maxz14;
212    <Filter>[highway] = 'motorway' and [tunnel] = 'yes'</Filter>
213    <LineSymbolizer>
214        <CssParameter name="stroke">&interstatecolortunnel;</CssParameter>
215        <CssParameter name="stroke-width">4.5</CssParameter>
216        &rounded;
217    </LineSymbolizer>
218  </Rule>
219  <Rule>
220        &minz15;
221    <Filter>[highway] = 'motorway' and [tunnel] = 'yes'</Filter>
222    <LineSymbolizer>
223        <CssParameter name="stroke">&interstatecolortunnel;</CssParameter>
224        <CssParameter name="stroke-width">8</CssParameter>
225        &rounded;
226    </LineSymbolizer>
227  </Rule>
228 
229  <Rule>
230        &minz9;
231        &maxz11;
232    <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
233    <LineSymbolizer>
234        <CssParameter name="stroke">&interstatecolor;</CssParameter>
235        <CssParameter name="stroke-width">2.5</CssParameter>
236        &rounded;
237    </LineSymbolizer>
238  </Rule>
239  <Rule>
240        &minz12;
241        &maxz14;
242    <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
243    <LineSymbolizer>
244        <CssParameter name="stroke">&interstatecolor;</CssParameter>
245        <CssParameter name="stroke-width">4.5</CssParameter>
246        &rounded;
247    </LineSymbolizer>
248  </Rule>
249  <Rule>
250        &minz15;
251    <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
252    <LineSymbolizer>
253        <CssParameter name="stroke">&interstatecolor;</CssParameter>
254        <CssParameter name="stroke-width">8</CssParameter>
255        &rounded;
256    </LineSymbolizer>
257  </Rule>
258
259  <!-- Trunk -->
260  <Rule>
261        &minz9;
262        &maxz11;
263    <Filter>[highway] = 'trunk' and [tunnel] = 'yes'</Filter>
264    <LineSymbolizer>
265        <CssParameter name="stroke">&trunkcolortunnel;</CssParameter>
266        <CssParameter name="stroke-width">2.5</CssParameter>
267        &rounded;
268    </LineSymbolizer>
269  </Rule>
270  <Rule>
271        &minz12;
272        &maxz14;
273    <Filter>[highway] = 'trunk' and [tunnel] = 'yes'</Filter>
274    <LineSymbolizer>
275        <CssParameter name="stroke">&trunkcolortunnel;</CssParameter>
276        <CssParameter name="stroke-width">4.5</CssParameter>
277        &rounded;
278    </LineSymbolizer>
279  </Rule>
280  <Rule>
281        &minz15;
282    <Filter>[highway] = 'trunk' and [tunnel] = 'yes'</Filter>
283    <LineSymbolizer>
284        <CssParameter name="stroke">&trunkcolortunnel;</CssParameter>
285        <CssParameter name="stroke-width">8</CssParameter>
286        &rounded;
287    </LineSymbolizer>
288  </Rule>
289 
290  <Rule>
291        &minz9;
292        &maxz11;
293    <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
294    <LineSymbolizer>
295        <CssParameter name="stroke">&trunkcolor;</CssParameter>
296        <CssParameter name="stroke-width">2.5</CssParameter>
297        &rounded;
298    </LineSymbolizer>
299  </Rule>
300  <Rule>
301        &minz12;
302        &maxz14;
303    <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
304    <LineSymbolizer>
305        <CssParameter name="stroke">&trunkcolor;</CssParameter>
306        <CssParameter name="stroke-width">4.5</CssParameter>
307        &rounded;
308    </LineSymbolizer>
309  </Rule>
310  <Rule>
311        &minz15;
312    <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
313    <LineSymbolizer>
314        <CssParameter name="stroke">&trunkcolor;</CssParameter>
315        <CssParameter name="stroke-width">8</CssParameter>
316        &rounded;
317    </LineSymbolizer>
318  </Rule>
319 
320  <!-- Primary -->
321  <Rule>
322      &minz10;
323      &maxz11;
324      <Filter>[highway] = 'primary' and [tunnel] = 'yes'</Filter>
325      <LineSymbolizer>
326          <CssParameter name="stroke">&primarycolortunnel;</CssParameter>
327          <CssParameter name="stroke-width">1.5</CssParameter>
328          &rounded;
329      </LineSymbolizer>
330  </Rule>
331  <Rule>
332        &minz12;
333        &maxz14;
334    <Filter>[highway] = 'primary' and [tunnel] = 'yes'</Filter>
335    <LineSymbolizer>
336        <CssParameter name="stroke">&primarycolortunnel;</CssParameter>
337        <CssParameter name="stroke-width">3.5</CssParameter>
338        &rounded;
339    </LineSymbolizer>
340  </Rule>
341  <Rule>
342        &minz15;
343    <Filter>[highway] = 'primary' and [tunnel] = 'yes'</Filter>
344    <LineSymbolizer>
345        <CssParameter name="stroke">&primarycolortunnel;</CssParameter>
346        <CssParameter name="stroke-width">6</CssParameter>
347        &rounded;
348    </LineSymbolizer>
349  </Rule>
350 
351  <Rule>
352    &minz10;
353        &maxz11;
354    <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
355    <LineSymbolizer>
356        <CssParameter name="stroke">&primarycolor;</CssParameter>
357        <CssParameter name="stroke-width">1.5</CssParameter>
358        &rounded;
359    </LineSymbolizer>
360  </Rule>
361  <Rule>
362        &minz12;
363        &maxz14;
364    <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
365    <LineSymbolizer>
366        <CssParameter name="stroke">&primarycolor;</CssParameter>
367        <CssParameter name="stroke-width">3.5</CssParameter>
368        &rounded;
369    </LineSymbolizer>
370  </Rule>
371  <Rule>
372        &minz15;
373    <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
374    <LineSymbolizer>
375        <CssParameter name="stroke">&primarycolor;</CssParameter>
376        <CssParameter name="stroke-width">6</CssParameter>
377        &rounded;
378    </LineSymbolizer>
379  </Rule>
380 
381  <!-- Secondary -->
382  <Rule>
383        &minz12;
384        &maxz13;
385    <Filter>[highway] = 'secondary' and [tunnel] = 'yes'</Filter>
386    <LineSymbolizer>
387        <CssParameter name="stroke">&secondarycolortunnel;</CssParameter>
388        <CssParameter name="stroke-width">2.0</CssParameter>
389        &rounded;
390    </LineSymbolizer>
391  </Rule>
392  <Rule>
393        &minz14;
394        &maxz15;
395    <Filter>[highway] = 'secondary' and [tunnel] = 'yes'</Filter>
396    <LineSymbolizer>
397        <CssParameter name="stroke">&secondarycolortunnel;</CssParameter>
398        <CssParameter name="stroke-width">3.5</CssParameter>
399        &rounded;
400    </LineSymbolizer>
401  </Rule>
402    <Rule>
403        &minz16;
404    <Filter>[highway] = 'secondary' and [tunnel] = 'yes'</Filter>
405    <LineSymbolizer>
406        <CssParameter name="stroke">&secondarycolortunnel;</CssParameter>
407        <CssParameter name="stroke-width">6</CssParameter>
408        &rounded;
409    </LineSymbolizer>
410  </Rule>
411
412  <Rule>
413        &minz12;
414        &maxz13;
415    <Filter>[highway] = 'secondary' and not [tunnel] = 'yes'</Filter>
416    <LineSymbolizer>
417        <CssParameter name="stroke">&secondarycolor;</CssParameter>
418        <CssParameter name="stroke-width">2.0</CssParameter>
419        &rounded;
420    </LineSymbolizer>
421  </Rule>
422  <Rule>
423        &minz14;
424        &maxz15;
425    <Filter>[highway] = 'secondary' and not [tunnel] = 'yes'</Filter>
426    <LineSymbolizer>
427        <CssParameter name="stroke">&secondarycolor;</CssParameter>
428        <CssParameter name="stroke-width">3.5</CssParameter>
429        &rounded;
430    </LineSymbolizer>
431  </Rule>
432    <Rule>
433        &minz16;
434    <Filter>[highway] = 'secondary' and not [tunnel] = 'yes'</Filter>
435    <LineSymbolizer>
436        <CssParameter name="stroke">&secondarycolor;</CssParameter>
437        <CssParameter name="stroke-width">6</CssParameter>
438        &rounded;
439    </LineSymbolizer>
440  </Rule>
441
442  <!-- Tertiary -->
443  <Rule>
444        &minz12;
445        &maxz13;
446    <Filter>[highway] = 'tertiary' and [tunnel] = 'yes'</Filter>
447    <LineSymbolizer>
448       <CssParameter name="stroke">&smallroadcolortunnel;</CssParameter>
449       <CssParameter name="stroke-width">2.0</CssParameter>
450       &rounded;
451    </LineSymbolizer>
452  </Rule>
453  <Rule>
454        &minz14;
455        &maxz15;
456    <Filter>[highway] = 'tertiary' and [tunnel] = 'yes'</Filter>
457    <LineSymbolizer>
458       <CssParameter name="stroke">&smallroadcolortunnel;</CssParameter>
459       <CssParameter name="stroke-width">3.5</CssParameter>
460       &rounded;
461    </LineSymbolizer>
462  </Rule>
463  <Rule>
464        &minz16;
465    <Filter>[highway] = 'tertiary' and [tunnel] = 'yes'</Filter>
466    <LineSymbolizer>
467       <CssParameter name="stroke">&smallroadcolortunnel;</CssParameter>
468       <CssParameter name="stroke-width">6</CssParameter>
469       &rounded;
470    </LineSymbolizer>
471  </Rule>
472 
473  <Rule>
474        &minz12;
475        &maxz13;
476    <Filter>[highway] = 'tertiary' and not [tunnel] = 'yes'</Filter>
477    <LineSymbolizer>
478       <CssParameter name="stroke">&smallroadcolor;</CssParameter>
479       <CssParameter name="stroke-width">2.0</CssParameter>
480       &rounded;
481    </LineSymbolizer>
482  </Rule>
483  <Rule>
484        &minz14;
485        &maxz15;
486    <Filter>[highway] = 'tertiary' and not [tunnel] = 'yes'</Filter>
487    <LineSymbolizer>
488       <CssParameter name="stroke">&smallroadcolor;</CssParameter>
489       <CssParameter name="stroke-width">3.5</CssParameter>
490       &rounded;
491    </LineSymbolizer>
492  </Rule>
493  <Rule>
494        &minz16;
495    <Filter>[highway] = 'tertiary' and not [tunnel] = 'yes'</Filter>
496    <LineSymbolizer>
497       <CssParameter name="stroke">&smallroadcolor;</CssParameter>
498       <CssParameter name="stroke-width">6</CssParameter>
499       &rounded;
500    </LineSymbolizer>
501  </Rule>
502
503  <!-- Minor roads -->
504  <Rule>
505        &minz14;
506        &maxz15;
507    <Filter>
508      ([highway] = 'residential' or
509      [highway] = 'unclassified' or
510      ([highway] = 'track' and not [bicycle] = 'designated') or
511          [highway] = 'unsurfaced' or
512          [highway] = 'unimproved') and [tunnel] = 'yes'
513    </Filter>
514    <LineSymbolizer>
515       <CssParameter name="stroke">&smallroadcolortunnel;</CssParameter>
516       <CssParameter name="stroke-width">2.0</CssParameter>
517       &rounded;
518    </LineSymbolizer>
519  </Rule>
520  <Rule>
521        &minz16;
522    <Filter>
523      ([highway] = 'residential' or
524      [highway] = 'unclassified' or
525      ([highway] = 'track' and not [bicycle] = 'designated') or
526          [highway] = 'unsurfaced' or
527          [highway] = 'unimproved') and [tunnel] = 'yes'
528    </Filter>
529    <LineSymbolizer>
530       <CssParameter name="stroke">&smallroadcolortunnel;</CssParameter>
531       <CssParameter name="stroke-width">3.5</CssParameter>
532       &rounded;
533    </LineSymbolizer>
534  </Rule>
535  <Rule>
536        &minz14;
537        &maxz15;
538    <Filter>
539      ([highway] = 'residential' or
540      [highway] = 'unclassified' or
541      ([highway] = 'track' and not [bicycle] = 'designated') or
542          [highway] = 'unsurfaced' or
543          [highway] = 'unimproved') and not [tunnel] = 'yes'
544    </Filter>
545    <LineSymbolizer>
546       <CssParameter name="stroke">&smallroadcolor;</CssParameter>
547       <CssParameter name="stroke-width">2.0</CssParameter>
548       &rounded;
549    </LineSymbolizer>
550  </Rule>
551  <Rule>
552        &minz16;
553    <Filter>
554      ([highway] = 'residential' or
555      [highway] = 'unclassified' or
556      ([highway] = 'track' and not [bicycle] = 'designated') or
557          [highway] = 'unsurfaced' or
558          [highway] = 'unimproved') and not [tunnel] = 'yes'
559    </Filter>
560    <LineSymbolizer>
561       <CssParameter name="stroke">&smallroadcolor;</CssParameter>
562       <CssParameter name="stroke-width">3.5</CssParameter>
563       &rounded;
564    </LineSymbolizer>
565  </Rule>
566 
567  <!-- Service roads -->
568  <Rule>
569        &minz14; &maxz15;
570    <Filter>
571      [highway] = 'service'
572    </Filter>
573    <LineSymbolizer>
574       <CssParameter name="stroke">&smallroadcolor;</CssParameter>
575       <CssParameter name="stroke-width">1.3</CssParameter>
576       &rounded;
577    </LineSymbolizer>
578  </Rule>
579  <Rule>
580        &minz16;
581    <Filter>
582      [highway] = 'service'
583    </Filter>
584    <LineSymbolizer>
585       <CssParameter name="stroke">&smallroadcolor;</CssParameter>
586       <CssParameter name="stroke-width">2</CssParameter>
587       &rounded;
588    </LineSymbolizer>
589  </Rule>
590 
591  <!-- Ramps, connectors etc. -->
592  <Rule>
593        &minz12;
594        &maxz15;
595        <Filter>[highway] = 'motorway_link' and [tunnel] = 'yes'</Filter>
596        <LineSymbolizer>
597       <CssParameter name="stroke">&interstatecolortunnel;</CssParameter>
598       <CssParameter name="stroke-width">2.0</CssParameter>
599       &rounded;
600    </LineSymbolizer>
601  </Rule>       
602  <Rule>
603        &minz16;
604        <Filter>[highway] = 'motorway_link' and [tunnel] = 'yes'</Filter>
605        <LineSymbolizer>
606       <CssParameter name="stroke">&interstatecolortunnel;</CssParameter>
607       <CssParameter name="stroke-width">3.5</CssParameter>
608       &rounded;
609    </LineSymbolizer>
610  </Rule>       
611  <Rule>
612        &minz12;
613        &maxz15;
614        <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
615        <LineSymbolizer>
616       <CssParameter name="stroke">&interstatecolor;</CssParameter>
617       <CssParameter name="stroke-width">2.0</CssParameter>
618       &rounded;
619    </LineSymbolizer>
620  </Rule>       
621  <Rule>
622        &minz16;
623        <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
624        <LineSymbolizer>
625       <CssParameter name="stroke">&interstatecolor;</CssParameter>
626       <CssParameter name="stroke-width">3.5</CssParameter>
627       &rounded;
628    </LineSymbolizer>
629  </Rule>       
630  <Rule>
631        &minz12;
632        &maxz15;
633        <Filter>[highway] = 'trunk_link' and [tunnel] = 'yes'</Filter>
634        <LineSymbolizer>
635       <CssParameter name="stroke">&trunkcolortunnel;</CssParameter>
636       <CssParameter name="stroke-width">2.0</CssParameter>
637       &rounded;
638    </LineSymbolizer>
639  </Rule>
640  <Rule>
641        &minz16;
642        <Filter>[highway] = 'trunk_link' and [tunnel] = 'yes'</Filter>
643        <LineSymbolizer>
644       <CssParameter name="stroke">&trunkcolortunnel;</CssParameter>
645       <CssParameter name="stroke-width">3.5</CssParameter>
646       &rounded;
647    </LineSymbolizer>
648  </Rule>
649  <Rule>
650        &minz12;
651        &maxz15;
652        <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
653        <LineSymbolizer>
654       <CssParameter name="stroke">&trunkcolor;</CssParameter>
655       <CssParameter name="stroke-width">2.0</CssParameter>
656       &rounded;
657    </LineSymbolizer>
658  </Rule>
659  <Rule>
660        &minz16;
661        <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
662        <LineSymbolizer>
663       <CssParameter name="stroke">&trunkcolor;</CssParameter>
664       <CssParameter name="stroke-width">3.5</CssParameter>
665       &rounded;
666    </LineSymbolizer>
667  </Rule>
668  <Rule>
669        &minz12;
670        &maxz15;
671        <Filter>[highway] = 'primary_link' and [tunnel] = 'yes'</Filter>
672        <LineSymbolizer>
673       <CssParameter name="stroke">&primarycolortunnel;</CssParameter>
674       <CssParameter name="stroke-width">2.0</CssParameter>
675       &rounded;
676    </LineSymbolizer>
677  </Rule>
678  <Rule>
679        &minz16;
680        <Filter>[highway] = 'primary_link' and [tunnel] = 'yes'</Filter>
681        <LineSymbolizer>
682       <CssParameter name="stroke">&primarycolortunnel;</CssParameter>
683       <CssParameter name="stroke-width">3.5</CssParameter>
684       &rounded;
685    </LineSymbolizer>
686  </Rule>
687  <Rule>
688        &minz12;
689        &maxz15;
690        <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
691        <LineSymbolizer>
692       <CssParameter name="stroke">&primarycolor;</CssParameter>
693       <CssParameter name="stroke-width">2.0</CssParameter>
694       &rounded;
695    </LineSymbolizer>
696  </Rule>
697  <Rule>
698        &minz16;
699        <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
700        <LineSymbolizer>
701       <CssParameter name="stroke">&primarycolor;</CssParameter>
702       <CssParameter name="stroke-width">3.5</CssParameter>
703       &rounded;
704    </LineSymbolizer>
705  </Rule>
706  <Rule>
707        &minz12;
708        &maxz15;
709        <Filter>[highway] = 'secondary_link' and [tunnel] = 'yes'</Filter>
710        <LineSymbolizer>
711       <CssParameter name="stroke">&secondarycolortunnel;</CssParameter>
712       <CssParameter name="stroke-width">2.0</CssParameter>
713       &rounded;
714    </LineSymbolizer>
715  </Rule>
716  <Rule>
717        &minz16;
718        <Filter>[highway] = 'secondary_link' and [tunnel] = 'yes'</Filter>
719        <LineSymbolizer>
720       <CssParameter name="stroke">&secondarycolortunnel;</CssParameter>
721       <CssParameter name="stroke-width">3.5</CssParameter>
722       &rounded;
723    </LineSymbolizer>
724  </Rule>
725  <Rule>
726        &minz12;
727        &maxz15;
728        <Filter>[highway] = 'secondary_link' and not [tunnel] = 'yes'</Filter>
729        <LineSymbolizer>
730       <CssParameter name="stroke">&secondarycolor;</CssParameter>
731       <CssParameter name="stroke-width">2.0</CssParameter>
732       &rounded;
733    </LineSymbolizer>
734  </Rule>
735  <Rule>
736        &minz16;
737        <Filter>[highway] = 'secondary_link' and not [tunnel] = 'yes'</Filter>
738        <LineSymbolizer>
739       <CssParameter name="stroke">&secondarycolor;</CssParameter>
740       <CssParameter name="stroke-width">3.5</CssParameter>
741       &rounded;
742    </LineSymbolizer>
743  </Rule>
744 
745</Style>
746
747
748
749<Style name="railway">
750 
751  <Rule>
752        &minz14;
753        &maxz14;
754        <Filter>[railway] = 'rail' and [bridge] = 'yes'</Filter>
755        <LineSymbolizer>
756       <CssParameter name="stroke-width">3.7</CssParameter>
757       &bridgeoutline;
758    </LineSymbolizer>
759  </Rule>
760  <Rule>
761        &minz15;
762        <Filter>[railway] = 'rail' and [bridge] = 'yes'</Filter>
763        <LineSymbolizer>
764       <CssParameter name="stroke-width">7.0</CssParameter>
765       &bridgeoutline;
766    </LineSymbolizer>
767  </Rule>
768 
769  <Rule>
770        &minz10;
771        &maxz14;
772        <Filter>[railway] = 'rail'</Filter>
773        <LineSymbolizer>
774       <CssParameter name="stroke">white</CssParameter>
775       <CssParameter name="stroke-width">0.9</CssParameter>
776       <CssParameter name="stroke-dasharray">4,4</CssParameter>
777    </LineSymbolizer>
778  </Rule>
779  <Rule>
780        &minz15;
781        <Filter>[railway] = 'rail'</Filter>
782        <LineSymbolizer>
783       <CssParameter name="stroke">white</CssParameter>
784       <CssParameter name="stroke-width">2.5</CssParameter>
785       <CssParameter name="stroke-dasharray">10,10</CssParameter>
786    </LineSymbolizer>
787  </Rule>
788 
789</Style>
790
791
792<Style name="aeroway">
793 
794  <!-- Airport runways -->
795        <Rule>
796          <Filter>[aeroway] = 'runway'</Filter>
797          &minz11;
798          &maxz11;
799          <LineSymbolizer>
800                <CssParameter name="stroke">#99a</CssParameter>
801                <CssParameter name="stroke-width">2</CssParameter>
802                <CssParameter name="stroke-linecap">square</CssParameter>
803          </LineSymbolizer>
804        </Rule>
805        <Rule>
806          <Filter>[aeroway] = 'runway'</Filter>
807          &minz12;
808          &maxz12;
809          <LineSymbolizer>
810                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
811                <CssParameter name="stroke-width">3</CssParameter>
812                <CssParameter name="stroke-linecap">square</CssParameter>
813          </LineSymbolizer>
814        </Rule>
815        <Rule>
816          <Filter>[aeroway] = 'runway'</Filter>
817          &minz13;
818          &maxz13;
819          <LineSymbolizer>
820                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
821                <CssParameter name="stroke-width">5</CssParameter>
822                <CssParameter name="stroke-linecap">square</CssParameter>
823          </LineSymbolizer>
824        </Rule>
825        <Rule>
826          <Filter>[aeroway] = 'runway'</Filter>
827          &minz14;
828          &maxz14;
829          <LineSymbolizer>
830                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
831                <CssParameter name="stroke-width">9</CssParameter>
832                <CssParameter name="stroke-linecap">square</CssParameter>
833          </LineSymbolizer>
834        </Rule>
835        <Rule>
836          <Filter>[aeroway] = 'runway'</Filter>
837          &minz15;
838          &maxz15;
839          <LineSymbolizer>
840                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
841                <CssParameter name="stroke-width">17</CssParameter>
842                <CssParameter name="stroke-linecap">square</CssParameter>
843          </LineSymbolizer>
844        </Rule>
845        <Rule>
846          <Filter>[aeroway] = 'runway'</Filter>
847          &minz16;
848          <LineSymbolizer>
849                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
850                <CssParameter name="stroke-width">30</CssParameter>
851                <CssParameter name="stroke-linecap">square</CssParameter>
852          </LineSymbolizer>
853        </Rule>
854        <!-- Airport taxiways -->
855        <Rule>
856          <Filter>[aeroway] = 'taxiway'</Filter>
857          &minz11;
858          &maxz11;
859          <LineSymbolizer>
860                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
861                <CssParameter name="stroke-width">0.8</CssParameter>
862                <CssParameter name="stroke-linejoin">round</CssParameter>
863          </LineSymbolizer>
864        </Rule>
865        <Rule>
866          <Filter>[aeroway] = 'taxiway'</Filter>
867          &minz12;
868          &maxz12;
869          <LineSymbolizer>
870                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
871                <CssParameter name="stroke-width">1</CssParameter>
872                <CssParameter name="stroke-linejoin">round</CssParameter>
873          </LineSymbolizer>
874        </Rule>
875        <Rule>
876          <Filter>[aeroway] = 'taxiway'</Filter>
877          &minz13;
878          &maxz13;
879          <LineSymbolizer>
880                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
881                <CssParameter name="stroke-width">2</CssParameter>
882                <CssParameter name="stroke-linejoin">round</CssParameter>
883          </LineSymbolizer>
884        </Rule>
885        <Rule>
886          <Filter>[aeroway] = 'taxiway'</Filter>
887          &minz14;
888          &maxz14;
889          <LineSymbolizer>
890                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
891                <CssParameter name="stroke-width">3</CssParameter>
892                <CssParameter name="stroke-linejoin">round</CssParameter>
893          </LineSymbolizer>
894        </Rule>
895        <Rule>
896          <Filter>[aeroway] = 'taxiway'</Filter>
897          &minz15;
898          &minz16;
899          <LineSymbolizer>
900                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
901                <CssParameter name="stroke-width">5</CssParameter>
902                <CssParameter name="stroke-linejoin">round</CssParameter>
903          </LineSymbolizer>
904        </Rule>
905        <Rule>
906          <Filter>[aeroway] = 'taxiway'</Filter>
907          &minz16;
908          <LineSymbolizer>
909                <CssParameter name="stroke">&aerowaycolor;</CssParameter>
910                <CssParameter name="stroke-width">10</CssParameter>
911                <CssParameter name="stroke-linejoin">round</CssParameter>
912          </LineSymbolizer>
913        </Rule>
914 
915</Style>
916
917<Style name="parking">
918  <Rule>
919        <Filter>[amenity] = 'parking'</Filter>
920        &minz12;
921    <PolygonSymbolizer>
922         <CssParameter name="fill">&smallroadcolor;</CssParameter>
923      </PolygonSymbolizer>
924  </Rule>
925</Style>
926
927<Style name="areafeatures">
928  <Rule>
929      <Filter>[aeroway] = 'apron'</Filter>
930      &minz12;
931      <PolygonSymbolizer>
932         <CssParameter name="fill">&aerowaycolor;</CssParameter>
933      </PolygonSymbolizer>
934    </Rule>
935</Style>
936
937
938<!-- Layers -->
939
940<!--
941<Layer name="nhdwaterbody" status="on" srs="+proj=latlong +ellps=GRS80 +datum=NAD83 +no_defs">
942        <StyleName>water</StyleName>
943        <Datasource>
944                &dbsettings;
945                &extentsLatLon;
946                <Parameter name="table">nhdwaterbody</Parameter>
947        </Datasource>
948</Layer>
949-->
950
951<Layer name="areas" status="on">
952    <StyleName>areafeatures</StyleName>
953    <StyleName>parking</StyleName>
954    <Datasource>
955                &dbsettings;
956                &extents;
957                <Parameter name="table">
958                        (select way, amenity, aeroway
959                        from ${DB_PREFIX}_polygon order by z_order,way_area desc) as areas
960                </Parameter>
961                <!-- because the subselect messes the GEOMETRY type -->
962                <Parameter name="geometry_field">way</Parameter>
963    </Datasource>
964</Layer>
965
966<!--
967<Layer name="lines" status="on">
968    <StyleName>roads</StyleName>
969    <Datasource>
970          &dbsettings;
971          &extents;
972      <Parameter name="table">
973        (select * from ${DB_PREFIX}_line order by z_order) as lines
974      </Parameter>
975    </Datasource>
976</Layer>
977-->
978
979<Layer name="highway" status="on">
980    <StyleName>highway</StyleName>
981    <Datasource>
982          &dbsettings;
983          &extents;
984      <Parameter name="table">
985          (SELECT way, highway, bridge, tunnel, bicycle,
986                  CASE WHEN bridge = 'yes' THEN UNNEST(ARRAY[1,2])
987                       ELSE 2
988                  END AS pass
989             FROM ${DB_PREFIX}_line
990             WHERE highway IS NOT NULL
991             ORDER BY z_order, pass) AS lines
992      </Parameter>
993    </Datasource>
994</Layer>
995
996<Layer name="railway" status="on">
997    <StyleName>railway</StyleName>
998    <Datasource>
999          &dbsettings;
1000          &extents;
1001      <Parameter name="table">
1002        (select way, railway, bridge, tunnel from ${DB_PREFIX}_line
1003        where railway is not null
1004        order by z_order) as lines
1005      </Parameter>
1006    </Datasource>
1007</Layer>
1008
1009<Layer name="aeroway" status="on">
1010    <StyleName>aeroway</StyleName>
1011    <Datasource>
1012          &dbsettings;
1013          &extents;
1014      <Parameter name="table">
1015        (select way, aeroway from ${DB_PREFIX}_line
1016        where aeroway is not null
1017        order by z_order) as lines
1018      </Parameter>
1019    </Datasource>
1020</Layer>
1021
1022</Map>
Note: See TracBrowser for help on using the repository browser.