Implement shipway labels (#1179)

Fixes #403 

This PR adds labels to shipway linestrings in the `transportation_name` level, up through zoom 12.

![image](https://user-images.githubusercontent.com/3254090/129659827-662ee13c-27f3-4e62-a7f4-45dbd535b770.png)
This commit is contained in:
Brian Sperlongano
2021-08-23 04:52:15 -04:00
committed by GitHub
parent 6ef138635d
commit a93b708327
3 changed files with 28 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ FROM (
FROM osm_transportation_name_linestring
WHERE zoom_level = 12
AND LineLabel(zoom_level, COALESCE(name, ref), geometry)
AND highway_class(highway, '', subclass) NOT IN ('minor', 'track', 'path')
AND (highway_class(highway, '', subclass) NOT IN ('minor', 'track', 'path') OR highway='shipway')
AND NOT highway_is_link(highway)
UNION ALL
@@ -133,7 +133,7 @@ FROM (
FROM osm_transportation_name_linestring
WHERE zoom_level = 13
AND LineLabel(zoom_level, COALESCE(name, ref), geometry)
AND highway_class(highway, '', subclass) NOT IN ('track', 'path')
AND (highway_class(highway, '', subclass) NOT IN ('track', 'path') OR highway='shipway')
UNION ALL
-- etldoc: osm_transportation_name_linestring -> layer_transportation_name:z14_