add ST_IsValid where ST_PointOnSurface (#1025)
Same as #1015 for another ST_PointOnSurface
This commit is contained in:
@@ -15,7 +15,8 @@ $$
|
||||
UPDATE osm_island_polygon
|
||||
SET geometry = ST_PointOnSurface(geometry)
|
||||
WHERE (full_update OR osm_id IN (SELECT osm_id FROM place_island_polygon.osm_ids))
|
||||
AND ST_GeometryType(geometry) <> 'ST_Point';
|
||||
AND ST_GeometryType(geometry) <> 'ST_Point'
|
||||
AND ST_IsValid(geometry);
|
||||
|
||||
UPDATE osm_island_polygon
|
||||
SET tags = update_tags(tags, geometry)
|
||||
|
||||
Reference in New Issue
Block a user