On Thu, Dec 10, 2020 at 12:08:58PM +0100, Sandro Santilli wrote:

> Odd, for a MULTIPOINT with empty components it seems to strip it.
> But I cannot add the test because it looks like EMPTY is not accepted
> in WKT:
> 
>     MULTIPOINT(EMPTY,1 1,EMPTY,0 0)
>     ParseException: Expected number but encountered word: 'EMPTY')

Ok, figured: it's just the PostGIS->GEOS->PostGIS roundtrip conversion
dropping those components !

  strk=# select ST_AsText(postgis_geos_noop('GEOMETRYCOLLECTION(POINT EMPTY, 
POINT(1 1))'));
             st_astext
  --------------------------------
   GEOMETRYCOLLECTION(POINT(1 1))
  (1 row)

So, not related to GEOSMakeValid per-se, just with the adapter...

--strk;
_______________________________________________
geos-devel mailing list
geos-devel@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geos-devel

Reply via email to