From 4251701858bbf11de9863e62b1cb9a9efcd48776 Mon Sep 17 00:00:00 2001 From: golubev Date: Mon, 7 Oct 2019 14:15:45 +0300 Subject: [PATCH] layers/transportation/class.sql: fix up empty value issue (#321) --- layers/transportation/class.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/transportation/class.sql b/layers/transportation/class.sql index 8545430..187b5f8 100644 --- a/layers/transportation/class.sql +++ b/layers/transportation/class.sql @@ -25,7 +25,7 @@ CREATE OR REPLACE FUNCTION highway_class(highway TEXT, public_transport TEXT, co WHEN construction IN ('primary', 'primary_link') THEN 'primary_construction' WHEN construction IN ('secondary', 'secondary_link') THEN 'secondary_construction' WHEN construction IN ('tertiary', 'tertiary_link') THEN 'tertiary_construction' - WHEN construction IS NULL OR construction IN ('unclassified', 'residential', 'living_street', 'road') THEN 'minor_construction' + WHEN construction = '' OR construction IN ('unclassified', 'residential', 'living_street', 'road') THEN 'minor_construction' WHEN construction IN ('pedestrian', 'path', 'footway', 'cycleway', 'steps', 'bridleway', 'corridor') OR public_transport IN ('platform') THEN 'path_construction' WHEN construction IN ('service', 'track', 'raceway') THEN CONCAT(highway, '_construction') ELSE NULL