From 3e229a7b3c010d73e134accc3c4b1aa5ac7670ee Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Fri, 2 Dec 2016 11:14:45 +0000 Subject: [PATCH] Map highway=step. Fixes #84 --- layers/transportation/layer.sql | 3 ++- layers/transportation/mapping.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layers/transportation/layer.sql b/layers/transportation/layer.sql index a0d0356..0e431f9 100644 --- a/layers/transportation/layer.sql +++ b/layers/transportation/layer.sql @@ -15,7 +15,8 @@ RETURNS TABLE(osm_id bigint, geometry geometry, class text, subclass text, ramp END AS class, COALESCE(NULLIF(highway,''), NULLIF(railway, '')) AS subclass, -- All links are considered as ramps as well - CASE WHEN highway_is_link(highway) THEN 1 ELSE is_ramp::int END AS ramp, + CASE WHEN highway_is_link(highway) OR highway = 'steps' + THEN 1 ELSE is_ramp::int END AS ramp, is_oneway::int AS oneway, brunnel(is_bridge, is_tunnel, is_ford) AS brunnel, NULLIF(service, '') AS service diff --git a/layers/transportation/mapping.yaml b/layers/transportation/mapping.yaml index 1f636c0..7f63747 100644 --- a/layers/transportation/mapping.yaml +++ b/layers/transportation/mapping.yaml @@ -137,6 +137,7 @@ tables: - footway - corridor - pedestrian + - steps # etldoc: imposm3 -> osm_railway_linestring railway_linestring: