2016-10-10 18:37:23 +00:00
layer :
id : "landcover"
2021-11-05 09:04:54 +00:00
requires :
tables :
2022-08-02 12:22:58 +00:00
- ne_10m_antarctic_ice_shelves_polys
- ne_10m_glaciated_areas
2021-11-05 09:04:54 +00:00
- ne_50m_antarctic_ice_shelves_polys
2022-08-02 12:22:58 +00:00
- ne_50m_glaciated_areas
- ne_110m_glaciated_areas
2016-10-30 15:07:47 +00:00
description : |
Landcover is used to describe the physical material at the surface of the earth. At lower zoom levels this is
2016-12-08 20:47:58 +00:00
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
is to style wood (`class=wood`) and grass (`class=grass`) areas.
2016-10-10 18:37:23 +00:00
buffer_size : 4
2016-10-30 15:07:47 +00:00
fields :
2016-11-30 11:20:59 +00:00
class :
description : |
Use the **class** to assign natural colors for **landcover**.
values :
2019-10-26 08:28:51 +00:00
farmland :
subclass : [ 'farmland' , 'farm' , 'orchard' , 'vineyard' , 'plant_nursery' ]
ice :
subclass : [ 'glacier' , 'ice_shelf' ]
wood :
subclass : [ 'wood' , 'forest' ]
rock :
subclass : [ 'bare_rock' , 'scree' ]
grass :
2022-06-01 16:20:35 +00:00
subclass : [ 'fell' , 'grassland' , 'heath' , 'scrub' , 'shrubbery' , 'tundra' , 'grass' , 'meadow' , 'allotments' , 'park' , 'village_green' , 'recreation_ground' , 'garden' , 'golf_course' ]
2019-10-26 08:28:51 +00:00
wetland :
subclass : [ 'wetland' , 'bog' , 'swamp' , 'wet_meadow' , 'marsh' , 'reedbed' , 'saltern' , 'tidalflat' , 'saltmarsh' , 'mangrove' ]
sand :
subclass : [ 'beach' , 'sand' , 'dune' ]
2016-11-30 11:20:59 +00:00
subclass :
description : |
Use **subclass** to do more precise styling.
Original value of either the
[ `natural`](http://wiki.openstreetmap.org/wiki/Key:natural),
[ `landuse`](http://wiki.openstreetmap.org/wiki/Key:landuse),
2016-12-08 20:47:58 +00:00
[ `leisure`](http://wiki.openstreetmap.org/wiki/Key:leisure),
2016-11-30 11:20:59 +00:00
or [`wetland`](http://wiki.openstreetmap.org/wiki/Key:wetland) tag.
values :
- allotments
2019-05-01 05:45:57 +00:00
- bare_rock
- beach
- bog
2019-08-30 20:49:47 +00:00
- dune
2019-08-30 20:59:23 +00:00
- scrub
2022-06-01 16:20:35 +00:00
- shrubbery
2016-11-30 11:20:59 +00:00
- farm
- farmland
2019-08-30 20:59:23 +00:00
- fell
2016-11-30 11:20:59 +00:00
- forest
2017-11-08 12:45:27 +00:00
- garden
2019-05-01 05:45:57 +00:00
- glacier
- grass
2016-11-30 11:20:59 +00:00
- grassland
2019-11-14 20:36:17 +00:00
- golf_course
2019-08-30 20:59:23 +00:00
- heath
2019-05-01 05:45:57 +00:00
- mangrove
2016-11-30 11:20:59 +00:00
- marsh
2019-05-01 05:45:57 +00:00
- meadow
- orchard
- park
- plant_nursery
- recreation_ground
2016-11-30 11:20:59 +00:00
- reedbed
- saltern
- saltmarsh
2018-02-01 03:51:51 +00:00
- sand
2019-05-01 05:45:57 +00:00
- scree
- swamp
- tidalflat
2019-08-30 20:59:23 +00:00
- tundra
2019-05-01 05:45:57 +00:00
- village_green
- vineyard
- wet_meadow
- wetland
- wood
2016-10-10 18:37:23 +00:00
datasource :
2016-10-24 12:27:51 +00:00
geometry_field : geometry
2016-10-25 17:15:51 +00:00
query : (SELECT geometry, class, subclass FROM layer_landcover(!bbox!, z(!scale_denominator!))) AS t
2016-10-10 18:37:23 +00:00
schema :
2020-11-11 13:11:48 +00:00
- ./generalized.sql
2016-10-10 18:37:23 +00:00
- ./landcover.sql
datasources :
- type : imposm3
mapping_file : ./mapping.yaml