[postgis-devel] [postgis-users] st_intersects() returns false with point and polygon that obviously intersect

Sandro Santilli strk at keybit.net
Thu Feb 24 00:41:49 PST 2011


On Thu, Feb 24, 2011 at 09:35:44AM +0100, Sandro Santilli wrote:
> On Thu, Feb 24, 2011 at 12:58:24PM +1300, Craig de Stigter wrote:
> > Hi list
> > 
> > This query returns false, but the box and point intersect:
> > 
> > select st_intersects('POINT(169.69960846592 -46.5061209281002)'::geometry,
> > > 'POLYGON((169.699607857174 -46.5061218662,169.699607857174
> > > -46.5061195965597,169.699608806526 -46.5061195965597,169.699608806526
> > > -46.5061218662,169.699607857174 -46.5061218662))'::geometry);
> > >  st_intersects
> 
> Does sound like a bug:
> 
>  st_relate | st_intersects | st_disjoint
> -----------+---------------+-------------
>  0FFFFF212 | f             | f
> 
> ST_Relate is correct, ST_Disjoint is correct, ST_Intersects is _wrong_
> 
>    I B E
>    -----
>  I 0 F F
>  B F F F
>  E 2 1 2
> 
> Could you please file a bug for this ?
>  http://trac.osgeo.org/postgis

For the record: the GEOS side is fine, so must be some shortcut in postgis.

--strk; 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list