[postgis-devel] [PostGIS] #1976: ST_Intersects() returns false while ST_Intersection returns a geography

PostGIS trac at osgeo.org
Mon Oct 22 11:39:10 PDT 2012


#1976: ST_Intersects() returns false while ST_Intersection returns a geography
------------------------+---------------------------------------------------
  Reporter:  mhiper3pg  |       Owner:  pramsey      
      Type:  defect     |      Status:  reopened     
  Priority:  medium     |   Milestone:  PostGIS 1.5.6
 Component:  postgis    |     Version:  1.5.X        
Resolution:             |    Keywords:               
------------------------+---------------------------------------------------

Comment(by pramsey):

 And another piece: the new tree-based point-in-polygon code returns the
 *right* answer for that case (first return is uncached, non-tree answer,
 the rest are tree answers)
 {{{
 select
 generate_series(0,10),
 st_intersects(geog, ST_GeographyFromText('SRID=4326;POINT(-95.9 42.9)'))
 from iowa where name10='Iowa';

  generate_series | st_intersects
 -----------------+---------------
                0 | f
                1 | t
                2 | t
 }}}

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