Skip to content

Commit 16ffcba

Browse files
committed
control maps
br oc eu langages
1 parent 77c8a3a commit 16ffcba

File tree

6 files changed

+985
-19
lines changed

6 files changed

+985
-19
lines changed

control_map.mml renamed to osm_br_control.mml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,23 @@
2222

2323

2424
{
25-
"id": "admin_boudaries",
26-
"class": "",
25+
"id": "land_high",
26+
"name": "land_high",
27+
"class": "shp",
2728
"Datasource": {
28-
"type": "postgis",
29-
"host": "db.openstreetmap.world",
30-
"user": "osmbr",
31-
"password": "m4d31nbr31zh",
32-
"dbname": "osm",
33-
"table": "( SELECT osm_id, way FROM planet_osm_line WHERE admin_level = '8' AND boundary = 'administrative' ) AS data",
34-
"key_field": "osm_id",
35-
"geometry_field": "way",
36-
"asynchronous_request": "true",
37-
"max_async_connection": "4",
38-
"simplify_geometries": "true",
39-
"extent_cache": "auto",
40-
"extent": "-1363990,3994624,1824475,9411676"
29+
"file": "/data/styles/data/land-polygons-split-3857/land_polygons.shp",
30+
"type": "shape",
31+
"srid": "3857"
4132
},
42-
"geometry": "linestring",
33+
"geometry": "polygon",
4334
"srs-name": "3857",
4435
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
45-
"extent": [ -10, 34, 20, 70 ],
36+
"extent": [
37+
-180,
38+
-85.051,
39+
180,
40+
83.6664731
41+
],
4642
"advanced": {}
4743
},
4844

@@ -132,7 +128,7 @@ WHERE name IS NOT NULL AND highway IS NOT NULL
132128
],
133129
"scale": 1,
134130
"metatile": 4,
135-
"name": "osmbr-control-map",
136-
"description": "osmbr-control-map",
131+
"name": "osm-br-control-map",
132+
"description": "osm-br-control-map",
137133
"attribution": ""
138134
}

