[postgis-tickets] [PostGIS] #2634: regression failure ST_DWithin between 2.0.4 and 2.1.2

PostGIS trac at osgeo.org
Tue Feb 4 16:44:39 PST 2014


#2634: regression failure ST_DWithin between 2.0.4 and 2.1.2
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.2
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by robe):

 pramsey what does this return for you?


 {{{
 with geogp(gid, geog) AS (VALUES (1, 'POINT(-11.1111111 40)'::geography),
 (1, 'POINT(-11.1111111 40)'::geography))
  , geoglm (gid, geog) AS (VALUES
       (3, 'LINESTRING M (-10 50 1,50 -10 1)'::geography),
      (4, 'LINESTRING M (-10 50 2,50 -10 2)'::geography) )
 SELECT geogp.gid As p_gid, geoglm.gid As lm_gid,  ST_Distance(geogp.geog,
 geoglm.geog,false) As dist
  , _ST_DistanceUncached(geogp.geog, geoglm.geog, false) As distunc
  FROM geogp CROSS JOIN geoglm ;

  p_gid | lm_gid |       dist       |     distunc
 -------+--------+------------------+-----------------
      1 |      3 |  1010519.2194355 | 1010519.2194355
      1 |      4 | 1011346.61455376 | 1010519.2194355
      1 |      3 | 1011346.61455376 | 1010519.2194355
      1 |      4 | 1011346.61455376 | 1010519.2194355
 (4 rows)
 }}}

 This one only seems to be an issue if false is passed in for use_sphere

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