Show water names without centerlines

This commit is contained in:
Lukas Martinelli
2016-11-29 19:13:38 +00:00
parent a433e77818
commit 6bc06a683a
4 changed files with 26 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
-- etldoc: osm_water_polygon -> osm_water_lakeline
CREATE TABLE IF NOT EXISTS osm_water_point AS (
SELECT
wp.osm_id, topoint(wp.geometry) AS geometry,
wp.name, wp.name_en, ST_Area(wp.geometry) AS area
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 <> ''
);
CREATE INDEX IF NOT EXISTS osm_water_point_geometry_idx ON osm_water_point USING gist (geometry);