From 45a50a5bd09d4a09d9d811581e9fafd42d9c74b4 Mon Sep 17 00:00:00 2001 From: golubev Date: Thu, 3 Oct 2019 14:17:44 +0300 Subject: [PATCH] layers/transportation/: add 'highway=construction' roads (#321) --- layers/transportation/class.sql | 2 +- layers/transportation/mapping.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/layers/transportation/class.sql b/layers/transportation/class.sql index 28ed41a..b15196e 100644 --- a/layers/transportation/class.sql +++ b/layers/transportation/class.sql @@ -18,7 +18,7 @@ CREATE OR REPLACE FUNCTION highway_class(highway TEXT, public_transport TEXT) RE WHEN highway IN ('tertiary', 'tertiary_link') THEN 'tertiary' WHEN highway IN ('unclassified', 'residential', 'living_street', 'road') THEN 'minor' WHEN highway IN ('pedestrian', 'path', 'footway', 'cycleway', 'steps', 'bridleway', 'corridor') OR public_transport IN ('platform') THEN 'path' - WHEN highway IN ('service', 'track', 'raceway') THEN highway + WHEN highway IN ('service', 'track', 'raceway', 'construction') THEN highway ELSE NULL END; $$ LANGUAGE SQL IMMUTABLE; diff --git a/layers/transportation/mapping.yaml b/layers/transportation/mapping.yaml index be6ca22..7d10ed4 100644 --- a/layers/transportation/mapping.yaml +++ b/layers/transportation/mapping.yaml @@ -199,6 +199,7 @@ tables: - service - track - raceway + - construction public_transport: - platform man_made: