add ST_IsValid where ST_PointOnSurface (#1025)

Same as #1015 for another ST_PointOnSurface
This commit is contained in:
Tomas Pohanka
2020-10-13 15:28:20 +02:00
committed by GitHub
parent 88c13f713f
commit 72165933be
3 changed files with 6 additions and 3 deletions

View File

@@ -14,7 +14,8 @@ SELECT wp.osm_id,
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 <> '';
AND wp.name <> ''
AND ST_IsValid(wp.geometry);
-- etldoc: osm_water_polygon -> osm_water_point
-- etldoc: lake_centerline -> osm_water_point