[postgis-devel] [PostGIS] #755: Bug in 3d-distance functions
PostGIS
trac at osgeo.org
Fri Jan 7 02:13:03 PST 2011
#755: Bug in 3d-distance functions
---------------------+------------------------------------------------------
Reporter: nicklas | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
This gives right answer: POINT(0 5 3)
{{{
select st_asewkt(st_3dclosestpoint(
'POLYGON((0 0 0,0 0 5,0 10 5,0 10 0, 0 0 0))'::geometry,
'POINT(5 5 3)'::geometry))
}}}
But this gives wrong answer POINT(5 0 5) instead of POINT(5 0 3)
{{{
select st_asewkt(st_3dclosestpoint(
'POLYGON((0 0 0,0 0 5,10 0 5,10 0 0, 0 0 0))'::geometry,
'POINT(5 5 3)'::geometry))
}}}
It finds the closest distance when checking against the boudary instead of
against the surface. And as shown above it is not consistent.
I will take a look soon.
/Nicklas
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/755>
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-devel
mailing list