Fix transportation road segments disconnection (#1109)
To avoid discontinuous transportation lines between zooms 9 and 11. - Originally limit geometry by length for z9 - z11 (`ST_Length(geometry) > ZRes(11)`) - highway z9 to z11 was generalized during import-osm - now just create a filtered and generalized z11 table - then merge segments in the same way as from (full-featured) osm_highway_linestring and used this merged z11 for mat.view z10 and z9 Close #1107
This commit is contained in:
@@ -209,7 +209,7 @@ FROM (
|
||||
WHERE zoom_level = 8
|
||||
UNION ALL
|
||||
|
||||
-- etldoc: osm_highway_linestring_gen_z9 -> layer_transportation:z9
|
||||
-- etldoc: osm_transportation_merge_linestring_gen_z9 -> layer_transportation:z9
|
||||
SELECT osm_id,
|
||||
geometry,
|
||||
highway,
|
||||
@@ -234,12 +234,11 @@ FROM (
|
||||
mtb_scale,
|
||||
NULL AS surface,
|
||||
z_order
|
||||
FROM osm_highway_linestring_gen_z9
|
||||
FROM osm_transportation_merge_linestring_gen_z9
|
||||
WHERE zoom_level = 9
|
||||
AND ST_Length(geometry) > ZRes(11)
|
||||
UNION ALL
|
||||
|
||||
-- etldoc: osm_highway_linestring_gen_z10 -> layer_transportation:z10
|
||||
-- etldoc: osm_transportation_merge_linestring_gen_z10 -> layer_transportation:z10
|
||||
SELECT osm_id,
|
||||
geometry,
|
||||
highway,
|
||||
@@ -264,12 +263,11 @@ FROM (
|
||||
mtb_scale,
|
||||
NULL AS surface,
|
||||
z_order
|
||||
FROM osm_highway_linestring_gen_z10
|
||||
FROM osm_transportation_merge_linestring_gen_z10
|
||||
WHERE zoom_level = 10
|
||||
AND ST_Length(geometry) > ZRes(11)
|
||||
UNION ALL
|
||||
|
||||
-- etldoc: osm_highway_linestring_gen_z11 -> layer_transportation:z11
|
||||
-- etldoc: osm_transportation_merge_linestring_gen_z11 -> layer_transportation:z11
|
||||
SELECT osm_id,
|
||||
geometry,
|
||||
highway,
|
||||
@@ -294,9 +292,8 @@ FROM (
|
||||
mtb_scale,
|
||||
NULL AS surface,
|
||||
z_order
|
||||
FROM osm_highway_linestring_gen_z11
|
||||
FROM osm_transportation_merge_linestring_gen_z11
|
||||
WHERE zoom_level = 11
|
||||
AND ST_Length(geometry) > ZRes(12)
|
||||
UNION ALL
|
||||
|
||||
-- etldoc: osm_highway_linestring -> layer_transportation:z12
|
||||
|
||||
Reference in New Issue
Block a user