Extend docs for park, landuse, landcover

This commit is contained in:
Lukas Martinelli 2016-11-30 09:31:54 +00:00
parent 7ca0fc6646
commit 4a902ca273
3 changed files with 19 additions and 18 deletions

View File

@ -2,16 +2,17 @@ layer:
id: "landcover" id: "landcover"
description: | description: |
Landcover is used to describe the physical material at the surface of the earth. At lower zoom levels this is Landcover is used to describe the physical material at the surface of the earth. At lower zoom levels this is
from Natural Earth data for glaciers and ice shelves and at higher zoom levels the landcover is implied from Natural Earth data for glaciers and ice shelves and at higher zoom levels the [landcover is [implied by OSM tags](http://wiki.openstreetmap.org/wiki/Landcover). The most common use case for this layer
by OSM tags (like `landuse` or `natural`). is to style wood (`class=wood`) and grass (`class=`grass`) areas.
buffer_size: 4 buffer_size: 4
fields: fields:
class: | class: |
More generalized groups of either `farmland`, `ice`, `wood`, `grass` or `wetland`. More generalized groups of either `farmland`, `ice`, `wood`, `grass`
or `wetland`.
Use this to assign general colors to the landcover. Use this to assign general colors to the landcover.
subclass: | subclass: |
Original value of either the `landuse`, `natural` or `wetland` tag. Original value of either the `landuse`, `natural`, `leisure` or
Use this to do more precise styling. `wetland` tag. Use this to do more precise styling.
datasource: datasource:
geometry_field: geometry geometry_field: geometry
query: (SELECT geometry, class, subclass FROM layer_landcover(!bbox!, z(!scale_denominator!))) AS t query: (SELECT geometry, class, subclass FROM layer_landcover(!bbox!, z(!scale_denominator!))) AS t

View File

@ -6,14 +6,19 @@ layer:
buffer_size: 4 buffer_size: 4
fields: fields:
class: | class: |
More generalized groups of either `park`, `school`, `hospital`, `railway`, Original value of either the `amenity`, `landuse`, `leisure`
`cemetery`, `military`, `residential`. Use this to assign general for landuse. tag. Use this to assign special colors to areas.
subclass: | Either `school`, `university`, `kindergarten`, `college`,
Original value of either the `amenity`, `landuse`, `leisure` or `boundary` tag. `library`, `hospital` (from the
Use this to do more precise styling. [`amenity`](http://wiki.openstreetmap.org/wiki/Key:amenity) key)
or `railway`, `cemetery`, `military`, `residential`,
`commercial`, `industrial`, `retail` (from the
[`landuse`](http://wiki.openstreetmap.org/wiki/Key:landuse) key)
as well as `stadium` (from the
[`leisure`](http://wiki.openstreetmap.org/wiki/Key:leisure) key).
datasource: datasource:
geometry_field: geometry geometry_field: geometry
query: (SELECT geometry, class, subclass FROM layer_landuse(!bbox!, z(!scale_denominator!))) AS t query: (SELECT geometry, class FROM layer_landuse(!bbox!, z(!scale_denominator!))) AS t
schema: schema:
- ./landuse.sql - ./landuse.sql
datasources: datasources:

View File

@ -1,16 +1,11 @@
layer: layer:
id: "park" id: "park"
description: | description: |
Landuse is used to describe use of land by humans.At lower zoom levels this is The park layer contains parks from OpenStreetMap tagged with either [`boundary=national_park`](http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dnational_park) or [`leisure=nature_reserve`](http://wiki.openstreetmap.org/wiki/Tag:leisure%3Dnature_reserve).
from Natural Earth data for residential (urban) areas and at higher zoom levels mostly OSM `landuse` tags.
buffer_size: 4 buffer_size: 4
fields: fields:
class: | class: |
More generalized groups of either `park`, `school`, `hospital`, `railway`, Either `national_park` or `nature_reserve`.
`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: datasource:
geometry_field: geometry geometry_field: geometry
query: (SELECT geometry, class FROM layer_park(!bbox!, z(!scale_denominator!))) AS t query: (SELECT geometry, class FROM layer_park(!bbox!, z(!scale_denominator!))) AS t