Add ca-transcanada network type

This commit is contained in:
jirik
2017-03-03 14:05:39 +01:00
parent 3af0204564
commit 7459cbe9c3
3 changed files with 21 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ CREATE MATERIALIZED VIEW osm_transportation_name_network AS (
COALESCE(NULLIF(hl.name_en, ''), hl.name) AS name_en,
rm.network_type,
CASE
WHEN rm.network_type is not null
WHEN (rm.network_type is not null AND nullif(rm.ref::text, '') is not null)
then rm.ref::text
else hl.ref
end as ref,