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

PostGIS trac at osgeo.org
Mon Oct 22 11:17:18 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):

 Confirmed there is something fishy in st_intersects in 1.5/2.0. It's in
 the point-in-polygon test, as seen here, the first point of the polygon
 returns false
 {{{
 select st_intersects(
   geog,
   ST_GeographyFromText('SRID=4326;POINT(-95.9 42.9)')
 )
 from iowa
  where name10 = 'Iowa';
 }}}

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