From 16ffcbad0037d8db7947907c7f3b6dbcb1218b2d Mon Sep 17 00:00:00 2001 From: MaelReboux Date: Sat, 1 Dec 2018 17:23:38 +0100 Subject: [PATCH] control maps br oc eu langages --- control_map.mml => osm_br_control.mml | 34 ++-- osm_br_control.xml | 234 ++++++++++++++++++++++++++ osm_eu_control.mml | 134 +++++++++++++++ osm_eu_control.xml | 234 ++++++++++++++++++++++++++ osm_oc_control.mml | 134 +++++++++++++++ osm_oc_control.xml | 234 ++++++++++++++++++++++++++ 6 files changed, 985 insertions(+), 19 deletions(-) rename control_map.mml => osm_br_control.mml (80%) create mode 100644 osm_br_control.xml create mode 100644 osm_eu_control.mml create mode 100644 osm_eu_control.xml create mode 100644 osm_oc_control.mml create mode 100644 osm_oc_control.xml diff --git a/control_map.mml b/osm_br_control.mml similarity index 80% rename from control_map.mml rename to osm_br_control.mml index ba20c84..9515c2d 100644 --- a/control_map.mml +++ b/osm_br_control.mml @@ -22,27 +22,23 @@ { - "id": "admin_boudaries", - "class": "", + "id": "land_high", + "name": "land_high", + "class": "shp", "Datasource": { - "type": "postgis", - "host": "db.openstreetmap.world", - "user": "osmbr", - "password": "m4d31nbr31zh", - "dbname": "osm", - "table": "( SELECT osm_id, way FROM planet_osm_line WHERE admin_level = '8' AND boundary = 'administrative' ) AS data", - "key_field": "osm_id", - "geometry_field": "way", - "asynchronous_request": "true", - "max_async_connection": "4", - "simplify_geometries": "true", - "extent_cache": "auto", - "extent": "-1363990,3994624,1824475,9411676" + "file": "/data/styles/data/land-polygons-split-3857/land_polygons.shp", + "type": "shape", + "srid": "3857" }, - "geometry": "linestring", + "geometry": "polygon", "srs-name": "3857", "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", - "extent": [ -10, 34, 20, 70 ], + "extent": [ + -180, + -85.051, + 180, + 83.6664731 + ], "advanced": {} }, @@ -132,7 +128,7 @@ WHERE name IS NOT NULL AND highway IS NOT NULL ], "scale": 1, "metatile": 4, - "name": "osmbr-control-map", - "description": "osmbr-control-map", + "name": "osm-br-control-map", + "description": "osm-br-control-map", "attribution": "" } diff --git a/osm_br_control.xml b/osm_br_control.xml new file mode 100644 index 0000000..f57038e --- /dev/null +++ b/osm_br_control.xml @@ -0,0 +1,234 @@ + + + + + -180,-85.0511,180,85.0511 + -2.96,48.03,8 + + 10 + 18 + 1 + 4 + + + + + + + + + + + + + + + + + + + + + + '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]]> + + + + + + + + + + + + + + + + + + + '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]]> + + + + + + + + + + + diff --git a/osm_eu_control.mml b/osm_eu_control.mml new file mode 100644 index 0000000..1dd3414 --- /dev/null +++ b/osm_eu_control.mml @@ -0,0 +1,134 @@ +{ + "bounds": [ + -180, + -85.0511, + 180, + 85.0511 + ], + "center": [ + -2.96, + 48.03, + 8 + ], + "format": "png", + "interactivity": false, + "minzoom": 10, + "maxzoom": 18, + "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", + "Stylesheet": [ + "control_map.mss" + ], + "Layer": [ + + + { + "id": "land_high", + "name": "land_high", + "class": "shp", + "Datasource": { + "file": "/data/styles/data/land-polygons-split-3857/land_polygons.shp", + "type": "shape", + "srid": "3857" + }, + "geometry": "polygon", + "srs-name": "3857", + "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", + "extent": [ + -180, + -85.051, + 180, + 83.6664731 + ], + "advanced": {} + }, + + { + "id": "places", + "class": "", + "Datasource": { + "type": "postgis", + "host": "db.openstreetmap.world", + "user": "osmbr", + "password": "m4d31nbr31zh", + "dbname": "osm", + "table": "( +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:eu' AS local_name + FROM planet_osm_point + WHERE (tags -> 'name:eu'::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", + "key_field": "osm_id", + "geometry_field": "way", + "asynchronous_request": "true", + "max_async_connection": "4", + "simplify_geometries": "true", + "extent_cache": "auto", + "extent": "-1363990,3994624,1824475,9411676" + }, + "geometry": "point", + "srs-name": "3857", + "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", + "extent": [ -10, 34, 20, 70 ], + "advanced": {} + }, + + { + "id": "ways", + "class": "", + "Datasource": { + "type": "postgis", + "host": "db.openstreetmap.world", + "user": "osmbr", + "password": "m4d31nbr31zh", + "dbname": "osm", + "table": "( +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:eu' AS local_name + FROM planet_osm_line + WHERE (tags -> 'name:eu'::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", + "key_field": "osm_id", + "geometry_field": "way", + "asynchronous_request": "true", + "max_async_connection": "4", + "simplify_geometries": "true", + "extent_cache": "auto", + "extent": "-1363990,3994624,1824475,9411676" + }, + "geometry": "linestring", + "srs-name": "3857", + "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", + "extent": [ -10, 34, 20, 70 ], + "advanced": {} + } + + + ], + "scale": 1, + "metatile": 4, + "name": "osm-eu-control-map", + "description": "osm-eu-control-map", + "attribution": "" +} diff --git a/osm_eu_control.xml b/osm_eu_control.xml new file mode 100644 index 0000000..0b58a63 --- /dev/null +++ b/osm_eu_control.xml @@ -0,0 +1,234 @@ + + + + + -180,-85.0511,180,85.0511 + -2.96,48.03,8 + + 10 + 18 + 1 + 4 + + + + + + + + + + + + + + + + + + + + + + 'name:eu' AS local_name FROM planet_osm_point WHERE (tags -> 'name:eu'::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]]> + + + + + + + + + + + + + + + + + + + 'name:eu' AS local_name FROM planet_osm_line WHERE (tags -> 'name:eu'::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]]> + + + + + + + + + + + diff --git a/osm_oc_control.mml b/osm_oc_control.mml new file mode 100644 index 0000000..73aaea9 --- /dev/null +++ b/osm_oc_control.mml @@ -0,0 +1,134 @@ +{ + "bounds": [ + -180, + -85.0511, + 180, + 85.0511 + ], + "center": [ + -2.96, + 48.03, + 8 + ], + "format": "png", + "interactivity": false, + "minzoom": 10, + "maxzoom": 18, + "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", + "Stylesheet": [ + "control_map.mss" + ], + "Layer": [ + + + { + "id": "land_high", + "name": "land_high", + "class": "shp", + "Datasource": { + "file": "/data/styles/data/land-polygons-split-3857/land_polygons.shp", + "type": "shape", + "srid": "3857" + }, + "geometry": "polygon", + "srs-name": "3857", + "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", + "extent": [ + -180, + -85.051, + 180, + 83.6664731 + ], + "advanced": {} + }, + + { + "id": "places", + "class": "", + "Datasource": { + "type": "postgis", + "host": "db.openstreetmap.world", + "user": "osmbr", + "password": "m4d31nbr31zh", + "dbname": "osm", + "table": "( +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:oc' AS local_name + FROM planet_osm_point + WHERE (tags -> 'name:oc'::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", + "key_field": "osm_id", + "geometry_field": "way", + "asynchronous_request": "true", + "max_async_connection": "4", + "simplify_geometries": "true", + "extent_cache": "auto", + "extent": "-1363990,3994624,1824475,9411676" + }, + "geometry": "point", + "srs-name": "3857", + "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", + "extent": [ -10, 34, 20, 70 ], + "advanced": {} + }, + + { + "id": "ways", + "class": "", + "Datasource": { + "type": "postgis", + "host": "db.openstreetmap.world", + "user": "osmbr", + "password": "m4d31nbr31zh", + "dbname": "osm", + "table": "( +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:oc' AS local_name + FROM planet_osm_line + WHERE (tags -> 'name:oc'::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", + "key_field": "osm_id", + "geometry_field": "way", + "asynchronous_request": "true", + "max_async_connection": "4", + "simplify_geometries": "true", + "extent_cache": "auto", + "extent": "-1363990,3994624,1824475,9411676" + }, + "geometry": "linestring", + "srs-name": "3857", + "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", + "extent": [ -10, 34, 20, 70 ], + "advanced": {} + } + + + ], + "scale": 1, + "metatile": 4, + "name": "osm-oc-control-map", + "description": "osm-oc-control-map", + "attribution": "" +} diff --git a/osm_oc_control.xml b/osm_oc_control.xml new file mode 100644 index 0000000..85595e7 --- /dev/null +++ b/osm_oc_control.xml @@ -0,0 +1,234 @@ + + + + + -180,-85.0511,180,85.0511 + -2.96,48.03,8 + + 10 + 18 + 1 + 4 + + + + + + + + + + + + + + + + + + + + + + 'name:oc' AS local_name FROM planet_osm_point WHERE (tags -> 'name:oc'::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]]> + + + + + + + + + + + + + + + + + + + 'name:oc' AS local_name FROM planet_osm_line WHERE (tags -> 'name:oc'::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]]> + + + + + + + + + + +