-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayer-adminborder.xml.ent
164 lines (163 loc) · 5.96 KB
/
layer-adminborder.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<Style name="admin-01234">
<Rule>
<Filter>[admin_level]='2' or [admin_level]='3'</Filter>
&maxscale_zoom4;
&minscale_zoom6;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-country-color;</CssParameter>
<CssParameter name="stroke-width">0.6</CssParameter>
<CssParameter name="stroke-opacity">0.2</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>[admin_level]='2' or [admin_level]='3'</Filter>
&maxscale_zoom7;
&minscale_zoom9;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-country-color;</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
<CssParameter name="stroke-opacity">0.2</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>[admin_level]='2'</Filter>
&maxscale_zoom10;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-country-color;</CssParameter>
<CssParameter name="stroke-width">6</CssParameter>
<CssParameter name="stroke-opacity">0.1</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>[admin_level]='3'</Filter>
&maxscale_zoom10;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-country-color;</CssParameter>
<CssParameter name="stroke-width">5</CssParameter>
<CssParameter name="stroke-dasharray">4,2</CssParameter>
<CssParameter name="stroke-opacity">0.1</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>[admin_level]='4'</Filter>
&maxscale_zoom4;
&minscale_zoom6;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-regional-color;</CssParameter>
<CssParameter name="stroke-width">0.6</CssParameter>
<CssParameter name="stroke-dasharray">4,3</CssParameter>
<CssParameter name="stroke-opacity">0.2</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>[admin_level]='4'</Filter>
&maxscale_zoom7;
&minscale_zoom10;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-regional-color;</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
<CssParameter name="stroke-dasharray">4,3</CssParameter>
<CssParameter name="stroke-opacity">0.2</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>[admin_level]='4'</Filter>
&maxscale_zoom11;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-regional-color;</CssParameter>
<CssParameter name="stroke-width">3</CssParameter>
<CssParameter name="stroke-dasharray">4,3</CssParameter>
<CssParameter name="stroke-opacity">0.2</CssParameter>
</LineSymbolizer>
</Rule>
</Style>
<Style name="admin-5678">
<Rule>
<Filter>[admin_level]='5'</Filter>
&maxscale_zoom11;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-regional-color;</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
<CssParameter name="stroke-dasharray">6,3,2,3,2,3</CssParameter>
<CssParameter name="stroke-opacity">0.3</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>[admin_level]='6'</Filter>
&maxscale_zoom11;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-regional-color;</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
<CssParameter name="stroke-dasharray">6,3,2,3</CssParameter>
<CssParameter name="stroke-opacity">0.3</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>[admin_level]='8' or [admin_level]='7'</Filter>
&maxscale_zoom12;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-regional-color;</CssParameter>
<CssParameter name="stroke-width">1.5</CssParameter>
<CssParameter name="stroke-dasharray">5,2</CssParameter>
<CssParameter name="stroke-opacity">0.3</CssParameter>
</LineSymbolizer>
</Rule>
</Style>
<Style name="admin-other">
<Rule>
<Filter>[admin_level]='10' or [admin_level]='9'</Filter>
&maxscale_zoom13;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-regional-color;</CssParameter>
<CssParameter name="stroke-width">2</CssParameter>
<CssParameter name="stroke-dasharray">2,3</CssParameter>
<CssParameter name="stroke-opacity">0.3</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
<Filter>not [admin_level] <>''</Filter>
&maxscale_zoom9;
&minscale_zoom11;
<LineSymbolizer>
<CssParameter name="stroke">&border-admin-regional-color;</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
<CssParameter name="stroke-opacity">0.2</CssParameter>
</LineSymbolizer>
</Rule>
</Style>
<Layer name="admin-01234" status="on" srs="&osm2pgsql_projection;">
<StyleName>admin-01234</StyleName>
<Datasource>
<Parameter name="table">
(select way,admin_level
from &prefix;_roads
where "boundary"='administrative'
and admin_level in ('0','1','2','3','4')
) as admin</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<Layer name="admin-5678" status="on" srs="&osm2pgsql_projection;">
<StyleName>admin-5678</StyleName>
<Datasource>
<Parameter name="table">
(select way,admin_level
from &prefix;_roads
where "boundary"='administrative'
and admin_level in ('5','6','7','8')
) as admin</Parameter>
&datasource-settings;
</Datasource>
</Layer>
<Layer name="admin-other" status="on" srs="&osm2pgsql_projection;">
<StyleName>admin-other</StyleName>
<Datasource>
<Parameter name="table">
(select way,admin_level
from &prefix;_roads
where "boundary"='administrative'
and (admin_level is null or admin_level not in ('0','1','2','3','4','5','6','7','8'))
) as admin</Parameter>
&datasource-settings;
</Datasource>
</Layer>