source: subversion/applications/rendering/toposm/features-main.xml.templ @ 29599

Last change on this file since 29599 was 24303, checked in by ahlzen, 9 years ago

Fixed symbols dir reference in style definitions.

File size: 45.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 roadoutline SYSTEM "include/roadoutline.inc">
10        <!ENTITY symbolsdir "symbols">
11        <!ENTITY customsymbolsdir "custom-symbols">
12        %utils;
13        %colors;
14]>
15
16<Map bgcolor="&landcolor;" srs="&srs900913;">
17
18<!-- parcel data from MassGIS test -->
19<!--
20<Style name="parcels">
21    <Rule>
22        &minz14;
23        &maxz15;
24        <LineSymbolizer>
25            <CssParameter name="stroke">#000</CssParameter>
26            <CssParameter name="stroke-width">0.5</CssParameter>
27            <CssParameter name="stroke-opacity">0.10</CssParameter>
28        </LineSymbolizer>
29    </Rule>
30    <Rule>
31        &minz16;
32        <LineSymbolizer>
33            <CssParameter name="stroke">#000</CssParameter>
34            <CssParameter name="stroke-width">0.5</CssParameter>
35            <CssParameter name="stroke-opacity">0.15</CssParameter>
36        </LineSymbolizer>
37    </Rule>
38</Style>
39-->
40
41
42<!-- NHD layers -->
43
44<!--
45<Style name="nhdtest">
46        <Rule>
47                <Filter>
48                        [fcode] = 39004
49                </Filter>
50                <LineSymbolizer>
51                  <CssParameter name="stroke">&waterlinecolor;</CssParameter>
52                  <CssParameter name="stroke-width">0.8</CssParameter>
53                  &rounded;
54                </LineSymbolizer>
55        </Rule>
56</Style>
57-->
58
59<!--
60Duplicated in tmp-watermask.xml
61NOTE: This does NOT go in features-fill, since the main features
62should go on top of any water fills here.
63-->
64<!--
65Perennial lakes and ponds (39000, 39003, 39004, 39009-39012)
66Intermittent lakes and ponds (39001, 39002, 39005, 39006)
67Perennial rivers/streams (46000, 46004, 46005, 46006)
68Intermittent rivers/streams (46001, 46002, 46003)
69Reservoirs (Reservoir) (436xx)
70Canals and ditches (CanalDitch) (336xx)
71-->
72
73<Style name="waterfill">
74  <Rule>
75    &minz10;
76    <Filter>
77        [fcode] = 39000 or [fcode] = 39003 or [fcode] = 39004 or ([fcode] &gt;= 39009 and [fcode] &lt;= 39012) or
78        [fcode] = 46000 or [fcode] = 46004 or [fcode] = 46005 or [fcode] = 46006 or
79                ([fcode] &gt;= 43600 and [fcode] &lt;= 43699) or
80        ([fcode] &gt;= 33600 and [fcode] &lt;= 33699) or
81        [fcode] = 39001 or [fcode] = 39002 or [fcode] = 39005 or [fcode] = 39006 or
82        [fcode] = 46001 or [fcode] = 46002 or [fcode] = 46003
83    </Filter>
84    <PolygonSymbolizer>
85      <CssParameter name="fill">&waterfillcolor;</CssParameter>
86    </PolygonSymbolizer>
87  </Rule>
88</Style>
89
90
91<Style name="playas">
92        <Rule>
93                &minz10;
94                <Filter>[ftype] = 'Playa'</Filter>       
95                <PolygonSymbolizer>
96                        <CssParameter name="fill">#ffe0c0</CssParameter>
97                </PolygonSymbolizer>
98        </Rule>
99</Style>
100
101<Style name="wetlands">
102  <Rule>
103        &minz13;
104    <!--<Filter>[ftype] = 'SwampMarsh'</Filter>-->
105    <Filter>[fcode] = 46600</Filter>
106    <PolygonPatternSymbolizer file="&symbolsdir;/marsh.png" type="png" width="30" height="30"/>
107  </Rule>
108</Style>
109
110<Style name="coastlines">
111  <Rule>
112    &minz6; &maxz9;
113    <LineSymbolizer>
114      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
115      <CssParameter name="stroke-width">0.5</CssParameter>
116      &rounded;
117    </LineSymbolizer>
118  </Rule>
119  <Rule>
120    &minz10;
121    <LineSymbolizer>
122      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
123      <CssParameter name="stroke-width">0.8</CssParameter>
124      &rounded;
125    </LineSymbolizer>
126  </Rule>
127</Style>
128
129<Style name="major-water-area">
130  <Rule>
131        &minz7; &maxz9;
132    <!-- TODO: clean up fcodes (remove linear features) -->
133    <Filter>
134        ([fcode] = 39000 or [fcode] = 39003 or [fcode] = 39004 or ([fcode] &gt;= 39009 and [fcode] &lt;= 39012) or
135        [fcode] = 46000 or [fcode] = 46004 or [fcode] = 46005 or [fcode] = 46006 or
136                ([fcode] &gt;= 43600 and [fcode] &lt;= 43699) or
137        ([fcode] &gt;= 33600 and [fcode] &lt;= 33699))
138        and ([areasqkm] &gt; 1)
139    </Filter>
140    <LineSymbolizer>
141      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
142      <CssParameter name="stroke-width">0.5</CssParameter>
143      &rounded;
144    </LineSymbolizer>
145  </Rule>
146</Style>
147
148<Style name="major-water-line">
149  <Rule>
150        &minz7; &maxz9;
151        <!-- TODO: clean up fcodes (remove area features) -->
152    <Filter>
153        ([fcode] = 39000 or [fcode] = 39003 or [fcode] = 39004 or ([fcode] &gt;= 39009 and [fcode] &lt;= 39012) or
154        [fcode] = 46000 or [fcode] = 46004 or [fcode] = 46005 or [fcode] = 46006 or
155                ([fcode] &gt;= 43600 and [fcode] &lt;= 43699) or
156        ([fcode] &gt;= 33600 and [fcode] &lt;= 33699))
157        and ([lengthkm] &gt; 2)
158    </Filter>
159    <LineSymbolizer>
160      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
161      <CssParameter name="stroke-width">0.5</CssParameter>
162      &rounded;
163    </LineSymbolizer>
164  </Rule>
165</Style>
166
167<Style name="water">
168  <Rule>
169        &minz10; &maxz13;
170    <Filter>
171        [fcode] = 39000 or [fcode] = 39003 or [fcode] = 39004 or ([fcode] &gt;= 39009 and [fcode] &lt;= 39012) or
172        [fcode] = 46000 or [fcode] = 46004 or [fcode] = 46005 or [fcode] = 46006 or
173        ([fcode] &gt;= 43600 and [fcode] &lt;= 43699) or
174        ([fcode] &gt;= 33600 and [fcode] &lt;= 33699)
175    </Filter>
176    <LineSymbolizer>
177      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
178      <CssParameter name="stroke-width">0.8</CssParameter>
179      &rounded;
180    </LineSymbolizer>
181  </Rule>
182  <Rule>
183        &minz14;
184    <Filter>
185        [fcode] = 39000 or [fcode] = 39003 or [fcode] = 39004 or ([fcode] &gt;= 39009 and [fcode] &lt;= 39012) or
186        [fcode] = 46000 or [fcode] = 46004 or [fcode] = 46005 or [fcode] = 46006 or
187        ([fcode] &gt;= 43600 and [fcode] &lt;= 43699) or
188        ([fcode] &gt;= 33600 and [fcode] &lt;= 33699)
189    </Filter>
190    <LineSymbolizer>
191      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
192      <CssParameter name="stroke-width">1.5</CssParameter>
193          &rounded;
194    </LineSymbolizer>
195  </Rule>
196  <Rule>
197        &minz12;
198        &maxz13;
199    <Filter>
200        [fcode] = 39001 or [fcode] = 39002 or [fcode] = 39005 or [fcode] = 39006 or
201        [fcode] = 46001 or [fcode] = 46002 or [fcode] = 46003
202    </Filter>
203    <LineSymbolizer>
204      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
205      <CssParameter name="stroke-width">0.8</CssParameter>
206      <CssParameter name="stroke-dasharray">4,2</CssParameter>
207      &rounded;
208    </LineSymbolizer>
209  </Rule>
210  <Rule>
211        &minz14;
212    <Filter>
213        [fcode] = 39001 or [fcode] = 39002 or
214        [fcode] = 46001 or [fcode] = 46002 or [fcode] = 46003
215    </Filter>
216    <LineSymbolizer>
217      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
218      <CssParameter name="stroke-width">1.5</CssParameter>
219      <CssParameter name="stroke-dasharray">8,4</CssParameter>
220          &rounded;
221    </LineSymbolizer>
222  </Rule>
223</Style>
224
225<Style name="ice">
226  <Rule>
227        &minz10;
228    <Filter>[ftype] = 'Ice Mass'</Filter>
229        <LineSymbolizer>
230      <CssParameter name="stroke">#888</CssParameter>
231      <CssParameter name="stroke-width">0.7</CssParameter>
232          <CssParameter name="stroke-dasharray">5,5</CssParameter>
233    </LineSymbolizer>
234  </Rule>
235</Style>
236
237<Style name="pipelines">
238  <Rule>
239        &minz11;
240        &maxz13;
241    <Filter>[ftype] = 'Pipeline'</Filter>
242    <LineSymbolizer>
243      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
244      <CssParameter name="stroke-width">0.8</CssParameter>
245      &rounded;
246    </LineSymbolizer>
247    <LineSymbolizer>
248      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
249      <CssParameter name="stroke-width">1.6</CssParameter>
250      <CssParameter name="stroke-dasharray">1.6,10</CssParameter>
251      &rounded;
252    </LineSymbolizer>
253  </Rule>
254  <Rule>
255        &minz14;
256    <Filter>[ftype] = 'Pipeline'</Filter>
257    <LineSymbolizer>
258      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
259      <CssParameter name="stroke-width">1.5</CssParameter>
260          &rounded;
261    </LineSymbolizer>
262    <LineSymbolizer>
263      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
264      <CssParameter name="stroke-width">3</CssParameter>
265      <CssParameter name="stroke-dasharray">3,20</CssParameter>
266      &rounded;
267    </LineSymbolizer>
268  </Rule>
269</Style>
270
271<!-- TODO: springs -->
272
273<!-- TODO: waterfalls -->
274
275
276
277<Style name="areafeatures">
278  <Rule>
279      <Filter>
280        [building] &lt;&gt; 'station' and
281        [building] &lt;&gt; 'supermarket' and
282        [building] &lt;&gt; ''
283      </Filter>
284      &minz12;
285      <PolygonSymbolizer>
286         <CssParameter name="fill">black</CssParameter>
287         <CssParameter name="fill-opacity">0.4</CssParameter>
288      </PolygonSymbolizer>
289  </Rule>
290   
291        <Rule>
292          <Filter>[aeroway] = 'apron'</Filter>
293          &minz14;
294          &maxz14;
295          <LineSymbolizer>
296                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
297                <CssParameter name="stroke-width">2</CssParameter>
298          </LineSymbolizer>
299        </Rule>
300        <Rule>
301          <Filter>[aeroway] = 'apron'</Filter>
302          &minz15;
303          &maxz15;
304          <LineSymbolizer>
305                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
306                <CssParameter name="stroke-width">2</CssParameter>
307          </LineSymbolizer>
308        </Rule>
309        <Rule>
310          <Filter>[aeroway] = 'apron'</Filter>
311          &minz16;
312          <LineSymbolizer>
313                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
314                <CssParameter name="stroke-width">3</CssParameter>
315          </LineSymbolizer>
316        </Rule>
317
318</Style>
319
320<Style name="coastlines">
321  <Rule>
322        &minz10;
323    <Filter>
324                [natural] = 'coastline'
325        </Filter>
326    <LineSymbolizer>
327      <CssParameter name="stroke">&waterlinecolor;</CssParameter>
328      <CssParameter name="stroke-width">0.9</CssParameter>
329      <CssParameter name="stroke-linejoin">round</CssParameter>
330    </LineSymbolizer>
331  </Rule>
332</Style>
333
334
335<Style name="major-highway">
336
337  <Rule>
338        &minz5; &maxz6;
339    <Filter>[highway] = 'motorway'</Filter>
340    <LineSymbolizer>
341        <CssParameter name="stroke">&interstatecolorlowzoom;</CssParameter>
342                <CssParameter name="stroke-width">1.2</CssParameter>
343                &rounded;
344    </LineSymbolizer>
345  </Rule>
346  <Rule>
347        &minz7; &maxz8;
348    <Filter>[highway] = 'motorway' or [highway] = 'trunk'</Filter>
349    <LineSymbolizer>
350                <CssParameter name="stroke">&interstatecolorlowzoom;</CssParameter>
351                <CssParameter name="stroke-width">1.8</CssParameter>
352                &rounded;
353    </LineSymbolizer>
354  </Rule>
355 
356  <Rule>
357        &minz9; &maxz11;
358    <Filter>([highway] = 'motorway' or [highway] = 'trunk') and not [tunnel] = 'yes'
359    </Filter>
360    <LineSymbolizer>
361        <CssParameter name="stroke-width">4.0</CssParameter>
362                &roadoutline;
363    </LineSymbolizer>
364  </Rule>
365  <Rule>
366        &minz12;
367        &maxz14;
368    <Filter>([highway] = 'motorway' or [highway] = 'trunk') and not [tunnel] = 'yes'
369    </Filter>
370    <LineSymbolizer>
371        <CssParameter name="stroke-width">7.0</CssParameter>
372                &roadoutline;
373    </LineSymbolizer>
374  </Rule>
375  <Rule>
376        &minz15;
377    <Filter>([highway] = 'motorway' or [highway] = 'trunk') and not [tunnel] = 'yes'
378    </Filter>
379    <LineSymbolizer>
380        <CssParameter name="stroke-width">13.0</CssParameter>
381                &roadoutline;
382    </LineSymbolizer>
383  </Rule>
384 
385  <!-- Interstate/Trunk tunnels -->
386  <Rule>
387        &minz10;
388        &maxz11;
389    <Filter>([highway] = 'motorway' or [highway] = 'trunk') and [tunnel] = 'yes'
390    </Filter>
391    <LineSymbolizer>
392        <CssParameter name="stroke-width">4.0</CssParameter>
393        <CssParameter name="stroke-dasharray">4,2</CssParameter>
394                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
395    </LineSymbolizer>
396  </Rule>
397  <Rule>
398        &minz12;
399        &maxz14;
400    <Filter>([highway] = 'motorway' or [highway] = 'trunk') and [tunnel] = 'yes'
401    </Filter>
402    <LineSymbolizer>
403        <CssParameter name="stroke-width">7.0</CssParameter>
404        <CssParameter name="stroke-dasharray">6,3</CssParameter>
405                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
406    </LineSymbolizer>
407  </Rule>
408  <Rule>
409        &minz15;
410    <Filter>([highway] = 'motorway' or [highway] = 'trunk') and [tunnel] = 'yes'
411    </Filter>
412    <LineSymbolizer>
413        <CssParameter name="stroke-width">13.0</CssParameter>
414        <CssParameter name="stroke-dasharray">10,5</CssParameter>
415                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
416    </LineSymbolizer>
417  </Rule>
418</Style>
419
420
421<Style name="highway">
422
423  <!-- Primary roads -->
424  <Rule>
425        &minz8; &maxz8;
426    <Filter>[highway] = 'primary'</Filter>
427    <LineSymbolizer>
428                <CssParameter name="stroke-width">0.6</CssParameter>
429                &roadoutline;
430    </LineSymbolizer>
431  </Rule>
432  <Rule>
433        &minz9; &maxz9;
434    <Filter>[highway] = 'primary'</Filter>
435    <LineSymbolizer>
436                <CssParameter name="stroke-width">1.0</CssParameter>
437                &roadoutline;
438    </LineSymbolizer>
439  </Rule>
440  <Rule>
441        &minz10; &maxz11;
442    <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
443    <LineSymbolizer>
444                <CssParameter name="stroke-width">2.5</CssParameter>
445                &roadoutline;
446    </LineSymbolizer>
447  </Rule>
448  <Rule>
449        &minz12; &maxz14;
450    <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
451    <LineSymbolizer>
452                <CssParameter name="stroke-width">5.5</CssParameter>
453                &roadoutline;
454    </LineSymbolizer>
455  </Rule>
456  <Rule>
457        &minz15;
458    <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
459    <LineSymbolizer>
460                <CssParameter name="stroke-width">10</CssParameter>
461                &roadoutline;
462    </LineSymbolizer>
463  </Rule>
464 
465  <!-- Primary road tunnels -->
466  <Rule>
467        &minz10; &maxz11;
468    <Filter>[highway] = 'primary' and [tunnel] = 'yes'</Filter>
469    <LineSymbolizer>
470                <CssParameter name="stroke-width">3.5</CssParameter>
471                <CssParameter name="stroke-dasharray">4,2</CssParameter>
472                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
473    </LineSymbolizer>
474  </Rule>
475  <Rule>
476        &minz12; &maxz14;
477    <Filter>[highway] = 'primary' and [tunnel] = 'yes'</Filter>
478    <LineSymbolizer>
479                <CssParameter name="stroke-width">5.5</CssParameter>
480                <CssParameter name="stroke-dasharray">6,3</CssParameter>
481                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
482    </LineSymbolizer>
483  </Rule>
484  <Rule>
485        &minz15;
486    <Filter>[highway] = 'primary' and [tunnel] = 'yes'</Filter>
487    <LineSymbolizer>
488                <CssParameter name="stroke-width">10</CssParameter>
489                <CssParameter name="stroke-dasharray">10,5</CssParameter>
490                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
491    </LineSymbolizer>
492  </Rule>
493 
494  <!-- Secondary/Tertiary roads -->
495  <Rule>
496        &minz9; &maxz9;
497    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and not [tunnel] = 'yes'</Filter>
498    <LineSymbolizer>
499                <CssParameter name="stroke">#444</CssParameter>
500                <CssParameter name="stroke-width">0.6</CssParameter>
501                &rounded;
502    </LineSymbolizer>
503  </Rule>
504  <Rule>
505        &minz10; &maxz11;
506    <Filter>[highway] = 'secondary' and not [tunnel] = 'yes'</Filter>
507    <LineSymbolizer>
508                <CssParameter name="stroke">#444</CssParameter>
509                <CssParameter name="stroke-width">1.5</CssParameter>
510                &rounded;
511    </LineSymbolizer>
512  </Rule>
513  <Rule>
514        &minz10; &maxz11;
515    <Filter>[highway] = 'tertiary' and not [tunnel] = 'yes'</Filter>
516    <LineSymbolizer>
517                <CssParameter name="stroke">#444</CssParameter>
518                <CssParameter name="stroke-width">1.0</CssParameter>
519                &rounded;
520    </LineSymbolizer>
521  </Rule>
522  <Rule>
523        &minz12; &maxz13;
524    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and not [tunnel] = 'yes'</Filter>
525    <LineSymbolizer>
526       <CssParameter name="stroke-width">4.0</CssParameter>
527       &roadoutline;
528    </LineSymbolizer>
529  </Rule>
530  <Rule>
531        &minz14; &maxz15;
532    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and not [tunnel] = 'yes'</Filter>
533    <LineSymbolizer>
534       <CssParameter name="stroke-width">5.5</CssParameter>
535       &roadoutline;
536    </LineSymbolizer>
537  </Rule>
538  <Rule>
539        &minz16;
540    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and not [tunnel] = 'yes'</Filter>
541    <LineSymbolizer>
542       <CssParameter name="stroke-width">10</CssParameter>
543       &roadoutline;
544    </LineSymbolizer>
545  </Rule>
546 
547  <!-- Secondary/Tertiary road tunnels -->
548  <Rule>
549        &minz10; &maxz11;
550    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and [tunnel] = 'yes'</Filter>
551    <LineSymbolizer>
552                <CssParameter name="stroke-width">2.2</CssParameter>
553        <CssParameter name="stroke-dasharray">4,2</CssParameter>
554                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
555    </LineSymbolizer>
556  </Rule>
557  <Rule>
558        &minz12; &maxz13;
559    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and [tunnel] = 'yes'</Filter>
560    <LineSymbolizer>
561        <CssParameter name="stroke-width">4.0</CssParameter>
562        <CssParameter name="stroke-dasharray">6,3</CssParameter>
563                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
564    </LineSymbolizer>
565  </Rule>
566  <Rule>
567        &minz14; &maxz15;
568    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and [tunnel] = 'yes'</Filter>
569    <LineSymbolizer>
570        <CssParameter name="stroke-width">5.5</CssParameter>
571        <CssParameter name="stroke-dasharray">6,3</CssParameter>
572                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
573    </LineSymbolizer>
574  </Rule>
575  <Rule>
576        &minz16;
577    <Filter>([highway] = 'secondary' or [highway] = 'tertiary') and [tunnel] = 'yes'</Filter>
578    <LineSymbolizer>
579        <CssParameter name="stroke-width">10</CssParameter>
580        <CssParameter name="stroke-dasharray">10,5</CssParameter>
581                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
582    </LineSymbolizer>
583  </Rule>
584 
585  <!-- Ramps etc. -->
586  <Rule>
587        &minz12;
588        &maxz15;
589    <Filter>
590      ([highway] = 'motorway_link' or
591      [highway] = 'trunk_link' or
592      [highway] = 'primary_link' or
593      [highway] = 'secondary_link') and [tunnel] = 'yes'
594    </Filter>
595    <LineSymbolizer>
596        <CssParameter name="stroke-width">4.0</CssParameter>
597        <CssParameter name="stroke-dasharray">6,3</CssParameter>
598                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
599    </LineSymbolizer>
600  </Rule>
601  <Rule>
602        &minz16;
603    <Filter>
604      ([highway] = 'motorway_link' or
605      [highway] = 'trunk_link' or
606      [highway] = 'primary_link' or
607      [highway] = 'secondary_link') and [tunnel] = 'yes'
608    </Filter>
609    <LineSymbolizer>
610        <CssParameter name="stroke-width">7</CssParameter>
611        <CssParameter name="stroke-dasharray">6,3</CssParameter>
612                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
613    </LineSymbolizer>
614  </Rule>
615 
616  <Rule>
617        &minz10;
618        &maxz10;
619    <Filter>
620      ([highway] = 'motorway_link' or
621      [highway] = 'trunk_link' or
622      [highway] = 'primary_link' or
623      [highway] = 'secondary_link') and not [tunnel] = 'yes'
624    </Filter>
625    <LineSymbolizer>
626       &roadoutline;
627       <CssParameter name="stroke-width">0.5</CssParameter>
628       <CssParameter name="stroke-opacity">0.6</CssParameter>
629    </LineSymbolizer>
630  </Rule>
631  <Rule>
632        &minz11;
633        &maxz11;
634    <Filter>
635      ([highway] = 'motorway_link' or
636      [highway] = 'trunk_link' or
637      [highway] = 'primary_link' or
638      [highway] = 'secondary_link') and not [tunnel] = 'yes'
639    </Filter>
640    <LineSymbolizer>
641       &roadoutline;
642       <CssParameter name="stroke-width">0.6</CssParameter>
643    </LineSymbolizer>
644  </Rule>
645  <Rule>
646        &minz12;
647        &maxz15;
648    <Filter>
649      ([highway] = 'motorway_link' or
650      [highway] = 'trunk_link' or
651      [highway] = 'primary_link' or
652      [highway] = 'secondary_link') and not [tunnel] = 'yes'
653    </Filter>
654    <LineSymbolizer>
655       <CssParameter name="stroke-width">4.0</CssParameter>
656       &roadoutline;
657    </LineSymbolizer>
658  </Rule>
659  <Rule>
660        &minz16;
661    <Filter>
662      ([highway] = 'motorway_link' or
663      [highway] = 'trunk_link' or
664      [highway] = 'primary_link' or
665      [highway] = 'secondary_link') and not [tunnel] = 'yes'
666    </Filter>
667    <LineSymbolizer>
668       <CssParameter name="stroke-width">7</CssParameter>
669       &roadoutline;
670    </LineSymbolizer>
671  </Rule>
672 
673  <!-- Small roads -->
674  <Rule>
675        &minz10;
676        &maxz10;
677    <Filter>
678      ([highway] = 'residential' or
679      [highway] = 'unclassified') and not [tunnel] = 'yes'
680    </Filter>
681    <LineSymbolizer>
682       <CssParameter name="stroke">#444</CssParameter>
683       <CssParameter name="stroke-width">0.5</CssParameter>
684       <CssParameter name="stroke-opacity">0.6</CssParameter>
685       &rounded;
686    </LineSymbolizer>
687  </Rule>
688  <Rule>
689        &minz11;
690        &maxz11;
691    <Filter>
692      ([highway] = 'residential' or
693      [highway] = 'unclassified') and not [tunnel] = 'yes'
694    </Filter>
695    <LineSymbolizer>
696       <CssParameter name="stroke">#444</CssParameter>
697       <CssParameter name="stroke-width">0.6</CssParameter>
698       &rounded;
699    </LineSymbolizer>
700  </Rule>
701  <Rule>
702        &minz12;
703        &maxz13;
704    <Filter>
705      ([highway] = 'residential' or
706      [highway] = 'unclassified') and not [tunnel] = 'yes'
707    </Filter>
708    <LineSymbolizer>
709       <CssParameter name="stroke">#444</CssParameter>
710       <CssParameter name="stroke-width">1.2</CssParameter>
711       &rounded;
712    </LineSymbolizer>
713  </Rule>
714  <Rule>
715        &minz14;
716        &maxz15;
717    <Filter>
718      ([highway] = 'residential' or
719      [highway] = 'unclassified') and not [tunnel] = 'yes'
720    </Filter>
721    <LineSymbolizer>
722       <CssParameter name="stroke-width">4.0</CssParameter>
723       &roadoutline;
724    </LineSymbolizer>
725  </Rule>
726  <Rule>
727        &minz16;
728    <Filter>
729      ([highway] = 'residential' or
730      [highway] = 'unclassified') and not [tunnel] = 'yes'
731    </Filter>
732    <LineSymbolizer>
733       <CssParameter name="stroke-width">7.0</CssParameter>
734       &roadoutline;
735    </LineSymbolizer>
736  </Rule>
737 
738  <!-- Small road tunnels -->
739  <Rule>
740        &minz12;
741        &maxz13;
742    <Filter>
743      ([highway] = 'residential' or
744      [highway] = 'unclassified') and [tunnel] = 'yes'
745    </Filter>
746    <LineSymbolizer>
747        <CssParameter name="stroke-width">1.2</CssParameter>
748        <CssParameter name="stroke-dasharray">6,3</CssParameter>
749                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
750    </LineSymbolizer>
751  </Rule>
752  <Rule>
753        &minz14;
754        &maxz15;
755    <Filter>
756      ([highway] = 'residential' or
757      [highway] = 'unclassified') and [tunnel] = 'yes'
758    </Filter>
759    <LineSymbolizer>
760        <CssParameter name="stroke-width">4.0</CssParameter>
761                <CssParameter name="stroke-dasharray">6,3</CssParameter>
762                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
763    </LineSymbolizer>
764  </Rule>
765  <Rule>
766        &minz16;
767    <Filter>
768      ([highway] = 'residential' or
769      [highway] = 'unclassified') and [tunnel] = 'yes'
770    </Filter>
771    <LineSymbolizer>
772        <CssParameter name="stroke-width">7.0</CssParameter>
773                <CssParameter name="stroke-dasharray">10,5</CssParameter>
774                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
775    </LineSymbolizer>
776  </Rule>
777 
778 
779  <!-- Service roads -->
780  <Rule>
781        &minz12; &maxz13;
782    <Filter>
783      [highway] = 'service' and not [tunnel] = 'yes'
784    </Filter>
785    <LineSymbolizer>
786       <CssParameter name="stroke">#444</CssParameter>
787       <CssParameter name="stroke-width">0.8</CssParameter>
788       &rounded;
789    </LineSymbolizer>
790  </Rule>
791  <Rule>
792        &minz14; &maxz15;
793    <Filter>
794      [highway] = 'service' and not [tunnel] = 'yes'
795    </Filter>
796    <LineSymbolizer>
797       <CssParameter name="stroke-width">2.5</CssParameter>
798       &roadoutline;
799    </LineSymbolizer>
800  </Rule>
801  <Rule>
802        &minz16;
803    <Filter>
804      [highway] = 'service' and not [tunnel] = 'yes'
805    </Filter>
806    <LineSymbolizer>
807       <CssParameter name="stroke-width">4.0</CssParameter>
808       &roadoutline;
809    </LineSymbolizer>
810  </Rule>
811 
812  <!-- Service road tunnels -->
813  <Rule>
814        &minz12;
815        &maxz13;
816    <Filter>
817      [highway] = 'service' and [tunnel] = 'yes'
818    </Filter>
819    <LineSymbolizer>
820        <CssParameter name="stroke-width">0.8</CssParameter>
821        <CssParameter name="stroke-dasharray">6,3</CssParameter>
822                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
823    </LineSymbolizer>
824  </Rule>
825  <Rule>
826        &minz14;
827        &maxz15;
828    <Filter>
829      [highway] = 'service' and [tunnel] = 'yes'
830    </Filter>
831    <LineSymbolizer>
832        <CssParameter name="stroke-width">2.5</CssParameter>
833                <CssParameter name="stroke-dasharray">6,3</CssParameter>
834                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
835    </LineSymbolizer>
836  </Rule>
837  <Rule>
838        &minz16;
839    <Filter>
840      [highway] = 'service' and [tunnel] = 'yes'
841    </Filter>
842    <LineSymbolizer>
843        <CssParameter name="stroke-width">4.0</CssParameter>
844                <CssParameter name="stroke-dasharray">10,5</CssParameter>
845                <CssParameter name="stroke">&tunneloutlinecolor;</CssParameter>
846    </LineSymbolizer>
847  </Rule>
848 
849 
850  <!-- Unimproved roads -->
851  <Rule>
852        &minz12;
853        &maxz13;
854    <Filter>
855      ([highway] = 'track' and not [bicycle] = 'designated') or
856                [highway] = 'unsurfaced' or
857                [highway] = 'unimproved'
858    </Filter>
859    <LineSymbolizer>
860       <CssParameter name="stroke">#444</CssParameter>
861       <CssParameter name="stroke-width">1.2</CssParameter>
862       <CssParameter name="stroke-dasharray">4,2</CssParameter>
863    </LineSymbolizer>
864  </Rule>
865  <Rule>
866        &minz14;
867        &maxz15;
868        <Filter>
869                ([highway] = 'track' and not [bicycle] = 'designated') or
870                [highway] = 'unsurfaced' or
871                [highway] = 'unimproved'
872        </Filter>
873        <LineSymbolizer>
874                <CssParameter name="stroke">black</CssParameter>
875                <CssParameter name="stroke-width">4.0</CssParameter>
876                <CssParameter name="stroke-dasharray">5,2</CssParameter>
877        </LineSymbolizer>
878  </Rule>
879  <Rule>
880        &minz16;
881        <Filter>
882                ([highway] = 'track' and not [bicycle] = 'designated') or
883                [highway] = 'unsurfaced' or
884                [highway] = 'unimproved'
885        </Filter>
886        <LineSymbolizer>
887                <CssParameter name="stroke">black</CssParameter>
888                <CssParameter name="stroke-width">7.0</CssParameter>
889                <CssParameter name="stroke-dasharray">5,2</CssParameter>
890        </LineSymbolizer>
891  </Rule>
892 
893  <!-- Bike paths -->
894  <Rule>
895        &minz13; &maxz14;
896        <Filter>
897      [highway] = 'cycleway' or
898      [highway] = 'bikeway' or
899      [highway] = 'bridleway' or
900      ([highway] = 'track' and [bicycle] = 'designated')
901    </Filter>
902    <LineSymbolizer>
903       <CssParameter name="stroke">black</CssParameter>
904       <CssParameter name="stroke-width">1.0</CssParameter>
905       <CssParameter name="stroke-dasharray">5,1</CssParameter>
906    </LineSymbolizer>
907  </Rule>
908  <Rule>
909        &minz15;
910        <Filter>
911      [highway] = 'cycleway' or
912      [highway] = 'bikeway' or
913      [highway] = 'bridleway' or
914      ([highway] = 'track' and [bicycle] = 'designated')
915    </Filter>
916    <LineSymbolizer>
917       <CssParameter name="stroke">black</CssParameter>
918       <CssParameter name="stroke-width">2.0</CssParameter>
919       <CssParameter name="stroke-dasharray">6,1</CssParameter>
920    </LineSymbolizer>
921  </Rule>
922  <!-- Foot paths, trails etc -->
923  <Rule>
924        &minz13; &maxz14;
925        <Filter>
926      [highway] = 'path' or
927      [highway] = 'trail' or
928      [highway] = 'footway' or
929      [highway] = 'steps' or
930      [highway] = 'pedestrian'
931    </Filter>
932    <LineSymbolizer>
933       <CssParameter name="stroke">black</CssParameter>
934       <CssParameter name="stroke-width">0.8</CssParameter>
935       <CssParameter name="stroke-dasharray">3,2</CssParameter>
936    </LineSymbolizer>
937  </Rule>
938  <Rule>
939        &minz15;
940        <Filter>
941      [highway] = 'path' or
942      [highway] = 'trail' or
943      [highway] = 'footway' or
944      [highway] = 'steps' or
945      [highway] = 'pedestrian'
946    </Filter>
947    <LineSymbolizer>
948       <CssParameter name="stroke">black</CssParameter>
949       <CssParameter name="stroke-width">1.5</CssParameter>
950       <CssParameter name="stroke-dasharray">4,3</CssParameter>
951    </LineSymbolizer>
952  </Rule>
953</Style>
954
955
956<Style name="railway">
957 
958  <!-- Railroads -->
959  <Rule>
960        &minz10; &maxz14;
961        <Filter>[railway] = 'rail' and [tunnel] = 'yes'</Filter>
962        <LineSymbolizer>
963        <CssParameter name="stroke-width">1.7</CssParameter>
964        <CssParameter name="stroke-dasharray">4,4</CssParameter>
965                <CssParameter name="stroke">black</CssParameter>
966    </LineSymbolizer>
967  </Rule>
968  <Rule>
969        &minz15;
970        <Filter>[railway] = 'rail' and [tunnel] = 'yes'</Filter>
971        <LineSymbolizer>
972        <CssParameter name="stroke-width">4.0</CssParameter>
973        <CssParameter name="stroke-dasharray">10,10</CssParameter>
974                <CssParameter name="stroke">black</CssParameter>
975    </LineSymbolizer>
976  </Rule>
977  <Rule>
978        &minz10; &maxz14;
979        <Filter>[railway] = 'rail' and not [tunnel] = 'yes'</Filter>
980        <LineSymbolizer>
981       <CssParameter name="stroke">black</CssParameter>
982       <CssParameter name="stroke-width">1.7</CssParameter>
983    </LineSymbolizer>
984  </Rule>
985  <Rule>
986        &minz15;
987        <Filter>[railway] = 'rail' and not [tunnel] = 'yes'</Filter>
988        <LineSymbolizer>
989       <CssParameter name="stroke">black</CssParameter>
990       <CssParameter name="stroke-width">4.0</CssParameter>
991    </LineSymbolizer>
992  </Rule>
993  <!-- Light rail, subways etc -->
994  <Rule>
995        &minz11; &maxz14;
996        <Filter>([railway] = 'light_rail' or
997                [railway] = 'tram' or
998                [railway] = 'subway' or
999                [railway] = 'monorail' or
1000                [railway] = 'funicular') and [tunnel] = 'yes'
1001        </Filter>
1002        <LineSymbolizer>
1003        <CssParameter name="stroke-width">1.3</CssParameter>
1004        <CssParameter name="stroke-dasharray">2,2</CssParameter>
1005                <CssParameter name="stroke">&lightrailcolor;</CssParameter>
1006    </LineSymbolizer>
1007  </Rule>
1008  <Rule>
1009        &minz15;
1010        <Filter>([railway] = 'light_rail' or
1011                [railway] = 'tram' or
1012                [railway] = 'subway' or
1013                [railway] = 'monorail' or
1014                [railway] = 'funicular') and [tunnel] = 'yes'</Filter>
1015        <LineSymbolizer>
1016        <CssParameter name="stroke-width">2.5</CssParameter>
1017        <CssParameter name="stroke-dasharray">5,5</CssParameter>
1018                <CssParameter name="stroke">&lightrailcolor;</CssParameter>
1019    </LineSymbolizer>
1020  </Rule>
1021  <Rule>
1022        &minz11; &maxz14;
1023        <Filter>([railway] = 'light_rail' or
1024                [railway] = 'tram' or
1025                [railway] = 'subway' or
1026                [railway] = 'monorail' or
1027                [railway] = 'funicular') and not [tunnel] = 'yes'
1028        </Filter>
1029        <LineSymbolizer>
1030        <CssParameter name="stroke-width">1.3</CssParameter>
1031                <CssParameter name="stroke">&lightrailcolor;</CssParameter>
1032    </LineSymbolizer>
1033  </Rule>
1034  <Rule>
1035        &minz15;
1036        <Filter>([railway] = 'light_rail' or
1037                [railway] = 'tram' or
1038                [railway] = 'subway' or
1039                [railway] = 'monorail' or
1040                [railway] = 'funicular') and not [tunnel] = 'yes'</Filter>
1041        <LineSymbolizer>
1042        <CssParameter name="stroke-width">2.5</CssParameter>
1043                <CssParameter name="stroke">&lightrailcolor;</CssParameter>
1044    </LineSymbolizer>
1045  </Rule>
1046</Style>
1047
1048
1049<Style name="aeroway">
1050        <!-- Airport runway outlines -->
1051        <Rule>
1052      &minz14; &maxz14;
1053          <Filter>[aeroway] = 'runway'</Filter>
1054          <LineSymbolizer>
1055                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
1056                <CssParameter name="stroke-width">11</CssParameter>
1057                <CssParameter name="stroke-linecap">square</CssParameter>
1058          </LineSymbolizer>
1059        </Rule>
1060        <Rule>
1061          &minz15; &maxz15;
1062          <Filter>[aeroway] = 'runway'</Filter>
1063          <LineSymbolizer>
1064                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
1065                <CssParameter name="stroke-width">19</CssParameter>
1066                <CssParameter name="stroke-linecap">square</CssParameter>
1067          </LineSymbolizer>
1068        </Rule>
1069        <Rule>
1070          &minz16;
1071          <Filter>[aeroway] = 'runway'</Filter>
1072          <LineSymbolizer>
1073                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
1074                <CssParameter name="stroke-width">33</CssParameter>
1075                <CssParameter name="stroke-linecap">square</CssParameter>
1076          </LineSymbolizer>
1077        </Rule>
1078        <!-- Airport taxiway outlines -->
1079        <Rule>
1080          &minz14; &maxz14;
1081          <Filter>[aeroway] = 'taxiway'</Filter>
1082          <LineSymbolizer>
1083                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
1084                <CssParameter name="stroke-width">5</CssParameter>
1085                <CssParameter name="stroke-linejoin">round</CssParameter>
1086          </LineSymbolizer>
1087        </Rule>
1088        <Rule>
1089          &minz15; &minz16;
1090          <Filter>[aeroway] = 'taxiway'</Filter>
1091          <LineSymbolizer>
1092                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
1093                <CssParameter name="stroke-width">7</CssParameter>
1094                <CssParameter name="stroke-linejoin">round</CssParameter>
1095          </LineSymbolizer>
1096        </Rule>
1097        <Rule>
1098          &minz16;
1099          <Filter>[aeroway] = 'taxiway'</Filter>
1100          <LineSymbolizer>
1101                <CssParameter name="stroke">&aerowayoutlinecolor;</CssParameter>
1102                <CssParameter name="stroke-width">13</CssParameter>
1103                <CssParameter name="stroke-linejoin">round</CssParameter>
1104          </LineSymbolizer>
1105        </Rule>
1106</Style>
1107
1108<Style name="aerialway">
1109        <!-- ski lifts and cable cars -->
1110        <Rule>
1111                &minz12;
1112                <Filter>
1113                        [aerialway] = 'cable_car' or
1114                        [aerialway] = 'gondola' or
1115                        [aerialway] = 'chair_lift' or
1116                        [aerialway] = 'drag_lift'
1117                </Filter>       
1118                <LinePatternSymbolizer file= "symbols/chair_lift.png" type="png" width="30" height="5" />
1119<!--
1120                <LineSymbolizer>
1121                        <CssParameter name="stroke">#555</CssParameter>
1122                        <CssParameter name="stroke-width">1.3</CssParameter>
1123                </LineSymbolizer>
1124                <LineSymbolizer>
1125                        <CssParameter name="stroke">#555</CssParameter>
1126                        <CssParameter name="stroke-width">5</CssParameter>
1127                        <CssParameter name="stroke-dasharray">1.3,15</CssParameter>
1128                </LineSymbolizer>
1129-->
1130        </Rule>
1131</Style>
1132
1133<!-- adapted from OSM mapnik stylesheet -->
1134<Style name="routes">
1135    <Rule>
1136      &minz8; &maxz10;
1137      <Filter>[route] = 'ferry'</Filter>
1138      <LineSymbolizer>
1139        <CssParameter name="stroke">&waterlinecolor;</CssParameter>
1140        <CssParameter name="stroke-width">0.4</CssParameter>
1141        <CssParameter name="stroke-dasharray">4,4</CssParameter>
1142      </LineSymbolizer>
1143    </Rule>
1144    <Rule>
1145      <Filter>[route] = 'ferry'</Filter>
1146      &minz11;
1147      <LineSymbolizer>
1148        <CssParameter name="stroke">&waterlinecolor;</CssParameter>
1149        <CssParameter name="stroke-width">0.8</CssParameter>
1150        <CssParameter name="stroke-dasharray">6,6</CssParameter>
1151      </LineSymbolizer>
1152    </Rule>
1153</Style>
1154
1155<!-- parking lots are rendered (outline+fill) just like roads -->
1156<Style name="parking">
1157  <Rule>
1158        &minz14; &maxz15;
1159    <Filter>[amenity] = 'parking'</Filter>
1160    <LineSymbolizer>
1161       <CssParameter name="stroke-width">2.0</CssParameter>
1162       &roadoutline;
1163    </LineSymbolizer>
1164  </Rule>
1165  <Rule>
1166        &minz16;
1167        <Filter>[amenity] = 'parking'</Filter>
1168    <LineSymbolizer>
1169       <CssParameter name="stroke-width">3.5</CssParameter>
1170       &roadoutline;
1171    </LineSymbolizer>
1172  </Rule>
1173</Style>
1174
1175<Style name="power-lines">
1176    <!--
1177    <Rule>
1178        &minz12; &maxz12;
1179        <Filter>[power] = 'line'</Filter>
1180        <LineSymbolizer>
1181            <CssParameter name="stroke">black</CssParameter>
1182            <CssParameter name="stroke-width">0.35</CssParameter>
1183        </LineSymbolizer>
1184    </Rule>
1185    -->
1186    <Rule>
1187        &minz13; &maxz13;
1188        <Filter>[power] = 'line'</Filter>
1189        <LineSymbolizer>
1190            <CssParameter name="stroke">black</CssParameter>
1191            <CssParameter name="stroke-width">0.5</CssParameter>
1192        </LineSymbolizer>
1193    </Rule>
1194    <Rule>
1195        &minz14; &maxz14;
1196        <Filter>[power] = 'line'</Filter>
1197        <LineSymbolizer>
1198            <CssParameter name="stroke">black</CssParameter>
1199            <CssParameter name="stroke-width">0.7</CssParameter>
1200        </LineSymbolizer>
1201    </Rule>
1202    <Rule>
1203        &minz15;
1204        <Filter>[power] = 'line'</Filter>
1205        <LineSymbolizer>
1206            <CssParameter name="stroke">black</CssParameter>
1207            <CssParameter name="stroke-width">1.0</CssParameter>
1208        </LineSymbolizer>
1209    </Rule>
1210</Style>
1211
1212<!-- NOTE: wide fills around borders are in the area tile -->
1213
1214<Style name="county-borders">
1215        <Rule>
1216                &minz9; &maxz10;
1217                <Filter>[boundary] = 'administrative' and [admin_level] = '6'</Filter>
1218                <LineSymbolizer>
1219                        <CssParameter name="stroke">black</CssParameter>
1220                        <CssParameter name="stroke-width">0.4</CssParameter>
1221                        <CssParameter name="stroke-dasharray">10,3,2,3</CssParameter>
1222                </LineSymbolizer>
1223        </Rule>
1224        <Rule>
1225                &minz11;
1226                <Filter>[boundary] = 'administrative' and [admin_level] = '6'</Filter>
1227                <LineSymbolizer>
1228                        <CssParameter name="stroke">black</CssParameter>
1229                        <CssParameter name="stroke-width">0.7</CssParameter>
1230                        <CssParameter name="stroke-dasharray">20,5,4,5</CssParameter>
1231                </LineSymbolizer>
1232        </Rule>
1233</Style>
1234
1235<Style name="state-borders">    
1236    <Rule>
1237                &maxz5;
1238                <Filter>[boundary] = 'administrative' and [admin_level] = '4'</Filter>
1239                <LineSymbolizer>
1240                        <CssParameter name="stroke">black</CssParameter>
1241                        <CssParameter name="stroke-width">0.5</CssParameter>
1242                        <CssParameter name="stroke-dasharray">8,3,2,3</CssParameter>
1243                </LineSymbolizer>
1244        </Rule>
1245        <Rule>
1246                &minz6; &maxz10;
1247                <Filter>[boundary] = 'administrative' and [admin_level] = '4'</Filter>
1248                <LineSymbolizer>
1249                        <CssParameter name="stroke">black</CssParameter>
1250                        <CssParameter name="stroke-width">0.8</CssParameter>
1251                        <CssParameter name="stroke-dasharray">10,3,2,3</CssParameter>
1252                </LineSymbolizer>
1253        </Rule>
1254        <Rule>
1255                &minz11;
1256                <Filter>[boundary] = 'administrative' and [admin_level] = '4'</Filter>
1257                <LineSymbolizer>
1258                        <CssParameter name="stroke">#825</CssParameter>
1259                        <CssParameter name="stroke-width">8</CssParameter>
1260                        <CssParameter name="stroke-opacity">0.5</CssParameter>
1261            </LineSymbolizer>
1262                <LineSymbolizer>
1263                        <CssParameter name="stroke">black</CssParameter>
1264                        <CssParameter name="stroke-width">1.5</CssParameter>
1265                        <CssParameter name="stroke-dasharray">20,5,4,5</CssParameter>
1266                </LineSymbolizer>
1267        </Rule>
1268</Style>
1269
1270<Style name="country-borders"> 
1271    <Rule>
1272                &maxz5;
1273                <Filter>[boundary] = 'administrative' and [admin_level] = '2'</Filter>
1274                <LineSymbolizer>
1275                        <CssParameter name="stroke">black</CssParameter>
1276                        <CssParameter name="stroke-width">1.0</CssParameter>
1277                        <CssParameter name="stroke-dasharray">10,3,2,3</CssParameter>
1278                </LineSymbolizer>
1279        </Rule>
1280        <Rule>
1281                &minz6; &maxz10;
1282                <Filter>[boundary] = 'administrative' and [admin_level] = '2'</Filter>
1283                <LineSymbolizer>
1284                        <CssParameter name="stroke">black</CssParameter>
1285                        <CssParameter name="stroke-width">1.5</CssParameter>
1286                        <CssParameter name="stroke-dasharray">15,3,2,3</CssParameter>
1287                </LineSymbolizer>
1288        </Rule>
1289        <Rule>
1290                &minz11;
1291                <Filter>[boundary] = 'administrative' and [admin_level] = '2'</Filter>
1292        <LineSymbolizer>
1293                        <CssParameter name="stroke">#880</CssParameter>
1294                        <CssParameter name="stroke-width">12</CssParameter>
1295                        <CssParameter name="stroke-opacity">0.5</CssParameter>
1296            </LineSymbolizer>
1297                <LineSymbolizer>
1298                        <CssParameter name="stroke">black</CssParameter>
1299                        <CssParameter name="stroke-width">3</CssParameter>
1300                        <CssParameter name="stroke-dasharray">30,5,4,5</CssParameter>
1301                </LineSymbolizer>
1302        </Rule>
1303</Style>
1304
1305
1306<Style name="symbols">
1307        <Rule>
1308          &minz13;
1309      <Filter>[natural]='peak'</Filter>
1310      <PointSymbolizer file="&customsymbolsdir;/peak.png" type="png" width="6" height="5" />
1311    </Rule>
1312    <!--
1313    <Rule>
1314        &minz12; &maxz12;
1315        <Filter>[power] = 'tower'</Filter>
1316        <PointSymbolizer file="&customsymbolsdir;/power-tower-3px.png" type="png" allow_overlap="true"/>
1317    </Rule>
1318    -->
1319    <Rule>
1320        &minz13; &maxz13;
1321        <Filter>[power] = 'tower'</Filter>
1322        <PointSymbolizer file="&customsymbolsdir;/power-tower-3px.png" type="png" allow_overlap="true"/>
1323    </Rule>       
1324    <Rule>
1325        &minz14; &maxz14;
1326        <Filter>[power] = 'tower'</Filter>
1327        <PointSymbolizer file="&customsymbolsdir;/power-tower-4px.png" type="png" allow_overlap="true"/>
1328    </Rule>
1329    <Rule>
1330        &minz15;
1331        <Filter>[power] = 'tower'</Filter>
1332        <PointSymbolizer file="&customsymbolsdir;/power-tower-6px.png" type="png" allow_overlap="true"/>
1333    </Rule>
1334</Style>
1335
1336
1337
1338<!-- Layers -->
1339
1340<!-- parcel data from MassGIS test -->
1341<!--
1342<Layer name="parcels" status="on" srs="+proj=lcc +lat_1=41.71666666667 +lat_2=42.68333333333 +lat_0=41 +lon_0=-71.5 +x_0=200000 +y_0=750000">
1343    <StyleName>parcels</StyleName>
1344    <Datasource>
1345        <Parameter name="type">shape</Parameter>
1346        <Parameter name="file">geodata/us/massgis/parcels/par286</Parameter>
1347    </Datasource>
1348</Layer>
1349-->
1350
1351<Layer name="coastlines" status="on">
1352        <StyleName>coastlines</StyleName>
1353        <Datasource>
1354          &dbsettings;
1355          &extents;
1356      <Parameter name="table">(select way from ${DB_PREFIX}_line where "natural" = 'coastline') as coastlines</Parameter>
1357    </Datasource>
1358</Layer>
1359
1360<Layer name="nhdwaterbodyLower" status="on" srs="&srsLatLongNAD83;">
1361        <StyleName>watefill</StyleName>
1362        <StyleName>playas</StyleName>
1363        <StyleName>wetlands</StyleName>
1364        <Datasource>
1365                &dbsettings;
1366                &extentsLatLon;
1367                <Parameter name="table">${NHD_TABLE_PREFIX}_waterbody</Parameter>
1368        </Datasource>
1369</Layer>
1370
1371<Layer name="nhdarea-major" status="on" srs="&srsLatLongNAD83;">
1372        <StyleName>major-water-area</StyleName>
1373        <Datasource>
1374                &dbsettings;
1375                &extentsLatLon;
1376                <Parameter name="table">${NHD_TABLE_PREFIX}_area_major</Parameter>
1377        </Datasource>
1378</Layer>
1379
1380<Layer name="nhdarea" status="on" srs="&srsLatLongNAD83;">
1381        <StyleName>water</StyleName>
1382        <Datasource>
1383                &dbsettings;
1384                &extentsLatLon;
1385                <Parameter name="table">${NHD_TABLE_PREFIX}_area</Parameter>
1386        </Datasource>
1387</Layer>
1388
1389<Layer name="nhdflowline-major" status="on" srs="&srsLatLongNAD83;">
1390        <StyleName>major-water-line</StyleName>
1391        <Datasource>
1392                &dbsettings;
1393                &extentsLatLon;
1394                <Parameter name="table">${NHD_TABLE_PREFIX}_flowline_major</Parameter>
1395        </Datasource>
1396</Layer>
1397
1398<Layer name="nhdflowline" status="on" srs="&srsLatLongNAD83;">
1399        <StyleName>water</StyleName>
1400        <Datasource>
1401                &dbsettings;
1402                &extentsLatLon;
1403                <Parameter name="table">${NHD_TABLE_PREFIX}_flowline</Parameter>
1404        </Datasource>
1405</Layer>
1406
1407<Layer name="nhdwaterbodyUpper" status="on" srs="&srsLatLongNAD83;">
1408        <StyleName>water</StyleName>
1409        <StyleName>ice</StyleName>
1410        <Datasource>
1411                &dbsettings;
1412                &extentsLatLon;
1413                <Parameter name="table">${NHD_TABLE_PREFIX}_waterbody</Parameter>
1414        </Datasource>
1415</Layer>
1416
1417-->
1418
1419<!--
1420<Layer name="nhdpoint" status="on" srs="+proj=latlong +ellps=GRS80 +datum=NAD83 +no_defs">
1421        <StyleName>springs</StyleName>
1422        <StyleName>waterfalls</StyleName>
1423        <Datasource>
1424                &dbsettings;
1425                &extentsLatLon;
1426                <Parameter name="table">nhdpoint</Parameter>
1427        </Datasource>
1428</Layer>
1429-->
1430
1431
1432
1433<Layer name="areas" status="on">
1434    <StyleName>areafeatures</StyleName>
1435    <StyleName>parking</StyleName>
1436    <Datasource>
1437                &dbsettings;
1438                &extents;
1439                <Parameter name="table">
1440                        (select * from ${DB_PREFIX}_polygon order by z_order,way_area desc) as areas
1441                </Parameter>
1442    </Datasource>
1443</Layer>
1444
1445<Layer name="major-highway" status="on">
1446    <StyleName>major-highway</StyleName>
1447    <Datasource>
1448          &dbsettings;
1449          &extents;
1450      <Parameter name="table">
1451        (select way, highway, tunnel from ${DB_PREFIX}_roads
1452        where highway = 'motorway' or highway = 'trunk'
1453        order by z_order) as lines
1454      </Parameter>
1455    </Datasource>
1456</Layer>
1457
1458<Layer name="highway" status="on">
1459    <StyleName>highway</StyleName>
1460    <Datasource>
1461          &dbsettings;
1462          &extents;
1463      <Parameter name="table">
1464        (select way, highway, tunnel, bicycle from ${DB_PREFIX}_line
1465        where highway is not null
1466        order by z_order) as lines
1467      </Parameter>
1468    </Datasource>
1469</Layer>
1470
1471<Layer name="railway" status="on">
1472    <StyleName>railway</StyleName>
1473    <Datasource>
1474          &dbsettings;
1475          &extents;
1476      <Parameter name="table">
1477        (select way, railway, tunnel from ${DB_PREFIX}_line
1478        where railway is not null
1479        order by z_order) as lines
1480      </Parameter>
1481    </Datasource>
1482</Layer>
1483
1484<Layer name="aeroway" status="on">
1485    <StyleName>aeroway</StyleName>
1486    <Datasource>
1487          &dbsettings;
1488          &extents;
1489      <Parameter name="table">
1490        (select way, aeroway from ${DB_PREFIX}_line where aeroway is not null) as lines
1491      </Parameter>
1492    </Datasource>
1493</Layer>
1494
1495<Layer name="aerialway" status="on">
1496    <StyleName>aerialway</StyleName>
1497    <Datasource>
1498          &dbsettings;
1499          &extents;
1500      <Parameter name="table">
1501        (select way, aerialway from ${DB_PREFIX}_line where aerialway is not null) as aerialway
1502      </Parameter>
1503    </Datasource>
1504</Layer>
1505
1506<Layer name="routes" status="on">
1507    <StyleName>routes</StyleName>
1508    <Datasource>
1509          &dbsettings;
1510          &extents;
1511      <Parameter name="table">
1512        (select way, route from ${DB_PREFIX}_line where route is not null) as routes
1513      </Parameter>
1514    </Datasource>
1515</Layer>
1516
1517<Layer name="power-lines" status="on">
1518    <StyleName>power-lines</StyleName>
1519    <Datasource>
1520        &dbsettings;
1521        &extents;
1522        <Parameter name="table">
1523            (select way, power from ${DB_PREFIX}_line where power is not null) as power
1524        </Parameter>
1525    </Datasource>
1526</Layer>
1527
1528
1529<!--
1530<Layer name="lines" status="on">
1531    <StyleName>county-borders</StyleName>
1532    <StyleName>state-borders</StyleName>
1533    <StyleName>country-borders</StyleName>
1534    <Datasource>
1535          &dbsettings;
1536          &extents;
1537      <Parameter name="table">
1538        (select * from ${DB_PREFIX}_line order by z_order) as lines
1539      </Parameter>
1540    </Datasource>
1541</Layer>
1542-->
1543<!--
1544<Layer name="border-poly" status="on">
1545    <StyleName>county-borders</StyleName>
1546        <StyleName>state-borders</StyleName>
1547        <StyleName>country-borders</StyleName>
1548        <Datasource>
1549                &dbsettings;
1550                &extents;
1551                <Parameter name="table">(select * from ${DB_PREFIX}_polygon where boundary = 'administrative' order by z_order,way_area desc) as polygons</Parameter>
1552    </Datasource>
1553</Layer>
1554-->
1555
1556<Layer name="borders-6" status="off">
1557    <StyleName>county-borders</StyleName>
1558        <Datasource>
1559                &dbsettings;
1560                &extents;
1561                <Parameter name="table">
1562                (SELECT way,boundary,admin_level FROM ${DB_PREFIX}_roads
1563        WHERE "boundary"='administrative' AND admin_level = '6')
1564        AS borders
1565        </Parameter>
1566    </Datasource>
1567</Layer>
1568
1569<Layer name="borders-24" status="on">
1570        <StyleName>state-borders</StyleName>
1571        <StyleName>country-borders</StyleName>
1572        <Datasource>
1573                &dbsettings;
1574                &extents;
1575                <Parameter name="table">
1576                (SELECT way,boundary,admin_level FROM ${DB_PREFIX}_roads
1577        WHERE "boundary"='administrative' AND admin_level IN ('2','4'))
1578        AS borders
1579        </Parameter>
1580    </Datasource>
1581</Layer>
1582
1583<Layer name="points" status="on">
1584    <StyleName>symbols</StyleName>
1585    <Datasource>
1586      &dbsettings;
1587      &extents;
1588      <Parameter name="table">${DB_PREFIX}_point</Parameter>
1589    </Datasource>
1590</Layer>
1591
1592
1593</Map>
Note: See TracBrowser for help on using the repository browser.