[postgis-devel] [PostGIS] #884: Unstable results from ST_Within

PostGIS trac at osgeo.org
Fri Mar 25 10:47:59 PDT 2011


#884: Unstable results from ST_Within
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 This is pretty puzzling.
 Load attached dataset, then:

 {{{
 -- This query says none of the 3 polygons contain the point
 =# select gid, ST_Within(
 ST_GeomFromText('POINT (-115.04252 36.05137)', -1), the_geom
 ) from foo_reload;

 -- This query says polygon 3 does contain the point
 =# select gid, ST_Within(
 ST_GeomFromText('POINT (-115.04252 36.05137)', -1), the_geom
 ) from foo_reload where gid = 3;

 }}}

 Storing the point geometry into a table makes no difference.
 Geometry number 3 really contains the point. The other two don't.

 I've tested this with PostgreSQL 8.4.3, PostGIS 2.0.0SVN and GEOS 3.3.0dev

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/884>
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