diff --git a/layers/transportation/class.sql b/layers/transportation/class.sql index 5d1b917..3c632f4 100644 --- a/layers/transportation/class.sql +++ b/layers/transportation/class.sql @@ -47,8 +47,8 @@ $$ LANGUAGE SQL IMMUTABLE STRICT; -- we always know the values of surface CREATE OR REPLACE FUNCTION surface_value(surface TEXT) RETURNS TEXT AS $$ SELECT CASE - WHEN surface IN ('paved', 'asphalt', 'concrete', 'paving_stones', 'cobblestone', 'concrete:plates', 'pebblestone') THEN 'paved' - WHEN surface IN ('unpaved', 'ground', 'gravel', 'dirt', 'grass', 'compacted', 'sand', 'fine_gravel', 'sett', 'wood', 'earth') THEN 'unpaved' + WHEN surface IN ('paved', 'asphalt', 'cobblestone', 'concrete', 'concrete:lanes', 'concrete:plates', 'metal', 'paving_stones', 'sett', 'unhewn_cobblestone', 'wood') THEN 'paved' + WHEN surface IN ('unpaved', 'compacted', 'dirt', 'earth', 'fine_gravel', 'grass', 'grass_paver', 'gravel', 'gravel_turf', 'ground', 'ice', 'mud', 'pebblestone', 'salt', 'sand', 'snow', 'woodchips') THEN 'unpaved' ELSE NULL END; $$ LANGUAGE SQL IMMUTABLE STRICT; diff --git a/layers/transportation/transportation.yaml b/layers/transportation/transportation.yaml index 688280f..c537758 100644 --- a/layers/transportation/transportation.yaml +++ b/layers/transportation/transportation.yaml @@ -107,7 +107,7 @@ layer: - 1 surface: description: | - TODO + Values of [`surface`](https://wiki.openstreetmap.org/wiki/Key:surface) tag devided into 2 groups `paved` (paved, asphalt, cobblestone, concrete, concrete:lanes, concrete:plates, metal, paving_stones, sett, unhewn_cobblestone, wood) and `unpaved` (unpaved, compacted, dirt, earth, fine_gravel, grass, grass_paver, gravel, gravel_turf, ground, ice, mud, pebblestone, salt, sand, snow, woodchips). values: - paved - unpaved