source: subversion/applications/rendering/nor-screenspec/layer-roads.xml.ent @ 34655

Last change on this file since 34655 was 22878, checked in by vibrog, 9 years ago

Bridge width quick-fix

File size: 19.5 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">3.2</CssParameter>
9      <CssParameter name="stroke-linecap">butt</CssParameter>
10    </LineSymbolizer>
11  </Rule>
12  <Rule>
13    <Filter>&major_road;</Filter>
14      &maxscale_zoom14;
15        <LineSymbolizer>
16        <CssParameter name="stroke">&black;</CssParameter>
17        <CssParameter name="stroke-width">6.4</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">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">2</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">3</CssParameter>
45        <CssParameter name="stroke-linecap">butt</CssParameter>
46      </LineSymbolizer>
47    </Rule>
48</Style>
49
50<Style name="tunnels-core">
51    <Rule>
52      <Filter>&major_road;</Filter>
53      &maxscale_zoom10;
54      &minscale_zoom11;
55      <LineSymbolizer>
56        <CssParameter name="stroke">&grey50;</CssParameter>
57        <CssParameter name="stroke-width">2</CssParameter>
58        <CssParameter name="stroke-dasharray">3,3</CssParameter>
59      </LineSymbolizer>
60    </Rule>
61    <Rule>
62      <Filter>&major_road;</Filter>
63      &maxscale_zoom12;
64      <LineSymbolizer>
65        <CssParameter name="stroke">&grey50;</CssParameter>
66        <CssParameter name="stroke-width">3</CssParameter>
67        <CssParameter name="stroke-dasharray">3,3</CssParameter>
68      </LineSymbolizer>
69    </Rule>
70    <Rule>
71      <Filter>&minor_road; or &residential_road;</Filter>
72      &maxscale_zoom12;
73      &minscale_zoom12;
74      <LineSymbolizer>
75        <CssParameter name="stroke">&grey50;</CssParameter>
76        <CssParameter name="stroke-width">1</CssParameter>
77        <CssParameter name="stroke-dasharray">3,2</CssParameter>
78      </LineSymbolizer>
79    </Rule>
80    <Rule>
81      <Filter>&minor_road; or &residential_road; or &service_road;</Filter>
82      &maxscale_zoom13;
83      <LineSymbolizer>
84        <CssParameter name="stroke">&grey50;</CssParameter>
85        <CssParameter name="stroke-width">2</CssParameter>
86        <CssParameter name="stroke-dasharray">3,3</CssParameter>
87      </LineSymbolizer>
88    </Rule>
89    <Rule>
90      <Filter>&track; or &cycle_track; or &path;</Filter>
91      &maxscale_zoom13;
92      <LineSymbolizer>
93        <CssParameter name="stroke">&grey50;</CssParameter>
94        <CssParameter name="stroke-width">1</CssParameter>
95        <CssParameter name="stroke-dasharray">3,2</CssParameter>
96      </LineSymbolizer>
97    </Rule>
98</Style>
99
100<Style name="trams-casing">
101  <Rule>
102    <Filter>&tram; and not &tunnel;</Filter>
103    &maxscale_zoom12;
104    &minscale_zoom13;
105    <LineSymbolizer>
106      <CssParameter name="stroke">&black;</CssParameter>
107      <CssParameter name="stroke-width">1.5</CssParameter>
108      <CssParameter name="stroke-linejoin">round</CssParameter>
109    </LineSymbolizer>
110  </Rule>
111 <Rule>
112    <Filter>&tram; and not &tunnel;</Filter>
113    &maxscale_zoom14;
114    <LineSymbolizer>
115      <CssParameter name="stroke">&black;</CssParameter>
116      <CssParameter name="stroke-width">3</CssParameter>
117      <CssParameter name="stroke-linejoin">round</CssParameter>
118    </LineSymbolizer>
119  </Rule>
120</Style>
121
122<Style name="roads-casing">
123  <Rule>
124   <Filter>&major_road; and not &tunnel;</Filter>
125    &maxscale_zoom17;
126    <LineSymbolizer>
127      <CssParameter name="stroke">&road-casing-color;</CssParameter>
128      <CssParameter name="stroke-width">5.2</CssParameter>
129      <CssParameter name="stroke-linejoin">round</CssParameter>
130    </LineSymbolizer>
131  </Rule>
132  <Rule>
133    <Filter>&minor_road; and not &tunnel;</Filter>
134    &maxscale_zoom17;
135    <LineSymbolizer>
136      <CssParameter name="stroke">&road-casing-color;</CssParameter>
137      <CssParameter name="stroke-width">4</CssParameter>
138      <CssParameter name="stroke-linejoin">round</CssParameter>
139    </LineSymbolizer>
140  </Rule>
141</Style>
142
143<Style name="trams-core">
144  <Rule>
145    &maxscale_zoom12;
146    &minscale_zoom13;
147    <Filter>&tram; and not &tunnel;</Filter>
148    <LineSymbolizer>
149      <CssParameter name="stroke">&black;</CssParameter>
150      <CssParameter name="stroke-width">1.0</CssParameter>
151    </LineSymbolizer>
152  </Rule>
153  <Rule>
154    &maxscale_zoom14;
155    <Filter>&tram; and not &tunnel;</Filter>
156    <LineSymbolizer>
157      <CssParameter name="stroke">&black;</CssParameter>
158      <CssParameter name="stroke-width">2.5</CssParameter>
159    </LineSymbolizer>
160  </Rule>
161</Style>
162
163<Style name="roads-core">
164  <Rule>
165    <Filter>&major_road;<!-- and not &tunnel;--></Filter>
166    &maxscale_zoom8;
167    &minscale_zoom9;
168    <LineSymbolizer>
169      <CssParameter name="stroke">&road-major-color;</CssParameter>
170      <CssParameter name="stroke-width">0.7</CssParameter>
171      <CssParameter name="stroke-linejoin">round</CssParameter>
172      <CssParameter name="stroke-linecap">round</CssParameter>
173    </LineSymbolizer>
174  </Rule>
175  <Rule>
176    <Filter>&major_road; and not &tunnel;</Filter>
177    &maxscale_zoom10;
178    &minscale_zoom11;
179    <LineSymbolizer>
180      <CssParameter name="stroke">&road-major-color;</CssParameter>
181      <CssParameter name="stroke-width">1.6</CssParameter>
182      <CssParameter name="stroke-linejoin">round</CssParameter>
183      <CssParameter name="stroke-linecap">round</CssParameter>
184    </LineSymbolizer>
185  </Rule>
186  <Rule>
187    <Filter>&major_road; and not &tunnel;</Filter>
188    &maxscale_zoom12;
189    &minscale_zoom13;
190    <LineSymbolizer>
191      <CssParameter name="stroke">&road-major-color;</CssParameter>
192      <CssParameter name="stroke-width">1.6</CssParameter>
193      <CssParameter name="stroke-linejoin">round</CssParameter>
194      <CssParameter name="stroke-linecap">round</CssParameter>
195    </LineSymbolizer>
196  </Rule>
197  <Rule>
198    <Filter>&major_road; and not &tunnel;</Filter>
199    &maxscale_zoom14;
200    <LineSymbolizer>
201      <CssParameter name="stroke">&road-major-color;</CssParameter>
202      <CssParameter name="stroke-width">3.2</CssParameter>
203      <CssParameter name="stroke-linejoin">round</CssParameter>
204      <CssParameter name="stroke-linecap">round</CssParameter>
205    </LineSymbolizer>
206  </Rule>
207  <Rule>
208    <Filter>&minor_road; and not &tunnel;</Filter>
209    &maxscale_zoom10;
210    &minscale_zoom11;
211    <LineSymbolizer>
212      <CssParameter name="stroke">&road-color;</CssParameter>
213      <CssParameter name="stroke-width">0.7</CssParameter>
214      <CssParameter name="stroke-linejoin">round</CssParameter>
215      <CssParameter name="stroke-linecap">round</CssParameter>
216    </LineSymbolizer>
217  </Rule>
218  <Rule>
219    <Filter>&minor_road; and not &tunnel;</Filter>
220    &maxscale_zoom12;
221    &minscale_zoom13;
222    <LineSymbolizer>
223      <CssParameter name="stroke">&road-color;</CssParameter>
224      <CssParameter name="stroke-width">1.2</CssParameter>
225      <CssParameter name="stroke-linejoin">round</CssParameter>
226      <CssParameter name="stroke-linecap">round</CssParameter>
227    </LineSymbolizer>
228  </Rule>
229  <Rule>
230    <Filter>&minor_road; and not &tunnel;</Filter>
231    &maxscale_zoom14;
232    <LineSymbolizer>
233      <CssParameter name="stroke">&road-color;</CssParameter>
234      <CssParameter name="stroke-width">2</CssParameter>
235      <CssParameter name="stroke-linejoin">round</CssParameter>
236      <CssParameter name="stroke-linecap">round</CssParameter>
237    </LineSymbolizer>
238  </Rule>
239  <Rule>
240    <Filter>&residential_road; and not &tunnel;</Filter>
241    &maxscale_zoom12;
242    &minscale_zoom12;
243    <LineSymbolizer>
244      <CssParameter name="stroke">&road-color;</CssParameter>
245      <CssParameter name="stroke-width">0.9</CssParameter>
246      <CssParameter name="stroke-linejoin">round</CssParameter>
247      <CssParameter name="stroke-linecap">round</CssParameter>
248    </LineSymbolizer>
249  </Rule>
250  <Rule>
251    <Filter>&residential_road; and not &tunnel;</Filter>
252    &maxscale_zoom13;
253    &minscale_zoom13;
254    <LineSymbolizer>
255      <CssParameter name="stroke">&road-color;</CssParameter>
256      <CssParameter name="stroke-width">1.2</CssParameter>
257      <CssParameter name="stroke-linejoin">round</CssParameter>
258      <CssParameter name="stroke-linecap">round</CssParameter>
259    </LineSymbolizer>
260  </Rule>
261  <Rule>
262    <Filter>&residential_road; and not &tunnel;</Filter>
263    &maxscale_zoom14;
264    &minscale_zoom14;
265    <LineSymbolizer>
266      <CssParameter name="stroke">&road-color;</CssParameter>
267      <CssParameter name="stroke-width">2.2</CssParameter>
268      <CssParameter name="stroke-linejoin">round</CssParameter>
269      <CssParameter name="stroke-linecap">round</CssParameter>
270    </LineSymbolizer>
271  </Rule>
272  <Rule>
273    <Filter>&residential_road; and not &tunnel;</Filter>
274    &maxscale_zoom15;
275    <LineSymbolizer>
276      <CssParameter name="stroke">&road-color;</CssParameter>
277      <CssParameter name="stroke-width">3</CssParameter>
278      <CssParameter name="stroke-linejoin">round</CssParameter>
279      <CssParameter name="stroke-linecap">round</CssParameter>
280    </LineSymbolizer>
281  </Rule>
282  <Rule>
283    <Filter>&service_road; and not &tunnel;</Filter>
284    &maxscale_zoom12;
285    &minscale_zoom13;
286    <LineSymbolizer>
287      <CssParameter name="stroke">&road-color;</CssParameter>
288      <CssParameter name="stroke-width">0.875</CssParameter>
289      <CssParameter name="stroke-linejoin">round</CssParameter>
290      <CssParameter name="stroke-linecap">round</CssParameter>
291    </LineSymbolizer>
292  </Rule>
293  <Rule>
294    <Filter>&service_road; and not &tunnel;</Filter>
295    &maxscale_zoom14;
296    &minscale_zoom14;
297    <LineSymbolizer>
298      <CssParameter name="stroke">&road-color;</CssParameter>
299      <CssParameter name="stroke-width">1.75</CssParameter>
300      <CssParameter name="stroke-linejoin">round</CssParameter>
301      <CssParameter name="stroke-linecap">round</CssParameter>
302    </LineSymbolizer>
303  </Rule>
304  <Rule>
305    <Filter>&service_road; and not &tunnel;</Filter>
306    &maxscale_zoom15;
307    <LineSymbolizer>
308      <CssParameter name="stroke">&road-color;</CssParameter>
309      <CssParameter name="stroke-width">2</CssParameter>
310      <CssParameter name="stroke-linejoin">round</CssParameter>
311      <CssParameter name="stroke-linecap">round</CssParameter>
312    </LineSymbolizer>
313  </Rule>
314
315  <Rule>
316    <Filter>&railway; and not &tunnel;</Filter>
317    &maxscale_zoom10;
318    &minscale_zoom13;
319    <LineSymbolizer>
320      <CssParameter name="stroke">&black;</CssParameter>
321      <CssParameter name="stroke-width">0.9</CssParameter>
322    </LineSymbolizer>
323  </Rule>
324  <Rule>
325    <Filter>&railway; and not &tunnel;</Filter>
326    &maxscale_zoom14;
327    <LineSymbolizer>
328      <CssParameter name="stroke">&black;</CssParameter>
329      <CssParameter name="stroke-width">1.8</CssParameter>
330    </LineSymbolizer>
331  </Rule>
332  <Rule>
333    <Filter>&tram; and not &tunnel;</Filter>
334    &maxscale_zoom12;
335    &minscale_zoom13;
336    <LineSymbolizer>
337      <CssParameter name="stroke">&black;</CssParameter>
338      <CssParameter name="stroke-width">0.5</CssParameter>
339    </LineSymbolizer>
340  </Rule>
341  <Rule>
342    <Filter>&tram; and not &tunnel;</Filter>
343    &maxscale_zoom14;
344    <LineSymbolizer>
345      <CssParameter name="stroke">&black;</CssParameter>
346      <CssParameter name="stroke-width">2</CssParameter>
347    </LineSymbolizer>
348  </Rule>
349
350  <Rule>
351    <Filter>&cycle_track; and not &tunnel;</Filter>
352    &maxscale_zoom12;
353    &minscale_zoom13;
354    <LineSymbolizer>
355      <CssParameter name="stroke">&cycleway-color;</CssParameter>
356      <CssParameter name="stroke-linejoin">round</CssParameter>
357      <CssParameter name="stroke-linecap">round</CssParameter>
358      <CssParameter name="stroke-width">0.875</CssParameter>
359      <CssParameter name="stroke-dasharray">6,1</CssParameter>
360    </LineSymbolizer>
361  </Rule>
362  <Rule>
363    <Filter>&cycle_track; and not &tunnel;</Filter>
364    &maxscale_zoom14;
365    <LineSymbolizer>
366      <CssParameter name="stroke">&cycleway-color;</CssParameter>
367      <CssParameter name="stroke-linejoin">round</CssParameter>
368      <CssParameter name="stroke-linecap">round</CssParameter>
369      <CssParameter name="stroke-width">1.75</CssParameter>
370      <CssParameter name="stroke-dasharray">12,3</CssParameter>
371    </LineSymbolizer>
372  </Rule>
373  <Rule>
374    <Filter>&track; and not &tunnel;</Filter>
375    &maxscale_zoom12;
376    &minscale_zoom13;
377    <LineSymbolizer>
378      <CssParameter name="stroke">&white;</CssParameter>
379      <CssParameter name="stroke-width">0.75</CssParameter>
380    </LineSymbolizer>
381    <LineSymbolizer>
382      <CssParameter name="stroke">&track-color;</CssParameter>
383      <CssParameter name="stroke-linejoin">round</CssParameter>
384      <CssParameter name="stroke-linecap">round</CssParameter>
385      <CssParameter name="stroke-width">0.75</CssParameter>
386      <CssParameter name="stroke-dasharray">5,2</CssParameter>
387    </LineSymbolizer>
388  </Rule>
389  <Rule>
390    <Filter>&track; and not &tunnel;</Filter>
391    &maxscale_zoom14;
392    <LineSymbolizer>
393      <CssParameter name="stroke">&white;</CssParameter>
394      <CssParameter name="stroke-width">1.5</CssParameter>
395    </LineSymbolizer>
396    <LineSymbolizer>
397      <CssParameter name="stroke">&track-color;</CssParameter>
398      <CssParameter name="stroke-linejoin">round</CssParameter>
399      <CssParameter name="stroke-linecap">round</CssParameter>
400      <CssParameter name="stroke-width">1.5</CssParameter>
401      <CssParameter name="stroke-dasharray">10,4</CssParameter>
402    </LineSymbolizer>
403  </Rule>
404  <Rule>
405    <Filter>&path; and &marked_path; and not &tunnel;</Filter>
406    &maxscale_zoom12;
407    &minscale_zoom13;
408    <LineSymbolizer>
409      <CssParameter name="stroke">&trail-color;</CssParameter>
410      <CssParameter name="stroke-linejoin">round</CssParameter>
411      <CssParameter name="stroke-linecap">round</CssParameter>
412      <CssParameter name="stroke-width">0.8</CssParameter>
413      <CssParameter name="stroke-dasharray">3,3</CssParameter>
414    </LineSymbolizer>
415  </Rule>
416  <Rule>
417    <Filter>&path; and &marked_path; and not &tunnel;</Filter>
418    &maxscale_zoom14;
419    <LineSymbolizer>
420      <CssParameter name="stroke">&trail-color;</CssParameter>
421      <CssParameter name="stroke-linejoin">round</CssParameter>
422      <CssParameter name="stroke-linecap">round</CssParameter>
423      <CssParameter name="stroke-width">1.5</CssParameter>
424      <CssParameter name="stroke-dasharray">6,6</CssParameter>
425    </LineSymbolizer>
426  </Rule>
427  <Rule>
428    <Filter>&path; and not &marked_path; and not &indistinct_path; and not &tunnel;</Filter>
429    &maxscale_zoom12;
430    &minscale_zoom13;
431    <LineSymbolizer>
432      <CssParameter name="stroke">&trail-color;</CssParameter>
433      <CssParameter name="stroke-linejoin">round</CssParameter>
434      <CssParameter name="stroke-linecap">round</CssParameter>
435      <CssParameter name="stroke-width">0.4</CssParameter>
436      <CssParameter name="stroke-dasharray">2,1</CssParameter>
437    </LineSymbolizer>
438  </Rule>
439  <Rule>
440    <Filter>&path; and not &marked_path; and not &indistinct_path; and not &tunnel;</Filter>
441    &maxscale_zoom14;
442    <LineSymbolizer>
443      <CssParameter name="stroke">&trail-color;</CssParameter>
444      <CssParameter name="stroke-linejoin">round</CssParameter>
445      <CssParameter name="stroke-linecap">round</CssParameter>
446      <CssParameter name="stroke-width">0.75</CssParameter>
447      <CssParameter name="stroke-dasharray">4,2</CssParameter>
448    </LineSymbolizer>
449  </Rule>
450  <Rule>
451    <Filter>&path; and &indistinct_path; and not &marked_path; and not &tunnel;</Filter>
452    &maxscale_zoom13;
453    &minscale_zoom13;
454    <LineSymbolizer>
455      <CssParameter name="stroke">&trail-color;</CssParameter>
456      <CssParameter name="stroke-linejoin">round</CssParameter>
457      <CssParameter name="stroke-linecap">round</CssParameter>
458      <CssParameter name="stroke-width">0.25</CssParameter>
459      <CssParameter name="stroke-dasharray">2,1,2,3</CssParameter>
460    </LineSymbolizer>
461  </Rule>
462  <Rule>
463    <Filter>&path; and &indistinct_path; and not &marked_path; and not &tunnel;</Filter>
464    &maxscale_zoom14;
465    <LineSymbolizer>
466      <CssParameter name="stroke">&trail-color;</CssParameter>
467      <CssParameter name="stroke-linejoin">round</CssParameter>
468      <CssParameter name="stroke-linecap">round</CssParameter>
469      <CssParameter name="stroke-width">0.65</CssParameter>
470      <CssParameter name="stroke-dasharray">4,2,4,6</CssParameter>
471    </LineSymbolizer>
472  </Rule>
473
474  <Rule>
475    <Filter>[aeroway] = 'runway'</Filter>
476    &maxscale_zoom10;
477    &minscale_zoom11;
478    <LineSymbolizer>
479      <CssParameter name="stroke">&white;</CssParameter>
480      <CssParameter name="stroke-width">1.5</CssParameter>
481    </LineSymbolizer>
482  </Rule>
483  <Rule>
484    <Filter>[aeroway] = 'runway'</Filter>
485    &maxscale_zoom12;
486    <LineSymbolizer>
487      <CssParameter name="stroke">&white;</CssParameter>
488      <CssParameter name="stroke-width">7</CssParameter>
489    </LineSymbolizer>
490  </Rule>
491  <Rule>
492    <Filter>[aeroway] = 'taxiway'</Filter>
493    &maxscale_zoom10;
494    &minscale_zoom11;
495    <LineSymbolizer>
496      <CssParameter name="stroke">&white;</CssParameter>
497      <CssParameter name="stroke-width">0.5</CssParameter>
498    </LineSymbolizer>
499  </Rule>
500  <Rule>
501    <Filter>[aeroway] = 'taxiway'</Filter>
502    &maxscale_zoom12;
503    <LineSymbolizer>
504      <CssParameter name="stroke">&white;</CssParameter>
505      <CssParameter name="stroke-width">3</CssParameter>
506    </LineSymbolizer>
507  </Rule>
508</Style>
509
510<Layer name="roads" status="on" srs="&osm2pgsql_projection;">
511  <StyleName>trams-casing</StyleName>
512  <StyleName>trams-core</StyleName>
513  <StyleName>roads-casing</StyleName>
514  <StyleName>roads-core</StyleName>
515  <Datasource>
516    &datasource-settings;
517    <Parameter name="table">
518    (select way,highway,railway,aeroway,trail_visibility,marked_trail,trailblazed,tracktype,
519     case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel,
520     case when bridge in ('yes','true','1') then 'yes'::text else bridge end as bridge
521     from &prefix;_line
522     where highway is not null
523        or railway is not null
524        or aeroway is not null
525     order by z_order
526    ) as roads
527    </Parameter>
528  </Datasource>
529</Layer>
530
531<Layer name="tunnels" status="on" srs="&osm2pgsql_projection;">
532  <StyleName>tunnels-core</StyleName>
533  <Datasource>
534    &datasource-settings;
535    <Parameter name="table">
536    (select way,highway,tracktype from &prefix;_line
537     where tunnel in ('yes','true','1')
538     order by z_order
539    ) as roads
540    </Parameter>
541  </Datasource>
542</Layer>
543
544<Layer name="bridges" status="on" srs="&osm2pgsql_projection;">
545  <StyleName>bridges-casing</StyleName>
546  <StyleName>trams-casing</StyleName>
547  <StyleName>trams-core</StyleName>
548  <StyleName>roads-casing</StyleName>
549  <StyleName>roads-core</StyleName>
550  <Datasource>
551    <Parameter name="table">
552    (select way,highway,railway,aeroway,trail_visibility,marked_trail,trailblazed,tracktype,bridge,tunnel
553     from &prefix;_line
554     where (highway is not null
555            or aeroway in ('runway','taxiway')
556            or railway is not null)
557       and bridge not in ('no','false','0')
558     order by z_order
559    ) as roads
560    </Parameter>
561    &datasource-settings;
562  </Datasource>
563</Layer>
Note: See TracBrowser for help on using the repository browser.