From b9c9e69028d54ac5fd7694deed7eb6d8b5e4aa3e Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Thu, 28 Dec 2023 01:11:36 -0500 Subject: [PATCH] Remove expressway from ramps (#1602) #1313 added `expressway` tagging to the transportation layer. However, this also added the `expressway` attributes to ramps where it doesn't make sense (ramps by definition are controlled-access roads in all cases). This PR corrects this by dropping the `expressway` attribute from ramps where it doesn't make sense to do so. See also ZeLonewolf/openstreetmap-americana#1017 --- layers/transportation/transportation.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/transportation/transportation.sql b/layers/transportation/transportation.sql index 85d25220..54c734c6 100644 --- a/layers/transportation/transportation.sql +++ b/layers/transportation/transportation.sql @@ -62,7 +62,7 @@ SELECT osm_id, NULLIF(service, '') AS service, access, CASE WHEN toll = TRUE THEN 1 END AS toll, - CASE WHEN highway NOT IN ('', 'motorway') AND expressway = TRUE THEN 1 END AS expressway, + CASE WHEN highway NOT IN ('', 'motorway') AND NOT is_ramp AND expressway = TRUE THEN 1 END AS expressway, NULLIF(layer, 0) AS layer, "level", CASE WHEN indoor = TRUE THEN 1 END AS indoor,