Add gardens to landcover

This commit is contained in:
jirik 2017-11-08 13:45:27 +01:00 committed by Jiri Kozel
parent 018b77ac11
commit e1ab498936
3 changed files with 12 additions and 6 deletions

View File

@ -15,7 +15,11 @@ CREATE OR REPLACE FUNCTION landcover_class(landuse VARCHAR, "natural" VARCHAR, l
WHEN "natural" IN ('glacier', 'ice_shelf') THEN 'ice' WHEN "natural" IN ('glacier', 'ice_shelf') THEN 'ice'
WHEN "natural"='wood' OR landuse IN ('forest') THEN 'wood' WHEN "natural"='wood' OR landuse IN ('forest') THEN 'wood'
WHEN "natural" IN ('bare_rock', 'scree') THEN 'rock' WHEN "natural" IN ('bare_rock', 'scree') THEN 'rock'
WHEN "natural"='grassland' OR landuse IN ('grass', 'meadow', 'allotments', 'grassland', 'park', 'village_green', 'recreation_ground') OR leisure='park' THEN 'grass' WHEN "natural"='grassland'
OR landuse IN ('grass', 'meadow', 'allotments', 'grassland',
'park', 'village_green', 'recreation_ground')
OR leisure IN ('park', 'garden')
THEN 'grass'
WHEN "natural"='wetland' OR wetland IN ('bog', 'swamp', 'wet_meadow', 'marsh', 'reedbed', 'saltern', 'tidalflat', 'saltmarsh', 'mangrove') THEN 'wetland' WHEN "natural"='wetland' OR wetland IN ('bog', 'swamp', 'wet_meadow', 'marsh', 'reedbed', 'saltern', 'tidalflat', 'saltmarsh', 'mangrove') THEN 'wetland'
ELSE NULL ELSE NULL
END; END;

View File

@ -38,6 +38,7 @@ layer:
- village_green - village_green
- recreation_ground - recreation_ground
- park - park
- garden
- wetland - wetland
- grassland - grassland
- bog - bog

View File

@ -92,6 +92,7 @@ tables:
- scree - scree
leisure: leisure:
- park - park
- garden
wetland: wetland:
- bog - bog
- swamp - swamp