From 8d9a5df48b71da1aabad01c297546ed6a5a2df62 Mon Sep 17 00:00:00 2001 From: golubev Date: Thu, 3 Oct 2019 14:10:36 +0300 Subject: [PATCH] layers/transportation/: do a tiny code styling (#321) --- layers/transportation/class.sql | 3 +-- layers/transportation/mapping.yaml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/layers/transportation/class.sql b/layers/transportation/class.sql index 3c632f4..28ed41a 100644 --- a/layers/transportation/class.sql +++ b/layers/transportation/class.sql @@ -17,9 +17,8 @@ CREATE OR REPLACE FUNCTION highway_class(highway TEXT, public_transport TEXT) RE WHEN highway IN ('secondary', 'secondary_link') THEN 'secondary' WHEN highway IN ('tertiary', 'tertiary_link') THEN 'tertiary' WHEN highway IN ('unclassified', 'residential', 'living_street', 'road') THEN 'minor' - WHEN highway IN ('service', 'track') THEN highway WHEN highway IN ('pedestrian', 'path', 'footway', 'cycleway', 'steps', 'bridleway', 'corridor') OR public_transport IN ('platform') THEN 'path' - WHEN highway = 'raceway' THEN 'raceway' + WHEN highway IN ('service', 'track', 'raceway') THEN highway ELSE NULL END; $$ LANGUAGE SQL IMMUTABLE; diff --git a/layers/transportation/mapping.yaml b/layers/transportation/mapping.yaml index facd319..be6ca22 100644 --- a/layers/transportation/mapping.yaml +++ b/layers/transportation/mapping.yaml @@ -187,18 +187,18 @@ tables: - tertiary_link - unclassified - residential - - road - living_street - - raceway - - track - - service - - path - - cycleway - - bridleway - - footway - - corridor + - road - pedestrian + - path + - footway + - cycleway - steps + - bridleway + - corridor + - service + - track + - raceway public_transport: - platform man_made: