source: subversion/applications/rendering/nor-hikingmap/layer-roads.xml.ent @ 24371

Last change on this file since 24371 was 23135, checked in by vibrog, 9 years ago

Add railway tunnels

File size: 26.3 KB
Line 
1<Style name="bridges-casing">
2  <Rule>
3    <Filter>&major_road;</Filter>
4    &maxscale_zoom11;
5    &minscale_zoom12;
6    <LineSymbolizer>
7      <CssParameter name="stroke">&black;</CssParameter>
8      <CssParameter name="stroke-width">7</CssParameter>
9      <CssParameter name="stroke-linecap">butt</CssParameter>
10    </LineSymbolizer>
11  </Rule>
12  <Rule>
13    <Filter>&major_road;</Filter>
14      &maxscale_zoom13;
15        <LineSymbolizer>
16        <CssParameter name="stroke">&black;</CssParameter>
17        <CssParameter name="stroke-width">9</CssParameter>
18        <CssParameter name="stroke-linecap">butt</CssParameter>
19      </LineSymbolizer>
20    </Rule>
21     <Rule>
22      <Filter>&minor_road; or &residential_road; or &service_road; or &track; or &cycle_track;</Filter>
23      &maxscale_zoom13;
24        <LineSymbolizer>
25        <CssParameter name="stroke">&black;</CssParameter>
26        <CssParameter name="stroke-width">7.2</CssParameter>
27        <CssParameter name="stroke-linecap">butt</CssParameter>
28      </LineSymbolizer>
29    </Rule>
30     <Rule>
31      <Filter>&path;</Filter>
32      &maxscale_zoom13;
33        <LineSymbolizer>
34        <CssParameter name="stroke">&black;</CssParameter>
35        <CssParameter name="stroke-width">4.75</CssParameter>
36        <CssParameter name="stroke-linecap">butt</CssParameter>
37      </LineSymbolizer>
38    </Rule>
39     <Rule>
40      <Filter>&railway; or &tram;</Filter>
41      &maxscale_zoom13;
42        <LineSymbolizer>
43        <CssParameter name="stroke">&black;</CssParameter>
44        <CssParameter name="stroke-width">7</CssParameter>
45        <CssParameter name="stroke-linecap">butt</CssParameter>
46      </LineSymbolizer>
47    </Rule>
48</Style>
49
50<Style name="bridges-core">
51  <Rule>
52    <Filter>&major_road;</Filter>
53    &maxscale_zoom11;
54    &minscale_zoom12;
55    <LineSymbolizer>
56      <CssParameter name="stroke">&white;</CssParameter>
57      <CssParameter name="stroke-width">5</CssParameter>
58      <CssParameter name="stroke-linecap">butt</CssParameter>
59    </LineSymbolizer>
60  </Rule>
61  <Rule>
62    <Filter>&major_road;</Filter>
63    &maxscale_zoom13;
64    <LineSymbolizer>
65      <CssParameter name="stroke">&white;</CssParameter>
66      <CssParameter name="stroke-width">7</CssParameter>
67      <CssParameter name="stroke-linecap">butt</CssParameter>
68    </LineSymbolizer>
69  </Rule>
70  <Rule>
71      <Filter>&minor_road; or &residential_road; or &service_road; or &track; or &cycle_track;</Filter>
72    &maxscale_zoom13;
73    <LineSymbolizer>
74        <CssParameter name="stroke">&white;</CssParameter>
75        <CssParameter name="stroke-width">5.2</CssParameter>
76        <CssParameter name="stroke-linecap">butt</CssParameter>
77      </LineSymbolizer>
78    </Rule>
79     <Rule>
80      <Filter>&path;</Filter>
81      &maxscale_zoom13;
82        <LineSymbolizer>
83        <CssParameter name="stroke">&white;</CssParameter>
84        <CssParameter name="stroke-width">2.75</CssParameter>
85        <CssParameter name="stroke-linecap">butt</CssParameter>
86      </LineSymbolizer>
87    </Rule>
88     <Rule>
89      <Filter>&railway; or &tram;</Filter>
90      &maxscale_zoom13;
91        <LineSymbolizer>
92        <CssParameter name="stroke">&white;</CssParameter>
93        <CssParameter name="stroke-width">5</CssParameter>
94        <CssParameter name="stroke-linecap">butt</CssParameter>
95      </LineSymbolizer>
96    </Rule>
97</Style>
98
99<Style name="tunnels-core">
100    <Rule>
101      <Filter>&major_road;</Filter>
102      &maxscale_zoom10;
103      &minscale_zoom11;
104      <LineSymbolizer>
105        <CssParameter name="stroke">&grey50;</CssParameter>
106        <CssParameter name="stroke-width">2</CssParameter>
107        <CssParameter name="stroke-dasharray">3,3</CssParameter>
108      </LineSymbolizer>
109    </Rule>
110    <Rule>
111      <Filter>&major_road;</Filter>
112      &maxscale_zoom12;
113      <LineSymbolizer>
114        <CssParameter name="stroke">&grey50;</CssParameter>
115        <CssParameter name="stroke-width">3</CssParameter>
116        <CssParameter name="stroke-dasharray">3,3</CssParameter>
117      </LineSymbolizer>
118    </Rule>
119    <Rule>
120      <Filter>&minor_road; or &residential_road;</Filter>
121      &maxscale_zoom12;
122      &minscale_zoom12;
123      <LineSymbolizer>
124        <CssParameter name="stroke">&grey50;</CssParameter>
125        <CssParameter name="stroke-width">1</CssParameter>
126        <CssParameter name="stroke-dasharray">3,2</CssParameter>
127      </LineSymbolizer>
128    </Rule>
129    <Rule>
130      <Filter>&minor_road; or &residential_road; or &service_road;</Filter>
131      &maxscale_zoom13;
132      <LineSymbolizer>
133        <CssParameter name="stroke">&grey50;</CssParameter>
134        <CssParameter name="stroke-width">2</CssParameter>
135        <CssParameter name="stroke-dasharray">3,3</CssParameter>
136      </LineSymbolizer>
137    </Rule>
138    <Rule>
139      <Filter>&track; or &cycle_track; or &path;</Filter>
140      &maxscale_zoom13;
141      <LineSymbolizer>
142        <CssParameter name="stroke">&grey50;</CssParameter>
143        <CssParameter name="stroke-width">1</CssParameter>
144        <CssParameter name="stroke-dasharray">3,2</CssParameter>
145      </LineSymbolizer>
146    </Rule>
147    <Rule>
148      <Filter>&railway; or &tram;</Filter>
149      &maxscale_zoom12;
150      &minscale_zoom13;
151      <LineSymbolizer>
152        <CssParameter name="stroke">&grey50;</CssParameter>
153        <CssParameter name="stroke-width">1.5</CssParameter>
154        <CssParameter name="stroke-dasharray">2,4</CssParameter>
155      </LineSymbolizer>
156    </Rule>
157    <Rule>
158      <Filter>&railway; or &tram;</Filter>
159      &maxscale_zoom14;
160      <LineSymbolizer>
161        <CssParameter name="stroke">&grey50;</CssParameter>
162        <CssParameter name="stroke-width">3</CssParameter>
163        <CssParameter name="stroke-dasharray">5,8</CssParameter>
164      </LineSymbolizer>
165    </Rule>
166</Style>
167
168<Style name="trams-casing">
169  <Rule>
170    <Filter>&tram; and not &tunnel;</Filter>
171    &maxscale_zoom12;
172    &minscale_zoom13;
173    <LineSymbolizer>
174      <CssParameter name="stroke">&black;</CssParameter>
175      <CssParameter name="stroke-width">1.5</CssParameter>
176      <CssParameter name="stroke-linejoin">round</CssParameter>
177    </LineSymbolizer>
178  </Rule>
179 <Rule>
180    <Filter>&tram; and not &tunnel;</Filter>
181    &maxscale_zoom14;
182    <LineSymbolizer>
183      <CssParameter name="stroke">&black;</CssParameter>
184      <CssParameter name="stroke-width">3</CssParameter>
185      <CssParameter name="stroke-linejoin">round</CssParameter>
186    </LineSymbolizer>
187  </Rule>
188</Style>
189
190<Style name="roads-casing">
191  <Rule>
192    <Filter>&major_road;<!-- and not &tunnel;--></Filter>
193    &maxscale_zoom8;
194    &minscale_zoom9;
195    <LineSymbolizer>
196      <CssParameter name="stroke">&black;</CssParameter>
197      <CssParameter name="stroke-width">1.4</CssParameter>
198      <CssParameter name="stroke-linejoin">round</CssParameter>
199    </LineSymbolizer>
200  </Rule>
201  <Rule>
202    <Filter>&major_road; and not &tunnel;</Filter>
203    &maxscale_zoom10;
204    &minscale_zoom11;
205    <LineSymbolizer>
206      <CssParameter name="stroke">&black;</CssParameter>
207      <CssParameter name="stroke-width">2.1</CssParameter>
208      <CssParameter name="stroke-linejoin">round</CssParameter>
209    </LineSymbolizer>
210  </Rule>
211  <Rule>
212    <Filter>&major_road; and not &tunnel;</Filter>
213    &maxscale_zoom12;
214    &minscale_zoom13;
215    <LineSymbolizer>
216      <CssParameter name="stroke">&black;</CssParameter>
217      <CssParameter name="stroke-width">2.6</CssParameter>
218      <CssParameter name="stroke-linejoin">round</CssParameter>
219    </LineSymbolizer>
220  </Rule>
221  <Rule>
222   <Filter>&major_road; and not &tunnel;</Filter>
223    &maxscale_zoom14;
224    <LineSymbolizer>
225      <CssParameter name="stroke">&black;</CssParameter>
226      <CssParameter name="stroke-width">5.2</CssParameter>
227      <CssParameter name="stroke-linejoin">round</CssParameter>
228    </LineSymbolizer>
229  </Rule>
230  <Rule>
231    <Filter>&minor_road; and not &tunnel;</Filter>
232    &maxscale_zoom12;
233    &minscale_zoom13;
234    <LineSymbolizer>
235      <CssParameter name="stroke">&black;</CssParameter>
236      <CssParameter name="stroke-width">2</CssParameter>
237      <CssParameter name="stroke-linejoin">round</CssParameter>
238    </LineSymbolizer>
239  </Rule>
240   <Rule>
241    <Filter>&minor_road; and not &tunnel;</Filter>
242    &maxscale_zoom14;
243    <LineSymbolizer>
244      <CssParameter name="stroke">&black;</CssParameter>
245      <CssParameter name="stroke-width">4</CssParameter>
246      <CssParameter name="stroke-linejoin">round</CssParameter>
247    </LineSymbolizer>
248  </Rule>
249 <Rule>
250    <Filter>&railway; and not &tunnel;</Filter>
251    &maxscale_zoom10;
252    &minscale_zoom11;
253    <LineSymbolizer>
254      <CssParameter name="stroke">&black;</CssParameter>
255      <CssParameter name="stroke-width">1.5</CssParameter>
256      <CssParameter name="stroke-linejoin">round</CssParameter>
257    </LineSymbolizer>
258  </Rule>
259  <Rule>
260    <Filter>&railway; and not &tunnel;</Filter>
261    &maxscale_zoom12;
262    &minscale_zoom13;
263    <LineSymbolizer>
264      <CssParameter name="stroke">&black;</CssParameter>
265      <CssParameter name="stroke-width">1.5</CssParameter>
266      <CssParameter name="stroke-linejoin">round</CssParameter>
267    </LineSymbolizer>
268  </Rule>
269  <Rule>
270    <Filter>&railway; and not &tunnel;</Filter>
271    &maxscale_zoom14;
272    <LineSymbolizer>
273      <CssParameter name="stroke">&black;</CssParameter>
274      <CssParameter name="stroke-width">3</CssParameter>
275      <CssParameter name="stroke-linejoin">round</CssParameter>
276    </LineSymbolizer>
277  </Rule>
278</Style>
279
280<Style name="trams-core">
281  <Rule>
282    &maxscale_zoom12;
283    &minscale_zoom13;
284    <Filter>&tram; and not &tunnel;</Filter>
285    <LineSymbolizer>
286      <CssParameter name="stroke">&white;</CssParameter>
287      <CssParameter name="stroke-width">0.9</CssParameter>
288      <CssParameter name="stroke-linejoin">round</CssParameter>
289    </LineSymbolizer>
290    <LineSymbolizer>
291      <CssParameter name="stroke">&black;</CssParameter>
292      <CssParameter name="stroke-width">1.0</CssParameter>
293      <CssParameter name="stroke-linejoin">round</CssParameter>
294      <CssParameter name="stroke-dasharray">0,2,4,1</CssParameter>
295    </LineSymbolizer>
296  </Rule>
297  <Rule>
298    &maxscale_zoom14;
299    <Filter>&tram; and not &tunnel;</Filter>
300    <LineSymbolizer>
301      <CssParameter name="stroke">&white;</CssParameter>
302      <CssParameter name="stroke-width">1.8</CssParameter>
303      <CssParameter name="stroke-linejoin">round</CssParameter>
304    </LineSymbolizer>
305    <LineSymbolizer>
306      <CssParameter name="stroke">&black;</CssParameter>
307      <CssParameter name="stroke-width">2.5</CssParameter>
308      <CssParameter name="stroke-linejoin">round</CssParameter>
309      <CssParameter name="stroke-dasharray">0,5,8,1</CssParameter>
310    </LineSymbolizer>
311  </Rule>
312</Style>
313
314<Style name="roads-core">
315  <Rule>
316    <Filter>&major_road;<!-- and not &tunnel;--></Filter>
317    &maxscale_zoom8;
318    &minscale_zoom9;
319    <LineSymbolizer>
320      <CssParameter name="stroke">&roadcore-color;</CssParameter>
321      <CssParameter name="stroke-width">0.7</CssParameter>
322      <CssParameter name="stroke-linejoin">round</CssParameter>
323      <CssParameter name="stroke-linecap">round</CssParameter>
324    </LineSymbolizer>
325  </Rule>
326  <Rule>
327    <Filter>&major_road; and not &tunnel;</Filter>
328    &maxscale_zoom10;
329    &minscale_zoom11;
330    <LineSymbolizer>
331      <CssParameter name="stroke">&roadcore-color;</CssParameter>
332      <CssParameter name="stroke-width">1.6</CssParameter>
333      <CssParameter name="stroke-linejoin">round</CssParameter>
334      <CssParameter name="stroke-linecap">round</CssParameter>
335    </LineSymbolizer>
336  </Rule>
337  <Rule>
338    <Filter>&major_road; and not &tunnel;</Filter>
339    &maxscale_zoom12;
340    &minscale_zoom13;
341    <LineSymbolizer>
342      <CssParameter name="stroke">&roadcore-color;</CssParameter>
343      <CssParameter name="stroke-width">1.6</CssParameter>
344      <CssParameter name="stroke-linejoin">round</CssParameter>
345      <CssParameter name="stroke-linecap">round</CssParameter>
346    </LineSymbolizer>
347  </Rule>
348  <Rule>
349    <Filter>&major_road; and not &tunnel;</Filter>
350    &maxscale_zoom14;
351    <LineSymbolizer>
352      <CssParameter name="stroke">&roadcore-color;</CssParameter>
353      <CssParameter name="stroke-width">3.2</CssParameter>
354      <CssParameter name="stroke-linejoin">round</CssParameter>
355      <CssParameter name="stroke-linecap">round</CssParameter>
356    </LineSymbolizer>
357  </Rule>
358  <Rule>
359    <Filter>&minor_road; and not &tunnel;</Filter>
360    &maxscale_zoom10;
361    &minscale_zoom11;
362    <LineSymbolizer>
363      <CssParameter name="stroke">&black;</CssParameter>
364      <CssParameter name="stroke-width">0.7</CssParameter>
365      <CssParameter name="stroke-linejoin">round</CssParameter>
366      <CssParameter name="stroke-linecap">round</CssParameter>
367    </LineSymbolizer>
368  </Rule>
369  <Rule>
370    <Filter>&minor_road; and not &tunnel;</Filter>
371    &maxscale_zoom12;
372    &minscale_zoom13;
373    <LineSymbolizer>
374      <CssParameter name="stroke">&roadcore-color;</CssParameter>
375      <CssParameter name="stroke-width">1</CssParameter>
376      <CssParameter name="stroke-linejoin">round</CssParameter>
377      <CssParameter name="stroke-linecap">round</CssParameter>
378    </LineSymbolizer>
379  </Rule>
380  <Rule>
381    <Filter>&minor_road; and not &tunnel;</Filter>
382    &maxscale_zoom14;
383    <LineSymbolizer>
384      <CssParameter name="stroke">&roadcore-color;</CssParameter>
385      <CssParameter name="stroke-width">2</CssParameter>
386      <CssParameter name="stroke-linejoin">round</CssParameter>
387      <CssParameter name="stroke-linecap">round</CssParameter>
388    </LineSymbolizer>
389  </Rule>
390  <Rule>
391    <Filter>&residential_road; and not &tunnel;</Filter>
392    &maxscale_zoom12;
393    &minscale_zoom12;
394    <LineSymbolizer>
395      <CssParameter name="stroke">&black;</CssParameter>
396      <CssParameter name="stroke-width">0.9</CssParameter>
397      <CssParameter name="stroke-linejoin">round</CssParameter>
398      <CssParameter name="stroke-linecap">round</CssParameter>
399    </LineSymbolizer>
400  </Rule>
401  <Rule>
402    <Filter>&residential_road; and not &tunnel;</Filter>
403    &maxscale_zoom13;
404    &minscale_zoom13;
405    <LineSymbolizer>
406      <CssParameter name="stroke">&black;</CssParameter>
407      <CssParameter name="stroke-width">1.4</CssParameter>
408      <CssParameter name="stroke-linejoin">round</CssParameter>
409      <CssParameter name="stroke-linecap">round</CssParameter>
410    </LineSymbolizer>
411  </Rule>
412  <Rule>
413    <Filter>&residential_road; and not &tunnel;</Filter>
414    &maxscale_zoom14;
415    &minscale_zoom14;
416    <LineSymbolizer>
417      <CssParameter name="stroke">&black;</CssParameter>
418      <CssParameter name="stroke-width">2.2</CssParameter>
419      <CssParameter name="stroke-linejoin">round</CssParameter>
420      <CssParameter name="stroke-linecap">round</CssParameter>
421    </LineSymbolizer>
422  </Rule>
423  <Rule>
424    <Filter>&residential_road; and not &tunnel;</Filter>
425    &maxscale_zoom15;
426    <LineSymbolizer>
427      <CssParameter name="stroke">&black;</CssParameter>
428      <CssParameter name="stroke-width">3</CssParameter>
429      <CssParameter name="stroke-linejoin">round</CssParameter>
430      <CssParameter name="stroke-linecap">round</CssParameter>
431    </LineSymbolizer>
432  </Rule>
433  <Rule>
434    <Filter>&service_road; and not &tunnel;</Filter>
435    &maxscale_zoom12;
436    &minscale_zoom13;
437    <LineSymbolizer>
438      <CssParameter name="stroke">&black;</CssParameter>
439      <CssParameter name="stroke-width">0.875</CssParameter>
440      <CssParameter name="stroke-linejoin">round</CssParameter>
441      <CssParameter name="stroke-linecap">round</CssParameter>
442    </LineSymbolizer>
443  </Rule>
444  <Rule>
445    <Filter>&service_road; and not &tunnel;</Filter>
446    &maxscale_zoom14;
447    &minscale_zoom14;
448    <LineSymbolizer>
449      <CssParameter name="stroke">&black;</CssParameter>
450      <CssParameter name="stroke-width">1.75</CssParameter>
451      <CssParameter name="stroke-linejoin">round</CssParameter>
452      <CssParameter name="stroke-linecap">round</CssParameter>
453    </LineSymbolizer>
454  </Rule>
455  <Rule>
456    <Filter>&service_road; and not &tunnel;</Filter>
457    &maxscale_zoom15;
458    <LineSymbolizer>
459      <CssParameter name="stroke">&black;</CssParameter>
460      <CssParameter name="stroke-width">2</CssParameter>
461      <CssParameter name="stroke-linejoin">round</CssParameter>
462      <CssParameter name="stroke-linecap">round</CssParameter>
463    </LineSymbolizer>
464  </Rule>
465  <Rule>
466    <Filter>&railway; and not &tunnel;</Filter>
467    &maxscale_zoom10;
468    &minscale_zoom11;
469    <LineSymbolizer>
470      <CssParameter name="stroke">&white;</CssParameter>
471      <CssParameter name="stroke-width">0.9</CssParameter>
472      <CssParameter name="stroke-linejoin">round</CssParameter>
473    </LineSymbolizer>
474    <LineSymbolizer>
475      <CssParameter name="stroke">&black;</CssParameter>
476      <CssParameter name="stroke-width">1.0</CssParameter>
477      <CssParameter name="stroke-linejoin">round</CssParameter>
478      <CssParameter name="stroke-dasharray">0,5,8,1</CssParameter>
479    </LineSymbolizer>
480  </Rule>
481  <Rule>
482    <Filter>&railway; and not &tunnel;</Filter>
483    &maxscale_zoom12;
484    &minscale_zoom13;
485    <LineSymbolizer>
486      <CssParameter name="stroke">&white;</CssParameter>
487      <CssParameter name="stroke-width">0.9</CssParameter>
488      <CssParameter name="stroke-linejoin">round</CssParameter>
489    </LineSymbolizer>
490    <LineSymbolizer>
491      <CssParameter name="stroke">&black;</CssParameter>
492      <CssParameter name="stroke-width">1.0</CssParameter>
493      <CssParameter name="stroke-linejoin">round</CssParameter>
494      <CssParameter name="stroke-dasharray">0,2,4,1</CssParameter>
495    </LineSymbolizer>
496  </Rule>
497  <Rule>
498    <Filter>&railway; and not &tunnel;</Filter>
499    &maxscale_zoom14;
500    <LineSymbolizer>
501      <CssParameter name="stroke">&white;</CssParameter>
502      <CssParameter name="stroke-width">1.8</CssParameter>
503      <CssParameter name="stroke-linejoin">round</CssParameter>
504    </LineSymbolizer>
505    <LineSymbolizer>
506      <CssParameter name="stroke">&black;</CssParameter>
507      <CssParameter name="stroke-width">2.5</CssParameter>
508      <CssParameter name="stroke-linejoin">round</CssParameter>
509      <CssParameter name="stroke-dasharray">0,5,8,1</CssParameter>
510    </LineSymbolizer>
511  </Rule>
512  <Rule>
513    <Filter>&tram; and not &tunnel;</Filter>
514    &maxscale_zoom12;
515    &minscale_zoom13;
516    <LineSymbolizer>
517      <CssParameter name="stroke">&black;</CssParameter>
518      <CssParameter name="stroke-width">0.5</CssParameter>
519      <CssParameter name="stroke-linejoin">round</CssParameter>
520      <CssParameter name="stroke-dasharray">0,2,4,1</CssParameter>
521    </LineSymbolizer>
522  </Rule>
523  <Rule>
524    <Filter>&tram; and not &tunnel;</Filter>
525    &maxscale_zoom14;
526    <LineSymbolizer>
527      <CssParameter name="stroke">&black;</CssParameter>
528      <CssParameter name="stroke-width">2</CssParameter>
529      <CssParameter name="stroke-linejoin">round</CssParameter>
530      <CssParameter name="stroke-dasharray">0,5,2,4,2,1</CssParameter>
531    </LineSymbolizer>
532  </Rule>
533  <Rule>
534    <Filter>&cycle_track; and not &tunnel;</Filter>
535    &maxscale_zoom12;
536    &minscale_zoom13;
537    <LineSymbolizer>
538      <CssParameter name="stroke">&trail-color;</CssParameter>
539      <CssParameter name="stroke-linejoin">round</CssParameter>
540      <CssParameter name="stroke-linecap">round</CssParameter>
541      <CssParameter name="stroke-width">0.875</CssParameter>
542      <CssParameter name="stroke-dasharray">6,1</CssParameter>
543    </LineSymbolizer>
544  </Rule>
545  <Rule>
546    <Filter>&cycle_track; and not &tunnel;</Filter>
547    &maxscale_zoom14;
548    <LineSymbolizer>
549      <CssParameter name="stroke">&trail-color;</CssParameter>
550      <CssParameter name="stroke-linejoin">round</CssParameter>
551      <CssParameter name="stroke-linecap">round</CssParameter>
552      <CssParameter name="stroke-width">1.75</CssParameter>
553      <CssParameter name="stroke-dasharray">12,3</CssParameter>
554    </LineSymbolizer>
555  </Rule>
556  <Rule>
557    <Filter>&track; and not &tunnel;</Filter>
558    &maxscale_zoom12;
559    &minscale_zoom13;
560    <LineSymbolizer>
561      <CssParameter name="stroke">&trail-color;</CssParameter>
562      <CssParameter name="stroke-linejoin">round</CssParameter>
563      <CssParameter name="stroke-linecap">round</CssParameter>
564      <CssParameter name="stroke-width">0.75</CssParameter>
565      <CssParameter name="stroke-dasharray">3,1</CssParameter>
566    </LineSymbolizer>
567  </Rule>
568  <Rule>
569    <Filter>&track; and not &tunnel;</Filter>
570    &maxscale_zoom14;
571    <LineSymbolizer>
572      <CssParameter name="stroke">&trail-color;</CssParameter>
573      <CssParameter name="stroke-linejoin">round</CssParameter>
574      <CssParameter name="stroke-linecap">round</CssParameter>
575      <CssParameter name="stroke-width">1.5</CssParameter>
576      <CssParameter name="stroke-dasharray">6,2</CssParameter>
577    </LineSymbolizer>
578  </Rule>
579  <Rule>
580    <Filter>&path; and not &indistinct_path; and not &tunnel;</Filter>
581    &maxscale_zoom12;
582    &minscale_zoom13;
583    <LineSymbolizer>
584      <CssParameter name="stroke">&trail-color;</CssParameter>
585      <CssParameter name="stroke-linejoin">round</CssParameter>
586      <CssParameter name="stroke-linecap">round</CssParameter>
587      <CssParameter name="stroke-width">0.4</CssParameter>
588      <CssParameter name="stroke-dasharray">2,1</CssParameter>
589    </LineSymbolizer>
590  </Rule>
591  <Rule>
592    <Filter>&path; and not &indistinct_path; and not &tunnel;</Filter>
593    &maxscale_zoom14;
594    <LineSymbolizer>
595      <CssParameter name="stroke">&trail-color;</CssParameter>
596      <CssParameter name="stroke-linejoin">round</CssParameter>
597      <CssParameter name="stroke-linecap">round</CssParameter>
598      <CssParameter name="stroke-width">0.75</CssParameter>
599      <CssParameter name="stroke-dasharray">4,2</CssParameter>
600    </LineSymbolizer>
601  </Rule>
602  <Rule>
603    <Filter>&path; and [trail_visibility]='intermediate' and not &tunnel;</Filter>
604    &maxscale_zoom13;
605    &minscale_zoom13;
606    <LineSymbolizer>
607      <CssParameter name="stroke">&trail-color;</CssParameter>
608      <CssParameter name="stroke-linejoin">round</CssParameter>
609      <CssParameter name="stroke-linecap">round</CssParameter>
610      <CssParameter name="stroke-width">0.25</CssParameter>
611      <CssParameter name="stroke-dasharray">2,1,2,3</CssParameter>
612    </LineSymbolizer>
613  </Rule>
614  <Rule>
615    <Filter>&path; and [trail_visibility]='intermediate' and not &tunnel;</Filter>
616    &maxscale_zoom14;
617    <LineSymbolizer>
618      <CssParameter name="stroke">&trail-color;</CssParameter>
619      <CssParameter name="stroke-linejoin">round</CssParameter>
620      <CssParameter name="stroke-linecap">round</CssParameter>
621      <CssParameter name="stroke-width">0.75</CssParameter>
622      <CssParameter name="stroke-dasharray">4,2,4,6</CssParameter>
623    </LineSymbolizer>
624  </Rule>
625  <Rule>
626    <Filter>&path; and [trail_visibility]='bad' and not &tunnel;</Filter>
627    &maxscale_zoom15;
628    <LineSymbolizer>
629      <CssParameter name="stroke">&trail-color;</CssParameter>
630      <CssParameter name="stroke-linejoin">round</CssParameter>
631      <CssParameter name="stroke-linecap">round</CssParameter>
632      <CssParameter name="stroke-width">0.6</CssParameter>
633      <CssParameter name="stroke-dasharray">4,2,4,6</CssParameter>
634    </LineSymbolizer>
635  </Rule>
636  <Rule>
637    <Filter>&path; and [trail_visibility]='horrible' and not &tunnel;</Filter>
638    &maxscale_zoom16;
639    <LineSymbolizer>
640      <CssParameter name="stroke">&trail-color;</CssParameter>
641      <CssParameter name="stroke-linejoin">round</CssParameter>
642      <CssParameter name="stroke-linecap">round</CssParameter>
643      <CssParameter name="stroke-width">0.45</CssParameter>
644      <CssParameter name="stroke-dasharray">4,2,4,6</CssParameter>
645    </LineSymbolizer>
646  </Rule>
647  <Rule>
648    <Filter>&path; and [trail_visibility]='no' and not &tunnel;</Filter>
649    &maxscale_zoom17;
650    <LineSymbolizer>
651      <CssParameter name="stroke">&trail-color;</CssParameter>
652      <CssParameter name="stroke-linejoin">round</CssParameter>
653      <CssParameter name="stroke-linecap">round</CssParameter>
654      <CssParameter name="stroke-width">0.3</CssParameter>
655      <CssParameter name="stroke-dasharray">4,2,4,6</CssParameter>
656    </LineSymbolizer>
657  </Rule>
658  <Rule>
659    <Filter>[aeroway] = 'runway'</Filter>
660    &maxscale_zoom10;
661    &minscale_zoom11;
662    <LineSymbolizer>
663      <CssParameter name="stroke">&grey50;</CssParameter>
664      <CssParameter name="stroke-width">1.5</CssParameter>
665    </LineSymbolizer>
666  </Rule>
667  <Rule>
668    <Filter>[aeroway] = 'runway'</Filter>
669    &maxscale_zoom12;
670    <LineSymbolizer>
671      <CssParameter name="stroke">&grey50;</CssParameter>
672      <CssParameter name="stroke-width">7</CssParameter>
673    </LineSymbolizer>
674  </Rule>
675  <Rule>
676    <Filter>[aeroway] = 'taxiway'</Filter>
677    &maxscale_zoom10;
678    &minscale_zoom11;
679    <LineSymbolizer>
680      <CssParameter name="stroke">&grey50;</CssParameter>
681      <CssParameter name="stroke-width">0.5</CssParameter>
682    </LineSymbolizer>
683  </Rule>
684  <Rule>
685    <Filter>[aeroway] = 'taxiway'</Filter>
686    &maxscale_zoom12;
687    <LineSymbolizer>
688      <CssParameter name="stroke">&grey50;</CssParameter>
689      <CssParameter name="stroke-width">3</CssParameter>
690    </LineSymbolizer>
691  </Rule>
692</Style>
693
694<Layer name="roads" status="on" srs="&osm2pgsql_projection;">
695  <StyleName>trams-casing</StyleName>
696  <StyleName>trams-core</StyleName>
697  <StyleName>roads-casing</StyleName>
698  <StyleName>roads-core</StyleName>
699  <Datasource>
700    &datasource-settings;
701    <Parameter name="table">
702    (select way,highway,railway,aeroway,trail_visibility,tracktype,
703     case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel,
704     case when bridge in ('yes','true','1') then 'yes'::text else bridge end as bridge
705     from &prefix;_line
706     where highway is not null
707        or railway is not null
708        or aeroway is not null
709     order by z_order
710    ) as roads
711    </Parameter>
712  </Datasource>
713</Layer>
714
715<Layer name="tunnels" status="on" srs="&osm2pgsql_projection;">
716  <StyleName>tunnels-core</StyleName>
717  <Datasource>
718    &datasource-settings;
719    <Parameter name="table">
720    (select way,highway,railway,tracktype from &prefix;_line
721     where tunnel in ('yes','true','1')
722     order by z_order
723    ) as roads
724    </Parameter>
725  </Datasource>
726</Layer>
727
728<Layer name="bridges" status="on" srs="&osm2pgsql_projection;">
729  <StyleName>bridges-casing</StyleName>
730  <StyleName>bridges-core</StyleName>
731  <StyleName>trams-casing</StyleName>
732  <StyleName>trams-core</StyleName>
733  <StyleName>roads-casing</StyleName>
734  <StyleName>roads-core</StyleName>
735  <Datasource>
736    <Parameter name="table">
737    (select way,highway,railway,aeroway,trail_visibility,tracktype,bridge,tunnel
738     from &prefix;_line
739     where (highway is not null
740            or aeroway in ('runway','taxiway')
741            or railway is not null)
742       and bridge not in ('no','false','0')
743     order by z_order
744    ) as roads
745    </Parameter>
746    &datasource-settings;
747  </Datasource>
748</Layer>
Note: See TracBrowser for help on using the repository browser.