kopia lustrzana https://github.com/openmaptiles/openmaptiles
Merge pull request #675 from Sophox/nyurik-patch-1
Fix err in transportation update_gbr_route_memberspull/663/head
commit
dff9a850a6
|
@ -8,14 +8,14 @@ BEGIN
|
||||||
select st_buffer(geometry, 10000) into gbr_geom from ne_10m_admin_0_countries where iso_a2 = 'GB';
|
select st_buffer(geometry, 10000) into gbr_geom from ne_10m_admin_0_countries where iso_a2 = 'GB';
|
||||||
delete from osm_route_member where network IN('omt-gb-motorway', 'omt-gb-trunk');
|
delete from osm_route_member where network IN('omt-gb-motorway', 'omt-gb-trunk');
|
||||||
|
|
||||||
insert into osm_route_member (member, ref, network)
|
insert into osm_route_member (osm_id, member, ref, network)
|
||||||
(
|
(
|
||||||
SELECT hw.osm_id, substring(hw.ref from E'^[AM][0-9AM()]+'), 'omt-gb-motorway'
|
SELECT 0, hw.osm_id, substring(hw.ref from E'^[AM][0-9AM()]+'), 'omt-gb-motorway'
|
||||||
from osm_highway_linestring hw
|
from osm_highway_linestring hw
|
||||||
where length(hw.ref)>0 and ST_Intersects(hw.geometry, gbr_geom)
|
where length(hw.ref)>0 and ST_Intersects(hw.geometry, gbr_geom)
|
||||||
and hw.highway IN ('motorway')
|
and hw.highway IN ('motorway')
|
||||||
) UNION (
|
) UNION (
|
||||||
SELECT hw.osm_id, substring(hw.ref from E'^[AM][0-9AM()]+'), 'omt-gb-trunk'
|
SELECT 0, hw.osm_id, substring(hw.ref from E'^[AM][0-9AM()]+'), 'omt-gb-trunk'
|
||||||
from osm_highway_linestring hw
|
from osm_highway_linestring hw
|
||||||
where length(hw.ref)>0 and ST_Intersects(hw.geometry, gbr_geom)
|
where length(hw.ref)>0 and ST_Intersects(hw.geometry, gbr_geom)
|
||||||
and hw.highway IN ('trunk')
|
and hw.highway IN ('trunk')
|
||||||
|
|
Ładowanie…
Reference in New Issue