Add other river-like water area features to class=river (#1467)

Currently, river areas (`natural=water` + `water=river`) are rendered in the tiles as `class=river`.  However, canal, stream, ditch, and drain water areas are rendered as `class=lake`.  Since these types of objects are all flowing water, they should be grouped together into `class=river`, which allows for styles that render flowing water differently to do so on a consistent basis.
This commit is contained in:
Brian Sperlongano
2023-01-14 07:36:02 -05:00
committed by GitHub
parent 569e9cd5b4
commit 8b5aa3273e
5 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
CREATE OR REPLACE FUNCTION water_class(waterway text, water text, leisure text) RETURNS text AS
$$
SELECT CASE
WHEN water IN ('river', 'canal', 'stream', 'ditch', 'drain') THEN 'river'
%%FIELD_MAPPING: class %%
ELSE 'lake'
END;