[postgis-tickets] [PostGIS] #2162: ST_Intersects yields null where I see a clear intersection on quantum gis

PostGIS trac at osgeo.org
Thu Jun 6 16:00:46 PDT 2013


#2162: ST_Intersects yields null where I see a clear intersection on quantum gis
--------------------------+-------------------------------------------------
 Reporter:  sgottipamula  |       Owner:  pramsey      
     Type:  defect        |      Status:  new          
 Priority:  medium        |   Milestone:  PostGIS 1.5.9
Component:  postgis       |     Version:  1.5.X        
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by pramsey):

 Hm, could you now include some SQL that demonstrates the failure
 condition? The SQL at the top of the file returns an intersection, is that
 correct or not? ST_Distance (which calls the same code, ultimately, as
 ST_Intersects) also returns zero distance, and in both the tree and non-
 tree modes:

 {{{
 postgis21=# SELECT _ST_DistanceTree(bg.geog,
 ST_GeogFromText('SRID=4326;POINT(-122.15023 37.905731)')) from bug_repro
 bg;
  _st_distancetree
 ------------------
                 0
 (1 row)

 postgis21=# SELECT ST_Distance(bg.geog,
 ST_GeogFromText('SRID=4326;POINT(-122.15023 37.905731)')) from bug_repro
 bg;
  st_distance
 -------------
            0
 }}}

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