From 585b71f6667c35a075ae9fe09dc891884edd0738 Mon Sep 17 00:00:00 2001 From: Tomas Pohanka Date: Wed, 13 Mar 2024 10:12:03 +0100 Subject: [PATCH] More roads for z4 and z5. (#1642) This PR adds more roads to the zoom 4 for the United Kingdom and Ireland. Adding more roads for the USA at zoom 5. --- layers/transportation/network_type.sql | 6 +++++- layers/transportation/update_transportation_merge.sql | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/layers/transportation/network_type.sql b/layers/transportation/network_type.sql index e7197a72..b85196ee 100644 --- a/layers/transportation/network_type.sql +++ b/layers/transportation/network_type.sql @@ -31,7 +31,11 @@ $$ -- Canada 'ca-transcanada', 'ca-provincial-arterial', -- United States - 'us-interstate', + 'us-interstate', 'us-highway', + -- UK + 'gb-motorway', 'gb-trunk', + -- Ireland + 'ie-motorway', 'ie-national', -- Europe 'e-road', -- Asia diff --git a/layers/transportation/update_transportation_merge.sql b/layers/transportation/update_transportation_merge.sql index 44541393..6d50e406 100644 --- a/layers/transportation/update_transportation_merge.sql +++ b/layers/transportation/update_transportation_merge.sql @@ -807,7 +807,8 @@ BEGIN WHERE transportation.changes_z4_z5_z6_z7.is_old IS FALSE AND transportation.changes_z4_z5_z6_z7.id = osm_transportation_merge_linestring_gen_z5.id )) AND - osm_national_network(network) AND + (highway = 'motorway' AND osm_national_network(network) + ) AND -- Current view: national-importance motorways and trunks ST_Length(geometry) > 1000 ON CONFLICT (id) DO UPDATE SET osm_id = excluded.osm_id, highway = excluded.highway, network = excluded.network,