[postgis-tickets] [PostGIS] #4943: st_equals fails on invalid geometry with GEOS error

PostGIS trac at osgeo.org
Wed Jul 7 17:33:59 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):

 Equality checking is surprisingly complex.  `ST_Equals` is actually
 testing topological equality rather than pointwise equality.  One effect
 of this is that it treats vertices which lie exactly on lines as equal
 (this case is rare in practice).

 In the near future we hope to provide a new implementation for the spatial
 predicates which will not be so sensitive to invalidity.  And hopefully it
 will provide a tolerance value as well, which will avoid the need for
 using `ST_SnapToGrid`.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4943#comment:3>
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