-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin_boundary.xml
51 lines (50 loc) · 2.14 KB
/
admin_boundary.xml
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[
<!ENTITY maxscale "500000">
<!ENTITY db_settings SYSTEM "config/db_settings.inc.xml">
]>
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over" background-color="transparent" minimum-version="0.7.2">
<Style name="boundary_ways">
<Rule>
<Filter>[admin_level]='2'</Filter>
<MaxScaleDenominator>&maxscale;</MaxScaleDenominator>
<LineSymbolizer stroke="#0000FF" stroke-width="2" stroke-opacity="1"/></Rule>
<Rule>
<Filter>[admin_level]='4'</Filter>
<MaxScaleDenominator>&maxscale;</MaxScaleDenominator>
<LineSymbolizer stroke="#00FF00" stroke-width="2" stroke-opacity="1"/></Rule>
<Rule>
<Filter>[admin_level]='5'</Filter>
<MaxScaleDenominator>&maxscale;</MaxScaleDenominator>
<LineSymbolizer stroke="#dec703" stroke-width="2" stroke-opacity="1"/></Rule>
<Rule>
<Filter>[admin_level]='6'</Filter>
<MaxScaleDenominator>&maxscale;</MaxScaleDenominator>
<LineSymbolizer stroke="#0000ff" stroke-width="2" stroke-opacity="1"/></Rule>
<Rule>
<Filter>[admin_level]='7'</Filter>
<MaxScaleDenominator>&maxscale;</MaxScaleDenominator>
<LineSymbolizer stroke="#FF1b13" stroke-width="2" stroke-opacity="1"/></Rule>
<Rule>
<Filter>[admin_level]='8'</Filter>
<MaxScaleDenominator>&maxscale;</MaxScaleDenominator>
<LineSymbolizer stroke="#FF0000" stroke-width="2" stroke-opacity="1"/></Rule>
<Rule>
<Filter>[admin_level]='10'</Filter>
<MaxScaleDenominator>&maxscale;</MaxScaleDenominator>
<LineSymbolizer stroke="#03b0de" stroke-width="2" stroke-opacity="1"/></Rule>
<Rule>
<ElseFilter/>
<MaxScaleDenominator>&maxscale;</MaxScaleDenominator>
<LineSymbolizer stroke="#000000" stroke-width="2" stroke-opacity="1"/></Rule>
</Style>
<Layer name="boundary_ways" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
<StyleName>boundary_ways</StyleName>
<Datasource>
&db_settings;
<Parameter name="table">
(select way,admin_level from planet_osm_line where boundary='administrative') as admin
</Parameter>
</Datasource>
</Layer>
</Map>