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

PostGIS trac at osgeo.org
Wed Apr 8 14:44:47 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:"e880eb8371ee31ada8b11c0fa580b08f1d4dc806/git" e880eb8/git]:
 {{{#!CommitTicketReference repository="git"
 revision="e880eb8371ee31ada8b11c0fa580b08f1d4dc806"
 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 does not 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:8>
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