ST_PointOnSurface instead of topoint

This commit is contained in:
stirringhalo
2017-01-17 09:03:40 -05:00
parent 0945c5f04c
commit 153976735f
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ DROP MATERIALIZED VIEW IF EXISTS osm_water_point CASCADE;
CREATE MATERIALIZED VIEW osm_water_point AS (
SELECT
wp.osm_id, topoint(wp.geometry) AS geometry,
wp.osm_id, ST_PointOnSurface(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