[postgis-tickets] [PostGIS] #2422: geography regression difference ST_DWithin

PostGIS trac at osgeo.org
Mon Aug 12 15:34:33 PDT 2013


#2422: geography regression difference ST_DWithin
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.1.0
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by pramsey):

 The answer regarding why have a dwithin code line is because the distance
 code line doesn't actually use the tolerance when evaluating two trees
 against one another, while the dwithin code line does. The idea is the
 dwithin line can short circuit out of the evaluation when it hits
 something within tolerance, while the distance calculation has to check
 all possibilities to get the right distance. However, the distance code
 line does take in a tolerance number, it just mostly ignores it.

 What this case is showing is a failure in the tolerance-based code,
 perhaps, although you also have a case that shows the tree and segment
 based distance calculations coming up different.

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