Add park layer

This commit is contained in:
Lukas Martinelli
2016-11-28 19:16:27 +00:00
parent 327bdc7313
commit 09dddebac4
5 changed files with 145 additions and 0 deletions

22
layers/park/park.yaml Normal file
View File

@@ -0,0 +1,22 @@
layer:
id: "park"
description: |
Landuse is used to describe use of land by humans.At lower zoom levels this is
from Natural Earth data for residential (urban) areas and at higher zoom levels mostly OSM `landuse` tags.
buffer_size: 4
fields:
class: |
More generalized groups of either `park`, `school`, `hospital`, `railway`,
`cemetery`, `military`, `residential`. Use this to assign general for landuse.
subclass: |
Original value of either the `amenity`, `landuse`, `leisure` or `boundary` tag.
Use this to do more precise styling.
datasource:
geometry_field: geometry
query: (SELECT geometry, class, subclass FROM layer_park(!bbox!, z(!scale_denominator!))) AS t
schema:
- ./class.sql
- ./layer.sql
datasources:
- type: imposm3
mapping_file: ./mapping.yaml