[postgis-devel] [PostGIS] #1951: Crash in ST_Distance
PostGIS
trac at osgeo.org
Wed Aug 15 11:03:28 PDT 2012
#1951: Crash in ST_Distance
---------------------------+------------------------------------------------
Reporter: realityexists | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.0
Component: postgis | Version: trunk
Keywords: |
---------------------------+------------------------------------------------
Comment(by pramsey):
And looks like any simple version with just two duped coordinates will do.
However duped coordinates in a larger line have no problems:
{{{
-- works
select _st_distancetree('LINESTRING(0.1 0,0 0,0 0)'::geography, 'POINT(0.1
0.1)'::geography);
-- works
select _st_distancetree('LINESTRING(0 0,0 0,0 0.1)'::geography, 'POINT(0.1
0.1)'::geography);
-- boom
select _st_distancetree('LINESTRING(0 0,0 0)'::geography, 'POINT(0.1
0.1)'::geography);
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1951#comment:2>
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