[postgis-tickets] [PostGIS] #4943: st_equals fails on invalid geometry with GEOS error
PostGIS
trac at osgeo.org
Wed Jul 7 17:29:55 PDT 2021
#4943: st_equals fails on invalid geometry with GEOS error
----------------------+--------------------------------------
Reporter: mschott | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.1.3
Component: postgis | Version: 3.1.x
Resolution: | Keywords: st_equals, GEOS, invalid
----------------------+--------------------------------------
Comment (by mdavis):
Yes, the doc appears to be aspirational rather than accurate. It would be
nice if `ST_Equals` did not error out on invalid geometry. That will
require a fix in GEOS.
In this case one geometry is valid, and one is invalid, so clearly they
are not equal. You could test for this condition before running
`ST_Equals`.
Another alternative is to run `ST_Normalize` on each snapped input, and
then use `ST_OrderingEquals`.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4943#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list