[PostGIS] #6026: Distance operator <-> returns "tuple order" error
PostGIS
trac at osgeo.org
Wed Apr 8 14:43:09 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:"e91db587b9ec8dcb4cbea6faa48e2b92be100290/git" e91db58/git]:
{{{#!CommitTicketReference repository="git"
revision="e91db587b9ec8dcb4cbea6faa48e2b92be100290"
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:7>
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