From 18165cb2d60e9113e8112b62c58eed35baf20f3d Mon Sep 17 00:00:00 2001 From: nebulon42 Date: Thu, 15 Oct 2015 21:43:57 +0200 Subject: [PATCH] move tree layer below placename layer (fixes #1470) --- project.mml | 52 ++++++++++++++++++++++++++-------------------------- project.yaml | 42 +++++++++++++++++++++--------------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/project.mml b/project.mml index a7a4263f8c..730c3023a9 100644 --- a/project.mml +++ b/project.mml @@ -1231,6 +1231,32 @@ }, "advanced": {} }, + { + "name": "trees", + "srs-name": "900913", + "geometry": "polygon", + "class": "", + "id": "trees", + "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", + "Datasource": { + "extent": "-20037508,-20037508,20037508,20037508", + "table": "(SELECT\n way, \"natural\"\n FROM planet_osm_point\n WHERE \"natural\" = 'tree'\nUNION ALL\nSELECT\n way, \"natural\"\n FROM planet_osm_line\n WHERE \"natural\" = 'tree_row'\n) AS trees", + "geometry_field": "way", + "type": "postgis", + "key_field": "", + "dbname": "gis" + }, + "extent": [ + -180, + -85.05112877980659, + 180, + 85.05112877980659 + ], + "properties": { + "minzoom": 16 + }, + "advanced": {} + }, { "name": "placenames-large", "srs-name": "900913", @@ -1362,32 +1388,6 @@ }, "advanced": {} }, - { - "name": "trees", - "srs-name": "900913", - "geometry": "polygon", - "class": "", - "id": "trees", - "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", - "Datasource": { - "extent": "-20037508,-20037508,20037508,20037508", - "table": "(SELECT\n way, \"natural\"\n FROM planet_osm_point\n WHERE \"natural\" = 'tree'\nUNION ALL\nSELECT\n way, \"natural\"\n FROM planet_osm_line\n WHERE \"natural\" = 'tree_row'\n) AS trees", - "geometry_field": "way", - "type": "postgis", - "key_field": "", - "dbname": "gis" - }, - "extent": [ - -180, - -85.05112877980659, - 180, - 85.05112877980659 - ], - "properties": { - "minzoom": 16 - }, - "advanced": {} - }, { "name": "amenity-points-poly", "srs-name": "900913", diff --git a/project.yaml b/project.yaml index 6c685e69be..cf78cec322 100644 --- a/project.yaml +++ b/project.yaml @@ -1442,6 +1442,27 @@ Layer: properties: minzoom: 10 advanced: {} + - id: "trees" + name: "trees" + class: "" + geometry: "polygon" + <<: *extents + Datasource: + <<: *osm2pgsql + table: |- + (SELECT + way, "natural" + FROM planet_osm_point + WHERE "natural" = 'tree' + UNION ALL + SELECT + way, "natural" + FROM planet_osm_line + WHERE "natural" = 'tree_row' + ) AS trees + properties: + minzoom: 16 + advanced: {} - id: "placenames-large" name: "placenames-large" class: "country state" @@ -1587,27 +1608,6 @@ Layer: properties: minzoom: 12 advanced: {} - - id: "trees" - name: "trees" - class: "" - geometry: "polygon" - <<: *extents - Datasource: - <<: *osm2pgsql - table: |- - (SELECT - way, "natural" - FROM planet_osm_point - WHERE "natural" = 'tree' - UNION ALL - SELECT - way, "natural" - FROM planet_osm_line - WHERE "natural" = 'tree_row' - ) AS trees - properties: - minzoom: 16 - advanced: {} - id: "amenity-points-poly" name: "amenity-points-poly" class: "points"