Skip to content

Commit

Permalink
Merge branch 'tree-layer' of https://github.com/nebulon42/openstreetm…
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsmelissen committed Oct 19, 2015
2 parents cba9d5b + 18165cb commit 982bc27
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
52 changes: 26 additions & 26 deletions project.mml
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
42 changes: 21 additions & 21 deletions project.yaml
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 982bc27

Please sign in to comment.