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.
pull/1466/head^2
Brian Sperlongano 2023-01-14 07:36:02 -05:00 zatwierdzone przez GitHub
rodzic 569e9cd5b4
commit 8b5aa3273e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
5 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -107,6 +107,10 @@ tables:
- dock - dock
water: water:
- river - river
- stream
- canal
- ditch
- drain
- pond - pond
- basin - basin
- wastewater - wastewater

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 41 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 46 KiB

Wyświetl plik

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

Wyświetl plik

@ -25,7 +25,11 @@ layer:
class: class:
description: | description: |
All water polygons from [OpenStreetMapData](http://osmdata.openstreetmap.de/) have the class `ocean`. All water polygons from [OpenStreetMapData](http://osmdata.openstreetmap.de/) have the class `ocean`.
Water bodies with the [`water=river`](http://wiki.openstreetmap.org/wiki/Tag:water=river) tag are classified as river. Wet and dry docks The water-covered areas of flowing water bodies with the [`water=river`](http://wiki.openstreetmap.org/wiki/Tag:water=river),
[`water=canal`](http://wiki.openstreetmap.org/wiki/Tag:water=canal),
[`water=stream`](http://wiki.openstreetmap.org/wiki/Tag:water=stream),
[`water=ditch`](http://wiki.openstreetmap.org/wiki/Tag:water=ditch), or
[`water=drain`](http://wiki.openstreetmap.org/wiki/Tag:water=drain) tags are classified as river. Wet and dry docks
tagged [`waterway=dock`](http://wiki.openstreetmap.org/wiki/Tag:waterway=dock) are classified as a `dock`. tagged [`waterway=dock`](http://wiki.openstreetmap.org/wiki/Tag:waterway=dock) are classified as a `dock`.
Various minor waterbodies are classified as a `pond`. Various minor waterbodies are classified as a `pond`.
Swimming pools tagged [`leisure=swimming_pool`](https://wiki.openstreetmap.org/wiki/Tag:leisure=swimming_pool) are classified as a `swimming_pool` Swimming pools tagged [`leisure=swimming_pool`](https://wiki.openstreetmap.org/wiki/Tag:leisure=swimming_pool) are classified as a `swimming_pool`
@ -34,7 +38,7 @@ layer:
dock: dock:
waterway: 'dock' waterway: 'dock'
river: river:
water: 'river' water: ['river', 'stream', 'canal', 'ditch', 'drain']
pond: pond:
water: ['pond', 'basin', 'wastewater'] water: ['pond', 'basin', 'wastewater']
lake: lake:

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 52 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 57 KiB