[postgis-devel] [PostGIS] #1951: Crash in ST_Distance

PostGIS trac at osgeo.org
Wed Aug 15 11:00:36 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):

 The function has to hit the distance function twice to get the caching to
 kick in and thereby hit the tree. You can skip the cache by calling
 _ST_DistanceTree(geog, geog) directly for testing, and it goes boom:
 {{{
 select _st_distancetree('LINESTRING(-60.1529985502867 -3.00511933469609,
 -60.1529985502867 -3.00511933469609)'::geography, 'POINT(-60.1529903235046
 -3.00464549022075)'::geography);
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1951#comment:1>
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