[PostGIS] #6026: Distance operator <-> returns "tuple order" error

PostGIS trac at osgeo.org
Wed Apr 8 14:39:18 PDT 2026


#6026: Distance operator <-> returns "tuple order" error
----------------------+----------------------------------------------
  Reporter:  dirc     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:
 Component:  postgis  |    Version:  3.5.x
Resolution:           |   Keywords:  distance, operator, tuple, order
----------------------+----------------------------------------------
Comment (by Paul Ramsey <pramsey@…>):

 In [changeset:"0f7d3d5628d0cf598c27ffe69e6fb25e8d05fe5d/git" 0f7d3d5/git]:
 {{{#!CommitTicketReference repository="git"
 revision="0f7d3d5628d0cf598c27ffe69e6fb25e8d05fe5d"
 Clean up and add another special case to lw_dist2d_pt_seg()
 When the seg is vertical or horizontal, we construct the
 nearest points to avoid getting a difference between
 the more-exact distance calculation that doesn't construct
 and the naturally constructive process of building
 a bbox, which can result in a situation where the
 "real distance" between two objects can be less than
 the "box distance", which is simply not allowed.
 References #6026
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6026#comment:6>
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