On Wed, Oct 10, 2018 at 09:43:31AM -0400, Daniel Baston wrote: > Plugging the WKT directly into JTS TestBuilder shows that > equals=false, even if you paste the same WKT for both inputs. The > geometry is invalid, but I would have expected Geometry.equals() to > report a correct answer or throw an exception. > > PostGIS 2.2+ should return 'true' in this case, because it does a > memcmp before ever sending the geometry to GEOSEquals.
Good catch! Passing invalid geometries to those functions result in undefined behavior so we cannot call this a bug. But I guess documentation could be improved to specify the validity requirement of the function. --strk; _______________________________________________ postgis-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/postgis-users
