[postgis-tickets] [PostGIS] #3197: SQL function for GEOSEqualsExact

PostGIS trac at osgeo.org
Thu Nov 19 16:02:15 PST 2015


#3197: SQL function for GEOSEqualsExact
--------------------------+----------------------------
  Reporter:  mwtoews      |      Owner:  pramsey
      Type:  enhancement  |     Status:  new
  Priority:  medium       |  Milestone:  PostGIS Future
 Component:  postgis      |    Version:  trunk
Resolution:               |   Keywords:
--------------------------+----------------------------

Comment (by dbaston):

 On one hand, this seems like a cleaner and more direct alternative to the
 ST_Equals(ST_SnapToGrid()) chain that's often used.  On the other hand, I
 think it may introduce confusion in that it differs from plain-old equals
 not just in tolerance but also semantics.  Here's an example I just tested
 in JTS:

 {{{
 Geometry g1 = LINESTRING (0 0, 1 1);
 Geometry g2 = MULTILINESTRING ((0 0, 1 1));

 g1.equals(g2) // true
 g1.equalsExact(g2, 0) // false
 }}}

 (I'm assuming GEOS behavior is the same, here)

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