adding ST_IsValid to housnumber geometry (#1015)

Adding check of geometry in layers/housenumber/housenumber_centroid.sql.
This commit is contained in:
Eva Jelinkova
2020-10-12 14:05:20 +02:00
committed by GitHub
parent 3d21523fbe
commit 7a7e9326b9

View File

@@ -34,7 +34,8 @@ $$
ELSE ST_PointOnSurface(geometry)
END
WHERE (full_update OR osm_id IN (SELECT osm_id FROM housenumber.osm_ids))
AND ST_GeometryType(geometry) <> 'ST_Point';
AND ST_GeometryType(geometry) <> 'ST_Point'
AND ST_IsValid(geometry);
$$ LANGUAGE SQL;
SELECT convert_housenumber_point(true);