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

@@ -21,7 +21,8 @@ $$
ELSE ST_PointOnSurface(geometry)
END
WHERE (full_update OR osm_id IN (SELECT osm_id FROM poi_polygon.osm_ids))
AND ST_GeometryType(geometry) <> 'ST_Point';
AND ST_GeometryType(geometry) <> 'ST_Point'
AND ST_IsValid(geometry);
UPDATE osm_poi_polygon
SET subclass = 'subway'