Help with a query
Erik Wienhold
ewie at ewie.name
Sun Dec 22 16:33:27 PST 2024
On 2024-12-22 15:44 +0100, Luca Bertoncello wrote:
> > I suppose, in the last versions of PostGIS the Function ST_Makevalid
> > will return something other than in the previous one.
>
> Some information more...
>
> It seems, in some cases, the function ST_Makevalid returns
> ST_GeometryCollection instead of ST_MultiPolygon...
> Why?!?
See "dimensional collapse" on https://postgis.net/docs/ST_MakeValid.html
ST_MakeValid creates (multi)linestring and/or (multi)point geometries in
your case. You can also try the structure algorithm with params
'method=structure keepcollapsed=false' and avoid ST_CollectionExtract.
But the linework and structure algorithms do not necessarily return the
same geometries, see the examples in the ST_MakeValid docs.
--
Erik Wienhold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20241223/dfc67726/attachment.sig>
More information about the postgis-users
mailing list