Add platforms to transportation as paths

This commit is contained in:
jirik
2017-11-08 16:54:07 +01:00
committed by Jiri Kozel
parent 68785c1a21
commit 1cdf726384
5 changed files with 39 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, name_de
when length(coalesce(ref, ''))>0
then 'road'
end as network,
highway_class(highway) AS class
highway_class(highway, '') AS class
FROM (
-- etldoc: osm_transportation_name_linestring_gen4 -> layer_transportation_name:z6
@@ -46,7 +46,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, name_de
SELECT * FROM osm_transportation_name_linestring
WHERE zoom_level = 12
AND LineLabel(zoom_level, COALESCE(NULLIF(name, ''), ref), geometry)
AND highway_class(highway) NOT IN ('minor', 'track', 'path')
AND highway_class(highway, '') NOT IN ('minor', 'track', 'path')
AND NOT highway_is_link(highway)
UNION ALL
@@ -54,7 +54,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, name_de
SELECT * FROM osm_transportation_name_linestring
WHERE zoom_level = 13
AND LineLabel(zoom_level, COALESCE(NULLIF(name, ''), ref), geometry)
AND highway_class(highway) NOT IN ('track', 'path')
AND highway_class(highway, '') NOT IN ('track', 'path')
UNION ALL
-- etldoc: osm_transportation_name_linestring -> layer_transportation_name:z14_