osm_br_control.xml

Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE Map[]>
3+
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
4+
<Parameters>
5+
<Parameter name="bounds">-180,-85.0511,180,85.0511</Parameter>
6+
<Parameter name="center">-2.96,48.03,8</Parameter>
7+
<Parameter name="format"><![CDATA[png]]></Parameter>
8+
<Parameter name="minzoom">10</Parameter>
9+
<Parameter name="maxzoom">18</Parameter>
10+
<Parameter name="scale">1</Parameter>
11+
<Parameter name="metatile">4</Parameter>
12+
<Parameter name="name"><![CDATA[osm-br-control-map]]></Parameter>
13+
<Parameter name="description"><![CDATA[osm-br-control-map]]></Parameter>
14+
</Parameters>
15+
<Style filter-mode="first" name="land_high">
16+
<Rule>
17+
<MaxScaleDenominator>750000</MaxScaleDenominator>
18+
<PolygonSymbolizer fill="#ffffff" fill-opacity="0.25" />
19+
</Rule>
20+
</Style>
21+
<Layer name="land_high" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
22+
<StyleName><![CDATA[land_high]]></StyleName>
23+
<Datasource>
24+
<Parameter name="file"><![CDATA[/data/styles/data/land-polygons-split-3857/land_polygons.shp]]></Parameter>
25+
<Parameter name="type"><![CDATA[shape]]></Parameter>
26+
<Parameter name="srid"><![CDATA[3857]]></Parameter>
27+
</Datasource>
28+
</Layer>
29+
<Style filter-mode="first" name="places" opacity="0.5">
30+
<Rule>
31+
<MaxScaleDenominator>50000</MaxScaleDenominator>
32+
<Filter><![CDATA[([check] = 'null')]]></Filter>
33+
<MarkersSymbolizer fill="#a90825" stroke-opacity="0.75" width="10" />
34+
</Rule>
35+
<Rule>
36+
<MaxScaleDenominator>100000</MaxScaleDenominator>
37+
<MinScaleDenominator>50000</MinScaleDenominator>
38+
<Filter><![CDATA[([check] = 'null')]]></Filter>
39+
<MarkersSymbolizer fill="#a90825" stroke-opacity="0.6" width="8" />
40+
</Rule>
41+
<Rule>
42+
<MaxScaleDenominator>200000</MaxScaleDenominator>
43+
<MinScaleDenominator>100000</MinScaleDenominator>
44+
<Filter><![CDATA[([check] = 'null')]]></Filter>
45+
<MarkersSymbolizer fill="#a90825" stroke-opacity="0.3" width="6" />
46+
</Rule>
47+
<Rule>
48+
<MaxScaleDenominator>400000</MaxScaleDenominator>
49+
<MinScaleDenominator>200000</MinScaleDenominator>
50+
<Filter><![CDATA[([check] = 'null')]]></Filter>
51+
<MarkersSymbolizer fill="#a90825" stroke-opacity="0" width="4" />
52+
</Rule>
53+
<Rule>
54+
<MaxScaleDenominator>750000</MaxScaleDenominator>
55+
<MinScaleDenominator>400000</MinScaleDenominator>
56+
<Filter><![CDATA[([check] = 'null')]]></Filter>
57+
<MarkersSymbolizer fill="#a90825" stroke-opacity="0" width="2" />
58+
</Rule>
59+
<Rule>
60+
<MaxScaleDenominator>50000</MaxScaleDenominator>
61+
<Filter><![CDATA[([check] = 'done')]]></Filter>
62+
<MarkersSymbolizer fill="#3d9733" stroke-opacity="0.75" width="10" />
63+
</Rule>
64+
<Rule>
65+
<MaxScaleDenominator>100000</MaxScaleDenominator>
66+
<MinScaleDenominator>50000</MinScaleDenominator>
67+
<Filter><![CDATA[([check] = 'done')]]></Filter>
68+
<MarkersSymbolizer fill="#3d9733" stroke-opacity="0.6" width="8" />
69+
</Rule>
70+
<Rule>
71+
<MaxScaleDenominator>200000</MaxScaleDenominator>
72+
<MinScaleDenominator>100000</MinScaleDenominator>
73+
<Filter><![CDATA[([check] = 'done')]]></Filter>
74+
<MarkersSymbolizer fill="#3d9733" stroke-opacity="0.3" width="6" />
75+
</Rule>
76+
<Rule>
77+
<MaxScaleDenominator>400000</MaxScaleDenominator>
78+
<MinScaleDenominator>200000</MinScaleDenominator>
79+
<Filter><![CDATA[([check] = 'done')]]></Filter>
80+
<MarkersSymbolizer fill="#3d9733" stroke-opacity="0" width="4" />
81+
</Rule>
82+
<Rule>
83+
<MaxScaleDenominator>750000</MaxScaleDenominator>
84+
<MinScaleDenominator>400000</MinScaleDenominator>
85+
<Filter><![CDATA[([check] = 'done')]]></Filter>
86+
<MarkersSymbolizer fill="#3d9733" stroke-opacity="0" width="2" />
87+
</Rule>
88+
<Rule>
89+
<MaxScaleDenominator>50000</MaxScaleDenominator>
90+
<MarkersSymbolizer stroke-opacity="0.75" width="10" />
91+
</Rule>
92+
<Rule>
93+
<MaxScaleDenominator>100000</MaxScaleDenominator>
94+
<MinScaleDenominator>50000</MinScaleDenominator>
95+
<MarkersSymbolizer stroke-opacity="0.6" width="8" />
96+
</Rule>
97+
<Rule>
98+
<MaxScaleDenominator>200000</MaxScaleDenominator>
99+
<MinScaleDenominator>100000</MinScaleDenominator>
100+
<MarkersSymbolizer stroke-opacity="0.3" width="6" />
101+
</Rule>
102+
<Rule>
103+
<MaxScaleDenominator>400000</MaxScaleDenominator>
104+
<MinScaleDenominator>200000</MinScaleDenominator>
105+
<MarkersSymbolizer stroke-opacity="0" width="4" />
106+
</Rule>
107+
<Rule>
108+
<MaxScaleDenominator>750000</MaxScaleDenominator>
109+
<MinScaleDenominator>400000</MinScaleDenominator>
110+
<MarkersSymbolizer stroke-opacity="0" width="2" />
111+
</Rule>
112+
</Style>
113+
<Layer name="places" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
114+
<StyleName><![CDATA[places]]></StyleName>
115+
<Datasource>
116+
<Parameter name="type"><![CDATA[postgis]]></Parameter>
117+
<Parameter name="host"><![CDATA[db.openstreetmap.world]]></Parameter>
118+
<Parameter name="user"><![CDATA[osmbr]]></Parameter>
119+
<Parameter name="password"><![CDATA[m4d31nbr31zh]]></Parameter>
120+
<Parameter name="dbname"><![CDATA[osm]]></Parameter>
121+
<Parameter name="table"><![CDATA[( SELECT a.osm_id, a.name, b.local_name, CASE WHEN b.local_name IS NULL THEN 'null' ELSE 'done' END AS check, a.way FROM planet_osm_point a FULL JOIN ( SELECT osm_id, tags -> 'name:br' AS local_name FROM planet_osm_point WHERE (tags -> 'name:br'::text IS NOT NULL) ) AS b ON a.osm_id = b.osm_id WHERE name IS NOT NULL AND place IS NOT NULL ) AS data]]></Parameter>
122+
<Parameter name="key_field"><![CDATA[osm_id]]></Parameter>
123+
<Parameter name="geometry_field"><![CDATA[way]]></Parameter>
124+
<Parameter name="asynchronous_request"><![CDATA[true]]></Parameter>
125+
<Parameter name="max_async_connection"><![CDATA[4]]></Parameter>
126+
<Parameter name="simplify_geometries"><![CDATA[true]]></Parameter>
127+
<Parameter name="extent_cache"><![CDATA[auto]]></Parameter>
128+
<Parameter name="extent"><![CDATA[-1363990,3994624,1824475,9411676]]></Parameter>
129+
</Datasource>
130+
</Layer>
131+
<Style filter-mode="first" name="ways" opacity="0.5">
132+
<Rule>
133+
<MaxScaleDenominator>50000</MaxScaleDenominator>
134+
<Filter><![CDATA[([check] = 'null')]]></Filter>
135+
<LineSymbolizer stroke="#a90825" stroke-width="2.5" />
136+
</Rule>
137+
<Rule>
138+
<MaxScaleDenominator>100000</MaxScaleDenominator>
139+
<MinScaleDenominator>50000</MinScaleDenominator>
140+
<Filter><![CDATA[([check] = 'null')]]></Filter>
141+
<LineSymbolizer stroke="#a90825" stroke-width="1.5" />
142+
</Rule>
143+
<Rule>
144+
<MaxScaleDenominator>200000</MaxScaleDenominator>
145+
<MinScaleDenominator>100000</MinScaleDenominator>
146+
<Filter><![CDATA[([check] = 'null')]]></Filter>
147+
<LineSymbolizer stroke="#a90825" stroke-width="1" />
148+
</Rule>
149+
<Rule>
150+
<MaxScaleDenominator>400000</MaxScaleDenominator>
151+
<MinScaleDenominator>200000</MinScaleDenominator>
152+
<Filter><![CDATA[([check] = 'null')]]></Filter>
153+
<LineSymbolizer stroke="#a90825" stroke-width="0.5" />
154+
</Rule>
155+
<Rule>
156+
<MaxScaleDenominator>750000</MaxScaleDenominator>
157+
<MinScaleDenominator>400000</MinScaleDenominator>
158+
<Filter><![CDATA[([check] = 'null')]]></Filter>
159+
<LineSymbolizer stroke="#a90825" stroke-width="0.2" />
160+
</Rule>
161+
<Rule>
162+
<MaxScaleDenominator>50000</MaxScaleDenominator>
163+
<Filter><![CDATA[([check] = 'done')]]></Filter>
164+
<LineSymbolizer stroke="#3d9733" stroke-width="2.5" />
165+
</Rule>
166+
<Rule>
167+
<MaxScaleDenominator>100000</MaxScaleDenominator>
168+
<MinScaleDenominator>50000</MinScaleDenominator>
169+
<Filter><![CDATA[([check] = 'done')]]></Filter>
170+
<LineSymbolizer stroke="#3d9733" stroke-width="1.5" />
171+
</Rule>
172+
<Rule>
173+
<MaxScaleDenominator>200000</MaxScaleDenominator>
174+
<MinScaleDenominator>100000</MinScaleDenominator>
175+
<Filter><![CDATA[([check] = 'done')]]></Filter>
176+
<LineSymbolizer stroke="#3d9733" stroke-width="1" />
177+
</Rule>
178+
<Rule>
179+
<MaxScaleDenominator>400000</MaxScaleDenominator>
180+
<MinScaleDenominator>200000</MinScaleDenominator>
181+
<Filter><![CDATA[([check] = 'done')]]></Filter>
182+
<LineSymbolizer stroke="#3d9733" stroke-width="0.5" />
183+
</Rule>
184+
<Rule>
185+
<MaxScaleDenominator>750000</MaxScaleDenominator>
186+
<MinScaleDenominator>400000</MinScaleDenominator>
187+
<Filter><![CDATA[([check] = 'done')]]></Filter>
188+
<LineSymbolizer stroke="#3d9733" stroke-width="0.2" />
189+
</Rule>
190+
<Rule>
191+
<MaxScaleDenominator>50000</MaxScaleDenominator>
192+
<LineSymbolizer stroke-width="2.5" />
193+
</Rule>
194+
<Rule>
195+
<MaxScaleDenominator>100000</MaxScaleDenominator>
196+
<MinScaleDenominator>50000</MinScaleDenominator>
197+
<LineSymbolizer stroke-width="1.5" />
198+
</Rule>
199+
<Rule>
200+
<MaxScaleDenominator>200000</MaxScaleDenominator>
201+
<MinScaleDenominator>100000</MinScaleDenominator>
202+
<LineSymbolizer stroke-width="1" />
203+
</Rule>
204+
<Rule>
205+
<MaxScaleDenominator>400000</MaxScaleDenominator>
206+
<MinScaleDenominator>200000</MinScaleDenominator>
207+
<LineSymbolizer stroke-width="0.5" />
208+
</Rule>
209+
<Rule>
210+
<MaxScaleDenominator>750000</MaxScaleDenominator>
211+
<MinScaleDenominator>400000</MinScaleDenominator>
212+
<LineSymbolizer stroke-width="0.2" />
213+
</Rule>
214+
</Style>
215+
<Layer name="ways" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
216+
<StyleName><![CDATA[ways]]></StyleName>
217+
<Datasource>
218+
<Parameter name="type"><![CDATA[postgis]]></Parameter>
219+
<Parameter name="host"><![CDATA[db.openstreetmap.world]]></Parameter>
220+
<Parameter name="user"><![CDATA[osmbr]]></Parameter>
221+
<Parameter name="password"><![CDATA[m4d31nbr31zh]]></Parameter>
222+
<Parameter name="dbname"><![CDATA[osm]]></Parameter>
223+
<Parameter name="table"><![CDATA[( SELECT a.osm_id, a.name, b.local_name, CASE WHEN b.local_name IS NULL THEN 'null' ELSE 'done' END AS check, a.way FROM planet_osm_line a FULL JOIN ( SELECT osm_id, tags -> 'name:br' AS local_name FROM planet_osm_line WHERE (tags -> 'name:br'::text IS NOT NULL) ) AS b ON a.osm_id = b.osm_id WHERE name IS NOT NULL AND highway IS NOT NULL ) AS data]]></Parameter>
224+
<Parameter name="key_field"><![CDATA[osm_id]]></Parameter>
225+
<Parameter name="geometry_field"><![CDATA[way]]></Parameter>
226+
<Parameter name="asynchronous_request"><![CDATA[true]]></Parameter>
227+
<Parameter name="max_async_connection"><![CDATA[4]]></Parameter>
228+
<Parameter name="simplify_geometries"><![CDATA[true]]></Parameter>
229+
<Parameter name="extent_cache"><![CDATA[auto]]></Parameter>
230+
<Parameter name="extent"><![CDATA[-1363990,3994624,1824475,9411676]]></Parameter>
231+
</Datasource>
232+
</Layer>
233+
</Map>
234+

0 commit comments

Comments
 (0)