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

@@ -12,7 +12,7 @@ BEGIN
-- etldoc: osm_marine_point -> osm_marine_point
WITH important_marine_point AS (
SELECT osm.geometry, osm.osm_id, osm.name, osm.name_en, ne.scalerank
SELECT osm.geometry, osm.osm_id, osm.name, osm.name_en, ne.scalerank, osm.is_intermittent
FROM ne_10m_geography_marine_polys AS ne, osm_marine_point AS osm
WHERE trim(regexp_replace(ne.name, '\\s+', ' ', 'g')) ILIKE osm.name
OR trim(regexp_replace(ne.name, '\\s+', ' ', 'g')) ILIKE osm.tags->'name:en'