[geos-devel] MakeValid and empty collection component

Darafei "Komяpa" Praliaskouski me at komzpa.net
Wed Dec 9 06:52:28 PST 2020


Hi,

I believe there are two modes functions can operate in: geometry-preserving
or structure-preserving.
MakeValid will try to recover the geometry, but makes no effort to preserve
structure, sometimes it is impossible.

If you're using MakeValid, you expect the structure (the number of
subgeometries, multi-nonmulti, dimensionality..) to change. I don't see how
in this circumstances an attempt to save the EMPTY component will help any
use case.

On Wed, Dec 9, 2020 at 2:13 PM Sandro Santilli <strk at kbt.io> wrote:

> I found out that GEOSMakeValid will remove EMPTY components from
> collections. The PostGIS implementation of it does not do this.
>
> The rationale was that a collection with EMPTY component is NOT
> invalid as per OGC specification, so why removing them ? Isn't
> that a job for CollectionHomogenize or similar ?
>
> --strk;
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geos-devel
>


-- 
Darafei "Komяpa" Praliaskouski
OSM BY Team - http://openstreetmap.by/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20201209/f5c67ff6/attachment.html>


More information about the geos-devel mailing list