[postgis-tickets] [PostGIS] #3448: ST_Distance yields inconsistent results when used in a statement involving multiple Point and Multipolygon Geography pairs
PostGIS
trac at osgeo.org
Sat May 14 16:36:13 PDT 2016
#3448: ST_Distance yields inconsistent results when used in a statement involving
multiple Point and Multipolygon Geography pairs
----------------------+-------------------------------------------
Reporter: ewcz | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.3
Component: postgis | Version: 2.2.x
Resolution: | Keywords: ST_Distance, _ST_DistanceTree
----------------------+-------------------------------------------
Comment (by dbaston):
Interestingly, the issue seems to disappear if we extract the polygon from
p, even though p is a single-member multipolygon:
{{{
select
_st_distancetree(n.location, ST_GeometryN(p.outline, 1)),
_st_distanceuncached(n.location, p.outline),
n.node_id, p.iid
from n, p;
_st_distancetree | _st_distanceuncached | node_id | iid
------------------+----------------------+---------+-----
1951140.06556506 | 1951140.06556506 | 1 | 1
1730626.41376862 | 1730626.41376862 | 2 | 1
1727662.98350914 | 1727662.98350914 | 3 | 1
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3448#comment:4>
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