-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin8.xml
117 lines (110 loc) · 4.51 KB
/
admin8.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
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[
<!ENTITY db_settings SYSTEM "config/db_settings.inc.xml">
<!ENTITY font_settings SYSTEM "config/font_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">
&font_settings;
<!--
<Style name="admin2">
<Rule>
<MaxScaleDenominator>100000</MaxScaleDenominator>
<PolygonSymbolizer>
<CssParameter name="fill">#b0afaf</CssParameter>
<CssParameter name="fill-opacity">0.7</CssParameter>
</PolygonSymbolizer>
</Rule>
</Style>
-->
<!--
Pour indiquer les bordures de communes
-->
<Style name="admin_segment">
<Rule>
<MaxScaleDenominator>400000</MaxScaleDenominator>
<LineSymbolizer stroke="#FF0000" stroke-width="1" stroke-opacity="1"/></Rule>
</Style>
<!--remplissage polygones -->
<Style name="admin">
<Rule>
<!--moins Z semaine -->
<MaxScaleDenominator>400000</MaxScaleDenominator>
<Filter>[age] < 6020</Filter>
<PolygonSymbolizer fill-opacity="0.4" fill="#ba00b8"/></Rule>
<Rule>
<!--moins Y mois -->
<MaxScaleDenominator>400000</MaxScaleDenominator>
<Filter>[age] > 6020 and [age] < 25800 </Filter>
<PolygonSymbolizer fill-opacity="0.4" fill="#f8a403"/></Rule>
<Rule>
<!--moins X mois-->
<MaxScaleDenominator>400000</MaxScaleDenominator>
<Filter>[age] > 25800 and [age] < 76800 </Filter>
<PolygonSymbolizer fill-opacity="0.4" fill="#f8f503"/></Rule>
<Rule>
<Filter>[age] > 76800</Filter>
<!-- Le reste -->
<MaxScaleDenominator>400000</MaxScaleDenominator>
<PolygonSymbolizer fill-opacity="0.4" fill="#00FF00"/></Rule>
<!-- bordures des polygones -->
<!-- Nom des polygones -->
<Rule>
<MaxScaleDenominator>400000</MaxScaleDenominator>
<TextSymbolizer size="9" fill="black" fontset-name="fontset-bold" halo-radius="1" wrap-width="50">[name]</TextSymbolizer>
</Rule>
<Rule>
<MaxScaleDenominator>400000</MaxScaleDenominator>
<TextSymbolizer size="9" fill="black" dy="20" fontset-name="fontset-bold" halo-radius="1" wrap-width="50">[ref]</TextSymbolizer>
</Rule>
</Style>
<!--remplissage polygones vus de loin -->
<Style name="admin_simplified">
<Rule>
<!--moins 1 semaine -->
<MinScaleDenominator>400000</MinScaleDenominator>
<Filter>[age] < 6020</Filter>
<PolygonSymbolizer fill-opacity="0.4" fill="#ba00b8"/></Rule>
<Rule>
<!--moins 1 mois -->
<MinScaleDenominator>400000</MinScaleDenominator>
<Filter>[age] > 6020 and [age] < 25800 </Filter>
<PolygonSymbolizer fill-opacity="0.4" fill="#f8a403"/></Rule>
<Rule>
<!--moins 3 mois-->
<MinScaleDenominator>400000</MinScaleDenominator>
<Filter>[age] > 25800 and [age] < 76800 </Filter>
<PolygonSymbolizer fill-opacity="0.4" fill="#f8f503"/></Rule>
<Rule>
<!-- Le reste -->
<MinScaleDenominator>400000</MinScaleDenominator>
<Filter>[age] > 76800 </Filter>
<PolygonSymbolizer fill-opacity="0.4" fill="#00FF00"/></Rule>
</Style>
<Layer name="admin" 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>admin</StyleName>
<StyleName>admin_segment</StyleName>
<Datasource>
&db_settings;
<Parameter name="table">
(select name,'insee:'||(tags->'ref:INSEE') as ref,way,osm_id-(select min(osm_id) from planet_osm_polygon) as age from planet_osm_polygon where admin_level='8' and boundary='administrative' and name!='' ) as admin</Parameter>
</Datasource>
</Layer>
<Layer name="admin_simplified" 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>admin_simplified</StyleName>
<Datasource>
&db_settings;
<Parameter name="table">
(select name,'insee:'||(tags->'ref:INSEE') as ref,way as way,osm_id-(select min(osm_id) from planet_osm_polygon) as age from planet_osm_polygon where admin_level='8' and boundary='administrative' and name!='' ) as admin</Parameter>
</Datasource>
</Layer>
<!--
<Layer name="admin2" 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>admin2</StyleName>
<Datasource>
&db_settings;
<Parameter name="table">
(select way from planet_osm_polygon where st_isvalid(way)='f' and ST_nrings(way)=1 and admin_level='8' and boundary='administrative' and name!='' ) as admin</Parameter>
</Datasource>
</Layer>
-->
</Map>