-
Notifications
You must be signed in to change notification settings - Fork 1
/
layer-roadnames.xml.ent
98 lines (97 loc) · 3.72 KB
/
layer-roadnames.xml.ent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<Style name="roads-text">
<Rule>
<Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
&maxscale_zoom14;
&minscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="black" halo_radius="1" placement="line"/>
</Rule>
<Rule>
<Filter>[highway] = 'trunk' or [highway] = 'primary'</Filter>
&maxscale_zoom15;
&minscale_zoom18;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="black" halo_radius="1" placement="line"/>
</Rule>
<Rule>
<Filter>[highway] = 'secondary'</Filter>
&maxscale_zoom14;
&minscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="black" halo_radius="1" placement="line"/>
</Rule>
<Rule>
<Filter>[highway] = 'secondary'</Filter>
&maxscale_zoom15;
&minscale_zoom18;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="black" halo_radius="1" placement="line"/>
</Rule>
<Rule>
<Filter>[highway] = 'tertiary'</Filter>
&maxscale_zoom15;
&minscale_zoom16;
<TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="black" halo_radius="1" placement="line" />
</Rule>
<Rule>
<Filter>[highway] = 'tertiary'</Filter>
&maxscale_zoom17;
&minscale_zoom18;
<TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="black" halo_radius="1" placement="line" />
</Rule>
<Rule>
&maxscale_zoom15;
&minscale_zoom15;
<Filter>[highway] = 'proposed' or [highway]='construction'</Filter>
<TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="black" halo_radius="1" placement="line" />
</Rule>
<Rule>
&maxscale_zoom16;
&minscale_zoom18;
<Filter>[highway] = 'proposed' or [highway]='construction'</Filter>
<TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="black" halo_radius="1" placement="line" />
</Rule>
<Rule>
<Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
&maxscale_zoom15;
&minscale_zoom15;
<TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="black" halo_radius="1" spacing="300" placement="line" />
</Rule>
<Rule>
<Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
&maxscale_zoom16;
&minscale_zoom16;
<TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="black" halo_radius="1" spacing="300" placement="line" />
</Rule>
<Rule>
<Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
&maxscale_zoom17;
&minscale_zoom18;
<TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="black" halo_radius="1" spacing="400" placement="line" />
</Rule>
<Rule>
<ElseFilter/>
&maxscale_zoom15;
&minscale_zoom16;
<TextSymbolizer name="name" fontset_name="book-fonts" size="9" fill="black" halo_radius="1" placement="line" />
</Rule>
<Rule>
<ElseFilter/>
&maxscale_zoom17;
&minscale_zoom18;
<TextSymbolizer name="name" fontset_name="book-fonts" size="11" fill="black" halo_radius="1" placement="line" />
</Rule>
</Style>
<Layer name="planet roads text osm" status="on" srs="&osm2pgsql_projection;">
<StyleName>roads-text</StyleName>
<Datasource>
<Parameter name="table">
(select way,highway,aeroway,name
from &prefix;_line
where waterway IS NULL
and leisure IS NULL
and landuse IS NULL
and boundary IS NULL
and place IS NULL
and (name is not null or ref is not null)
) as roads
</Parameter>
&datasource-settings;
</Datasource>
</Layer>