Adjust st_length filter based on zres in transportation layer (#259)

Probably related to #258
This commit is contained in:
Jiri Kozel
2017-05-23 16:54:59 +02:00
committed by GitHub
parent 555825486f
commit 8a44e72328

View File

@@ -84,7 +84,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, class text, ramp int, oneway int
z_order z_order
FROM osm_highway_linestring_gen2 FROM osm_highway_linestring_gen2
WHERE zoom_level BETWEEN 9 AND 10 WHERE zoom_level BETWEEN 9 AND 10
AND st_length(geometry)>zres(10) AND st_length(geometry)>zres(11)
UNION ALL UNION ALL
-- etldoc: osm_highway_linestring_gen1 -> layer_transportation:z11 -- etldoc: osm_highway_linestring_gen1 -> layer_transportation:z11
@@ -96,7 +96,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, class text, ramp int, oneway int
z_order z_order
FROM osm_highway_linestring_gen1 FROM osm_highway_linestring_gen1
WHERE zoom_level = 11 WHERE zoom_level = 11
AND st_length(geometry)>zres(11) AND st_length(geometry)>zres(12)
UNION ALL UNION ALL
-- etldoc: osm_highway_linestring -> layer_transportation:z12 -- etldoc: osm_highway_linestring -> layer_transportation:z12