From 2250d140df7595baa14c0ec8eebf59e5a5b2a71b Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Fri, 2 Dec 2016 11:12:59 +0000 Subject: [PATCH] Add missing classes for raceway, bridleway, corridor #82 --- layers/transportation/class.sql | 3 ++- layers/transportation/mapping.yaml | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/layers/transportation/class.sql b/layers/transportation/class.sql index 20078e80..1d51c868 100644 --- a/layers/transportation/class.sql +++ b/layers/transportation/class.sql @@ -18,7 +18,8 @@ CREATE OR REPLACE FUNCTION highway_class(highway TEXT) RETURNS TEXT AS $$ 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') THEN 'path' + WHEN highway IN ('pedestrian', 'path', 'footway', 'cycleway', 'steps', 'bridleway', 'corridor') THEN 'path' + WHEN highway = 'raceway' THEN 'raceway' ELSE NULL END; $$ LANGUAGE SQL IMMUTABLE STRICT; diff --git a/layers/transportation/mapping.yaml b/layers/transportation/mapping.yaml index 2757a0fa..1f636c0c 100644 --- a/layers/transportation/mapping.yaml +++ b/layers/transportation/mapping.yaml @@ -129,7 +129,6 @@ tables: - road - living_street - raceway - - construction - track - service - path @@ -137,7 +136,6 @@ tables: - bridleway - footway - corridor - - crossing - pedestrian # etldoc: imposm3 -> osm_railway_linestring