source: subversion/applications/rendering/parking/mapnik/osm-approach-src.xml @ 28266

Revision 28266, 34.0 KB checked in by kdrangmeister, 2 years ago (diff)

test with planet_line_join table for names

  • Property svn:mime-type set to text/plain
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE Map [
3<!ENTITY % entities SYSTEM "inc/entities.xml.inc">
4%entities;
5<!ENTITY % layer-approach-entities SYSTEM "inc/layer-approach-entities.xml.inc">
6%layer-approach-entities;
7<!ENTITY layer-approach-area SYSTEM "inc/layer-approach-area.xml.inc">
8<!ENTITY layer-approach-point SYSTEM "inc/layer-approach-point.xml.inc">
9<!ENTITY layer-approach-water SYSTEM "inc/layer-approach-water.xml.inc">
10<!ENTITY layer-approach-rail SYSTEM "inc/layer-approach-rail.xml.inc">
11]>
12<Map background-color="&approach_water;" srs="+init=epsg:3857" minimum-version="2.0.0">
13  &fontset-settings;
14
15
16<!--  &layer-shapefiles; -->
17<Style name="necountries">
18    <Rule>
19      &min_z1;
20      &max_z3;
21      <LineSymbolizer stroke="&approach_world_text;" stroke-width="0.5"/>
22    </Rule>
23</Style>
24<Style name="nepopulated">
25    <Rule>
26      &min_z3;
27      &max_z4;
28     <Filter>[SCALERANK]=1</Filter>
29     <TextSymbolizer size="8" dy="2" fill="&approach_world_text;" fontset-name="book-fonts" halo-radius="1">[NAMEASCII]</TextSymbolizer>
30    </Rule>
31</Style>
32<Style name="world">
33    <Rule>
34      &min_z0;
35      &max_z9;
36      <PolygonSymbolizer fill="&approach_background;"/>
37    </Rule>
38</Style>
39<Style name="coast-poly">
40    <Rule>
41      &min_z10;
42      <PolygonSymbolizer fill="&approach_background;"/>
43    </Rule>
44</Style>
45  <!-- BUILTUP VMAP0 -->
46<Style name="builtup">
47    <Rule>
48      &min_z8;
49      &max_z10;
50      <PolygonSymbolizer fill="&approach_background;"/>
51    </Rule>
52</Style>
53<Layer name="world" status="on" srs="&srs900913;">
54    <StyleName>world</StyleName>
55    <Datasource>
56      <Parameter name="type">shape</Parameter>
57      <Parameter name="file">&world_boundaries;/shoreline_300</Parameter>
58    </Datasource>
59</Layer>
60<Layer name="coast-poly" status="on" srs="&srs900913;">
61    <StyleName>coast-poly</StyleName>
62    <Datasource>
63      <Parameter name="type">shape</Parameter>
64      <Parameter name="file">&world_boundaries;/processed_p</Parameter>
65    </Datasource>
66</Layer>
67<Layer name="builtup" status="on" srs="&srsmercator;">
68    <StyleName>builtup</StyleName>
69    <Datasource>
70      <Parameter name="type">shape</Parameter>
71      <Parameter name="file">&world_boundaries;/builtup_area</Parameter>
72    </Datasource>
73</Layer>
74<Layer name="necountries" status="on" srs="&srs4326;">
75    <StyleName>necountries</StyleName>
76    <Datasource>
77      <Parameter name="type">shape</Parameter>
78      <Parameter name="file">&world_boundaries;/110m_admin_0_boundary_lines_land.shp</Parameter>
79    </Datasource>
80</Layer>
81<Layer name="nepopulated" status="on" srs="&srs4326;">
82    <StyleName>nepopulated</StyleName>
83    <Datasource>
84      <Parameter name="type">shape</Parameter>
85      <Parameter name="file">&world_boundaries;/ne_10m_populated_places.shp</Parameter>
86      <Parameter name="encoding">latin1</Parameter>
87    </Datasource>
88</Layer>
89
90&layer-approach-water;
91&layer-approach-rail;
92
93<Style name="roads-lowzoom">
94    <Rule>
95      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
96      &min_z5;
97      &max_z6;
98      <LineSymbolizer stroke="&approach_roads;" stroke-width="0.5"/>
99    </Rule>
100    <Rule>
101      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
102      &min_z7;
103      &max_z8;
104      <LineSymbolizer stroke="&approach_roads;" stroke-width="1"/>
105    </Rule>
106    <Rule>
107      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
108      &min_z9;
109      &max_z9;
110      <LineSymbolizer stroke="&approach_roads;" stroke-width="1.4"/>
111    </Rule>
112    <Rule>
113      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
114      &min_z10;
115      &max_z10;
116      <LineSymbolizer stroke="&approach_roads;" stroke-width="2"/>
117    </Rule>
118    <Rule>
119      <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
120      &min_z11;
121      &max_z11;
122      <LineSymbolizer stroke="&approach_roads;" stroke-width="2.5"/>
123    </Rule>
124    <!-- TRUNK -->
125    <Rule>
126      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
127      &min_z5;
128      &max_z6;
129      <LineSymbolizer stroke="&approach_roads;" stroke-width="0.4"/>
130    </Rule>
131   <Rule>
132      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
133      &min_z7;
134      &max_z8;
135      <LineSymbolizer stroke="&approach_roads;" stroke-width="1"/>
136    </Rule>
137    <Rule>
138      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
139      &min_z9;
140      &max_z10;
141      <LineSymbolizer stroke="&approach_roads;" stroke-width="2"/>
142    </Rule>
143    <Rule>
144      <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
145      &min_z11;
146      &max_z11;
147      <LineSymbolizer stroke="&approach_roads;" stroke-width="2.5"/>
148    </Rule>
149   <!-- PRIMARY-->
150   <Rule>
151      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
152      &min_z7;
153      &max_z8;
154      <LineSymbolizer stroke="&approach_roads;" stroke-width="0.5"/>
155    </Rule>
156    <Rule>
157      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
158      &min_z9;
159      &max_z9;
160      <LineSymbolizer stroke="&approach_roads;" stroke-width="1.2"/>
161    </Rule>
162    <Rule>
163      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
164      &min_z10;
165      &max_z10;
166      <LineSymbolizer stroke="&approach_roads;" stroke-width="2"/>
167    </Rule>
168    <Rule>
169      <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
170      &min_z11;
171      &max_z11;
172      <LineSymbolizer stroke="&approach_roads;" stroke-width="2.5"/>
173    </Rule>
174    <!-- SECONDARY -->
175    <Rule>
176      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
177      &min_z9;
178      &max_z10;
179      <LineSymbolizer stroke="&approach_roads;" stroke-width="1"/>
180    </Rule>
181    <Rule>
182      <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
183      &min_z11;
184      &max_z11;
185      <LineSymbolizer stroke="&approach_roads;" stroke-width="2"/>
186    </Rule>
187    <!-- RAIL -->
188    <Rule>
189      &min_z6;
190      &max_z8;
191      <Filter>[railway] = 'rail'</Filter>
192      <LineSymbolizer stroke="#aaa" stroke-width="0.6"/>
193    </Rule>
194    <Rule>
195      &min_z9;
196      &max_z9;
197      <Filter>[railway] = 'rail' and not [tunnel]='yes'</Filter>
198      <LineSymbolizer stroke="#aaa" stroke-width="1"/>
199    </Rule>
200    <Rule>
201      &min_z9;
202      &max_z9;
203      <Filter>[railway] = 'rail' and [tunnel]='yes'</Filter>
204      <LineSymbolizer stroke="#aaa" stroke-width="1" stroke-dasharray="5,2"/>
205    </Rule>
206    <Rule>
207      &min_z8;
208      &max_z9;
209      <Filter>[railway] = 'tram' or [railway] = 'light_rail' or [railway] = 'narrow_gauge' or [railway]='funicular'</Filter>
210      <LineSymbolizer stroke="#ccc" stroke-width="1"/>
211    </Rule>
212    <Rule>
213      &min_z10;
214      &max_z12;
215      <Filter>[railway] = 'rail' and not [tunnel]='yes'</Filter>
216      <LineSymbolizer stroke="#aaa" stroke-width="2"/>
217    </Rule>
218    <Rule>
219      &min_z10;
220      &max_z12;
221      <Filter>[railway] = 'rail' and [tunnel]='yes'</Filter>
222      <LineSymbolizer stroke="#aaa" stroke-width="2" stroke-dasharray="5,2"/>
223    </Rule>
224    <Rule>
225      &min_z10;
226      &max_z12;
227      <Filter>[railway] = 'tram' or [railway] = 'light_rail' or [railway] = 'narrow_gauge' or [railway]='funicular'</Filter>
228      <LineSymbolizer stroke="#aaa" stroke-width="1"/>
229    </Rule>
230    <Rule>
231      &min_z12;
232      &max_z12;
233      <Filter>[railway] = 'preserved'</Filter>
234      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="1.5"/>
235    </Rule>
236    <Rule>
237      &min_z13;
238      &max_z18;
239      <Filter>[railway] = 'preserved'</Filter>
240      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="3"/>
241      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="1" stroke-dasharray="0,1,8,1"/>
242    </Rule>
243    <Rule>
244      &min_z12;
245      &max_z12;
246      <Filter>[railway] = 'INT-preserved-ssy'</Filter>
247      <LineSymbolizer stroke-linejoin="round" stroke="#aaa" stroke-width="1"/>
248    </Rule>
249    <Rule>
250      &min_z13;
251      &max_z18;
252      <Filter>[railway] = 'INT-preserved-ssy'</Filter>
253      <LineSymbolizer stroke-linejoin="round" stroke="#999999" stroke-width="2"/>
254      <LineSymbolizer stroke-linejoin="round" stroke="white" stroke-width="0.8" stroke-dasharray="0,1,8,1"/>
255    </Rule>
256    <Rule>
257      &min_z14;
258      &max_z18;
259      <Filter>[railway]='monorail'</Filter>
260      <LineSymbolizer stroke-linejoin="round" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-opacity="0.4"/>
261      <LineSymbolizer stroke-linejoin="round" stroke="#777" stroke-width="3.0" stroke-dasharray="2,3" stroke-linecap="round"/>
262    </Rule>
263</Style>
264<Layer name="roads-lowzoom" status="on" srs="&osm2pgsql_projection;">
265    <StyleName>roads-lowzoom</StyleName>
266    <Datasource>
267      <Parameter name="table">
268      (select way,highway,
269       case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel,
270       case when railway='preserved' and service in ('spur','siding','yard') then 'INT-preserved-ssy'::text else railway end as railway
271       from &prefix;_roads
272       where highway is not null
273          or (railway is not null and railway!='preserved' and (service is null or service not in ('spur','siding','yard')))
274          or railway='preserved'
275       order by z_order
276      ) as roads
277      </Parameter>
278      &datasource-settings;
279    </Datasource>
280</Layer>
281
282<Style name="highway-area-fill">
283    <Rule>
284      <Filter>[highway] = 'living_street'</Filter>
285      &min_z14;
286      <PolygonSymbolizer fill="&approach_roads;"/>
287   </Rule>
288   <Rule>
289      <Filter>[highway] = 'residential' or [highway]='unclassified' or [highway]='service'</Filter>
290      &min_z14;
291      <PolygonSymbolizer fill="&approach_roads;"/>
292   </Rule>
293   <Rule>
294      <Filter>[highway] = 'pedestrian' or [highway]='footway' or [highway]='path'</Filter>
295      &min_z14;
296      <PolygonSymbolizer fill="&approach_roads;"/>
297   </Rule>   
298   <Rule>
299      <Filter>[highway] = 'track'</Filter>
300      &min_z14;
301      <PolygonSymbolizer fill="&approach_roads;"/>
302   </Rule>
303    <Rule>
304      <Filter>[highway] = 'platform' or [railway] = 'platform'</Filter>
305      &min_z16;
306      <PolygonSymbolizer fill="&approach_background;"/>
307    </Rule>
308</Style>
309<Layer name="highway-area-fill" status="on" srs="&osm2pgsql_projection;">
310    <StyleName>highway-area-fill</StyleName>
311    <Datasource>
312      <Parameter name="table">
313      (select way,highway,railway,aeroway from &prefix;_polygon
314       where highway in ('residential','unclassified','pedestrian','service','footway','living_street','track','path','platform','services')
315          or railway='platform'
316          or aeroway in ('runway','taxiway','helipad')
317       order by z_order,way_area desc) as roads
318      </Parameter>
319      &datasource-settings;
320    </Datasource>
321</Layer>
322
323
324<Style name="minor-roads">
325
326    <Rule>
327      <Filter>[highway] = 'tertiary' or [highway] = 'residential' or [highway] = 'unclassified' or [highway] = 'road'</Filter>
328      &min_z10;
329      &max_z12;
330      <LineSymbolizer stroke="&approach_roads;" stroke-width="1"/>
331    </Rule>
332
333    <Rule>
334      <Filter>[highway]='motorway_link' and not [tunnel] = 'yes'</Filter>
335      &min_z12;
336      &max_z12;
337      <LineSymbolizer stroke="&approach_roads;" stroke-width="0.5"/>
338    </Rule>
339    <Rule>
340      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
341      &min_z12;
342      &max_z12;
343      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="2.5" stroke-linecap="round"/>
344    </Rule>
345   <Rule>
346      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
347      &min_z12;
348      &max_z12;
349      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="2.5" stroke-linecap="round"/>
350    </Rule>
351   <Rule>
352      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
353      &min_z12;
354      &max_z12;
355      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="2" stroke-linecap="round"/>
356    </Rule>
357    <Rule>
358      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
359      &min_z12;
360      &max_z12;
361      <LineSymbolizer stroke="&approach_roads;" stroke-width="2"/>
362    </Rule>
363    <Rule>
364      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
365      &min_z12;
366      &max_z12;
367      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="2.5" stroke-linecap="round"/>
368    </Rule>
369   <Rule>
370      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
371      &min_z11;
372      &max_z12;
373      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="2.5" stroke-linecap="round"/>
374    </Rule>
375   <Rule>
376      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
377      &min_z12;
378      &max_z12;
379      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="2" stroke-linecap="round"/>
380    </Rule>
381
382    <Rule>
383      <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
384      &z13;
385      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="3" stroke-linecap="round"/>
386    </Rule>
387    <Rule>
388      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
389      &z13;
390      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="7" stroke-linecap="round"/>
391    </Rule>
392    <Rule>
393      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
394      &z13;
395      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="7" stroke-linecap="round"/>
396    </Rule>
397    <Rule>
398      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
399      &z13;
400      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="8" stroke-linecap="round"/>
401    </Rule>
402    <Rule>
403      <Filter>[highway] = 'living_street'</Filter>
404      &z13;
405      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads_muted;" stroke-width="1" stroke-linecap="round"/>
406    </Rule>
407    <Rule>
408      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
409      &z13;
410      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads_muted;" stroke-width="1" stroke-linecap="round"/>
411    </Rule>
412    <Rule>
413      <Filter>[highway] = 'road'</Filter>
414      &z13;
415      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="2" stroke-linecap="round"/>
416    </Rule>
417    <Rule>
418      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
419      &z13;
420      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="4.5" stroke-linecap="round"/>
421    </Rule>
422    <Rule>
423      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
424      &z13;
425      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="6" stroke-linecap="round"/>
426    </Rule>
427    <Rule>
428      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
429      &z13;
430      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="8" stroke-linecap="round"/>
431    </Rule>
432    <Rule>
433      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
434      &z13;
435      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="9" stroke-linecap="round"/>
436    </Rule>
437    <Rule>
438      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
439      &z13;
440      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
441    </Rule>
442    <Rule>
443      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
444      &z13;
445      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="13" stroke-linecap="round"/>
446    </Rule>
447
448
449    <Rule>
450      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
451      &z14;
452      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads_muted;" stroke-width="0.2" stroke-linecap="round"/>
453    </Rule>
454    <Rule>
455      <Filter>[highway] = 'road'</Filter>
456      &z14;
457      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="8" stroke-linecap="round"/>
458    </Rule>
459    <Rule>
460      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
461      &z14;
462      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="8" stroke-linecap="round"/>
463    </Rule>
464    <Rule>
465      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
466      &z14;
467      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="10" stroke-linecap="round"/>
468    </Rule>
469    <Rule>
470      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
471      &z14;
472      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
473    </Rule>
474    <Rule>
475      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
476      &z14;
477      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="13" stroke-linecap="round"/>
478    </Rule>
479    <Rule>
480      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
481      &z14;
482      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="14" stroke-linecap="round"/>
483    </Rule>
484    <Rule>
485      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
486      &z14;
487      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="16" stroke-linecap="round"/>
488    </Rule>
489    <Rule>
490      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
491      &z14;
492      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="15" stroke-linecap="round"/>
493    </Rule>
494    <Rule>
495      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
496      &z14;
497      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="17" stroke-linecap="round"/>
498    </Rule>
499    <Rule>
500      <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
501      &z14;
502      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="16" stroke-linecap="round"/>
503    </Rule>
504    <Rule>
505      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
506      &z14;
507      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="18" stroke-linecap="round"/>
508    </Rule>
509
510    <Rule>
511      <Filter>[highway] = 'road'</Filter>
512      &z15;
513      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="6.5" stroke-linecap="round"/>
514    </Rule>
515    <Rule>
516      <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
517      &min_z15;
518      &max_z16;
519      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="6.5" stroke-linecap="round"/>
520    </Rule>
521    <Rule>
522      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
523      &min_z15;
524      &max_z16;
525      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
526    </Rule>
527    <Rule>
528      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
529      &min_z15;
530      &max_z16;
531      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
532    </Rule>
533    <Rule>
534      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
535      &min_z15;
536      &max_z16;
537      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
538    </Rule>
539    <Rule>
540      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
541      &min_z15;
542      &max_z16;
543      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="9.4" stroke-linecap="round"/>
544    </Rule>
545    <Rule>
546      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
547      &min_z15;
548      &max_z16;
549      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="8.5" stroke-linecap="round"/>
550    </Rule>
551    <Rule>
552      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
553      &min_z15;
554      &max_z16;
555      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
556    </Rule>
557    <Rule>
558      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
559      &min_z15;
560      &max_z16;
561      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
562    </Rule>
563    <Rule>
564      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
565      &min_z15;
566      &max_z16;
567      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
568    </Rule>
569    <Rule>
570      <Filter>[highway] = 'road'</Filter>
571      &min_z16;
572      &max_z16;
573      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="9.4" stroke-linecap="round"/>
574    </Rule>
575
576    <Rule>
577      <Filter>[highway] = 'motorway_link' and not [tunnel] = 'yes'</Filter>
578      &min_z17;
579      &max_z18;
580      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="9" stroke-linecap="round"/>
581    </Rule>
582    <Rule>
583      <Filter>[highway] = 'trunk_link' and not [tunnel] = 'yes'</Filter>
584      &min_z17;
585      &max_z18;
586      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="15.5" stroke-linecap="round"/>
587   </Rule>
588    <Rule>
589      <Filter>[highway] = 'primary_link' and not [tunnel] = 'yes'</Filter>
590      &min_z17;
591      &max_z18;
592      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="15.5" stroke-linecap="round"/>
593    </Rule>
594    <Rule>
595      <Filter>[highway] = 'secondary_link' and not [tunnel]='yes'</Filter>
596      &min_z17;
597      &max_z18;
598      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="15.5" stroke-linecap="round"/>
599    </Rule>
600    <Rule>
601      <Filter>[highway] = 'tertiary_link' and not [tunnel]='yes'</Filter>
602      &min_z17;
603      &max_z18;
604      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="13" stroke-linecap="round"/>
605    </Rule>
606    <Rule>
607      <Filter>[highway] = 'motorway' and not [tunnel] = 'yes'</Filter>
608      &min_z17;
609      &max_z18;
610      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="11" stroke-linecap="round"/>
611    </Rule>
612    <Rule>
613      <Filter>[highway] = 'trunk' and not [tunnel] = 'yes'</Filter>
614      &min_z17;
615      &max_z18;
616      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="15.5" stroke-linecap="round"/>
617   </Rule>
618    <Rule>
619      <Filter>[highway] = 'primary' and not [tunnel] = 'yes'</Filter>
620      &min_z17;
621      &max_z18;
622      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="15.5" stroke-linecap="round"/>
623    </Rule>
624    <Rule>
625      <Filter>[highway] = 'secondary' and not [tunnel]='yes'</Filter>
626      &min_z17;
627      &max_z18;
628      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="15.5" stroke-linecap="round"/>
629    </Rule>
630    <Rule>
631      <Filter>[highway] = 'road'</Filter>
632      &min_z17;
633      &max_z18;
634      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="13" stroke-linecap="round"/>
635    </Rule>
636
637
638
639
640
641
642
643
644    <Rule>
645      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
646      &z15;
647      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="6.5" stroke-linecap="round"/>
648    </Rule>
649    <Rule>
650      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
651      &z16;
652      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="9.4" stroke-linecap="round"/>
653    </Rule>
654    <Rule>
655      <Filter>([highway] = 'residential' or [highway] = 'unclassified') and not [tunnel] = 'yes'</Filter>
656      &min_z17;
657      &max_z18;
658      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="13" stroke-linecap="round"/>
659    </Rule>
660    <Rule>
661      <Filter>[highway] = 'living_street'</Filter>
662      &z14;
663      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads_muted;" stroke-width="2" stroke-linecap="round"/>
664    </Rule>
665    <Rule>
666      <Filter>[highway] = 'living_street'</Filter>
667      &min_z15;
668      &max_z15;
669      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="4.7" stroke-linecap="round"/>
670    </Rule>
671    <Rule>
672      <Filter>[highway] = 'living_street'</Filter>
673      &min_z16;
674      &max_z16;
675      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="7.4" stroke-linecap="round"/>
676    </Rule>
677    <Rule>
678      <Filter>[highway] = 'living_street'</Filter>
679      &min_z17;
680      &max_z18;
681      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="13" stroke-linecap="round"/>
682    </Rule>
683    <Rule>
684      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
685      &min_z15;
686      &max_z16;
687      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="9.4" stroke-linecap="round"/>
688    </Rule>
689    <Rule>
690      <Filter>[highway] = 'tertiary' and not [tunnel]='yes'</Filter>
691      &min_z17;
692      &max_z18;
693      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="13" stroke-linecap="round"/>
694    </Rule>
695<!-- service erst ab z17
696    <Rule>
697      <Filter>[highway] = 'service' and not [service]='INT-minor'</Filter>
698      &min_z13;
699      &max_z13;
700      <LineSymbolizer stroke="&approach_roads;" stroke-width="1"/>
701    </Rule>
702    <Rule>
703      <Filter>[highway] = 'service' and not [service]='INT-minor'</Filter>
704      &min_z14;
705      &max_z15;
706      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="2" stroke-linecap="round"/>
707   </Rule>
708   <Rule>
709      <Filter>[highway] = 'service' and not [service]='INT-minor'</Filter>
710      &min_z16;
711      &max_z18;
712      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="6" stroke-linecap="round"/>
713   </Rule>
714-->
715   <Rule>
716      <Filter>[highway] = 'service' and not [service]='INT-minor'</Filter>
717      &min_z17;
718      &max_z18;
719      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads_debug;" stroke-width="8" stroke-linecap="round"/>
720   </Rule>
721
722<!-- disable minor service ways
723   <Rule>
724      <Filter>[highway] = 'service' and [service]='INT-minor'</Filter>
725      &min_z16;
726      &max_z18;
727      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="3" stroke-linecap="round"/>
728   </Rule>
729-->
730   <Rule>
731      <Filter>[highway] = 'pedestrian'</Filter>
732      &min_z13;
733      &max_z13;
734      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="1.5" stroke-linecap="round"/>
735    </Rule>
736    <Rule>
737      <Filter>[highway] = 'pedestrian'</Filter>
738      &min_z14;
739      &max_z14;
740      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="3" stroke-linecap="round"/>
741    </Rule>
742    <Rule>
743      <Filter>[highway] = 'pedestrian'</Filter>
744      &min_z15;
745      &max_z15;
746      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="5.5" stroke-linecap="round"/>
747    </Rule>
748    <Rule>
749      <Filter>[highway] = 'pedestrian'</Filter>
750      &min_z16;
751      <LineSymbolizer stroke-linejoin="round" stroke="#ededed" stroke-width="8" stroke-linecap="round"/>
752    </Rule>
753    <Rule>
754       <Filter>[highway] = 'platform' or [railway] = 'platform'</Filter>
755       &min_z16;
756       <LineSymbolizer stroke-linejoin="round" stroke="grey" stroke-width="6" stroke-linecap="round"/>
757    </Rule>
758    <Rule>
759      <Filter>[highway] = 'steps'</Filter>
760      &min_z15;
761      <LineSymbolizer stroke="&approach_roads;" stroke-width="2.0" stroke-dasharray="2,1"/>
762    </Rule> 
763    <Rule>
764      <Filter>([highway] = 'footway' or ([highway] = 'path' and [foot] = 'designated')) and not [tunnel]='yes'</Filter>
765      &min_z13;
766      <LineSymbolizer stroke-linejoin="round" stroke="&approach_background;" stroke-width="2" stroke-linecap="round" stroke-opacity="1"/>
767      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="1.5" stroke-dasharray="1,3" stroke-linecap="round"/>
768    </Rule>   
769    <Rule>
770      <Filter>[highway] = 'steps'</Filter>
771      &min_z13;
772      &max_z14;
773      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="1.0" stroke-dasharray="1,3" stroke-linecap="round"/>
774    </Rule>
775    <Rule>
776      <Filter>[highway] = 'track'</Filter>
777      &min_z13;
778      &max_z13;
779      <LineSymbolizer stroke-linejoin="round" stroke="&approach_roads;" stroke-width="1.2" stroke-dasharray="3,4" stroke-linecap="round" stroke-opacity="0.4"/>
780     </Rule>   
781</Style>
782<Layer name="minor-roads" status="on" srs="&osm2pgsql_projection;">
783    <StyleName>minor-roads</StyleName>
784    <Datasource>
785      <Parameter name="table">
786      (select way,highway,horse,bicycle,foot,construction,aeroway,
787       case when tunnel in ('yes','true','1') then 'yes'::text else tunnel end as tunnel,
788       case when bridge in ('yes','true','1','viaduct') then 'yes'::text else bridge end as bridge,
789       case when railway in ('spur','siding')
790              or (railway='rail' and service in ('spur','siding','yard'))
791            then 'spur-siding-yard'::text else railway end as railway,
792       case when service in ('parking_aisle','drive-through','driveway') then 'INT-minor'::text else service end as service
793       from &prefix;_line
794       where highway is not null
795          or aeroway in ('runway','taxiway')
796          or railway in ('light_rail','narrow_gauge','funicular','rail','subway','tram','spur','siding','platform','disused','abandoned','construction','miniature','turntable')
797       order by z_order) as roads
798      </Parameter>
799      &datasource-settings;
800    </Datasource>
801</Layer>
802
803
804<Style name="roads-text-name">
805    <Rule>
806      <Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
807      &min_z13;
808      &max_z13;
809      <TextSymbolizer size="8" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
810    </Rule>
811    <Rule>
812      <Filter>[highway] = 'secondary'</Filter>
813      &min_z13;
814      &max_z13;
815      <TextSymbolizer size="8" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
816    </Rule>
817    <Rule>
818      <Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
819      &min_z14;
820      &max_z14;
821      <TextSymbolizer size="9" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
822    </Rule>
823    <Rule>
824      <Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
825      &min_z15;
826      &max_z18;
827      <TextSymbolizer size="10" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
828    </Rule>
829    <Rule>
830      <Filter>[highway] = 'secondary'</Filter>
831      &min_z14;
832      &max_z14;
833      <TextSymbolizer size="9" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
834    </Rule><Rule>
835      <Filter>[highway] = 'secondary'</Filter>
836      &min_z15;
837      &max_z18;
838      <TextSymbolizer size="10" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
839    </Rule>
840    <Rule>
841      <Filter>[highway] = 'tertiary'</Filter>
842      &min_z15;
843      &max_z16;
844      <TextSymbolizer size="9" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
845    </Rule>
846    <Rule>
847      <Filter>[highway] = 'tertiary'</Filter>
848      &min_z17;
849      &max_z18;
850      <TextSymbolizer size="11" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
851    </Rule>
852    <Rule>
853      &min_z13;
854      &max_z15;
855      <Filter>[highway] = 'proposed' or [highway]='construction'</Filter>
856      <TextSymbolizer size="9" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
857    </Rule>
858    <Rule>
859      &min_z16;
860      &max_z18;
861      <Filter>[highway] = 'proposed' or [highway]='construction'</Filter>
862      <TextSymbolizer size="11" fill="&approach_road_text;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
863    </Rule>
864    <Rule>
865      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
866      &min_z15;
867      &max_z15;
868      <TextSymbolizer size="8" fill="&approach_road_text;" spacing="300" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
869    </Rule>
870    <Rule>
871      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
872      &min_z16;
873      &max_z16;
874      <TextSymbolizer size="9" fill="&approach_road_text;" spacing="300" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
875    </Rule>
876    <Rule>
877      <Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
878      &min_z17;
879      &max_z18;
880      <TextSymbolizer size="11" fill="&approach_road_text;" spacing="400" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
881    </Rule>
882
883    <!-- nop and debug from here -->
884    <Rule>
885      <ElseFilter/>
886      &min_z15;
887      &max_z16;
888      <TextSymbolizer size="19" fill="&approach_road_text_debug;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
889    </Rule>
890    <Rule>
891      <ElseFilter/>
892      &min_z17;
893      &max_z18;
894      <TextSymbolizer size="21" fill="&approach_road_text_debug;" placement="line" fontset-name="book-fonts">[name]</TextSymbolizer>
895    </Rule>
896</Style>
897<!--
898<Layer name="roads-text-name" status="on" srs="&osm2pgsql_projection;">
899     <StyleName>roads-text-name</StyleName>
900     <Datasource>
901      <Parameter name="table">
902      (select way,highway,name
903       from &prefix;_line
904       where waterway IS NULL
905         and leisure IS NULL
906         and landuse IS NULL
907         and power IS NULL
908         and not (highway='track' and tracktype in ('grade2','grade3','grade4','grade5'))
909         and name is not null
910      ) as roads
911      </Parameter>
912      &datasource-settings;
913    </Datasource>
914</Layer>
915 -->
916<Layer name="roads-text-name" status="on" srs="&osm2pgsql_projection;">
917     <StyleName>roads-text-name</StyleName>
918     <Datasource>
919      <Parameter name="table">
920      (select way,highway,name
921       from &prefix;_line_join
922       where name is not null
923      ) as roads
924      </Parameter>
925      &datasource-settings;
926    </Datasource>
927</Layer>
928</Map>
Note: See TracBrowser for help on using the repository browser.