Add intermittent field to water* layers (#430 PR #585)

This commit is contained in:
zstadler
2019-05-24 11:21:43 +00:00
committed by Martin Mikita
parent 8424f01be9
commit 7a3ac079ae
12 changed files with 78 additions and 51 deletions

View File

@@ -10,7 +10,8 @@ CREATE MATERIALIZED VIEW osm_water_point AS (
wp.osm_id, ST_PointOnSurface(wp.geometry) AS geometry,
wp.name, wp.name_en, wp.name_de,
update_tags(wp.tags, ST_PointOnSurface(wp.geometry)) AS tags,
ST_Area(wp.geometry) AS area
ST_Area(wp.geometry) AS area,
wp.is_intermittent
FROM osm_water_polygon AS wp
LEFT JOIN lake_centerline ll ON wp.osm_id = ll.osm_id
WHERE ll.osm_id IS NULL AND wp.name <> ''