[postgis-tickets] [PostGIS] #1014: GEOMETRY type is not "hashable"

PostGIS trac at osgeo.org
Fri Jul 3 08:14:35 PDT 2015


#1014: GEOMETRY type is not "hashable"
--------------------------+---------------------------------
  Reporter:  vince        |      Owner:  pramsey
      Type:  enhancement  |     Status:  reopened
  Priority:  medium       |  Milestone:  PostGIS 2.2.0
 Component:  postgis      |    Version:  trunk
Resolution:               |   Keywords:  GEOMETRY hash UNION
--------------------------+---------------------------------
Changes (by pramsey):

 * status:  closed => reopened
 * resolution:  wontfix =>
 * version:  1.5.X => trunk
 * type:  defect => enhancement
 * milestone:  PostGIS 1.5.3 => PostGIS 2.2.0


Comment:

 I'm finding it hard to care about the issue mentioned in Mark's article.
 Basically, if I'm reading it right, it means that our hashing would
 provide a different value for:

 POINT(0 0) and POINT(-0 0)

 So if you tried to test equality with the hash function, you'd be told
 they aren't equal. And if you did a SELECT 'POINT(0 0)' UNION SELECT
 POINT(-0 0) you'd get back two rows instead of one.

 This seems like hardly a deathly issue, and I being too cowboy here? We're
 already consuming POINT(NaN NaN) for infrastructural purposes, and not
 allowing convenient CTE recursion (in all cases) because we might
 accidentally duplicate 0 and -0 cases? Seem like nose cutting and face
 spiting.

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