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

Craig de Stigter craig.destigter at koordinates.com
Thu Feb 24 01:09:50 PST 2011


Thanks for the confirmation. Created
#845<http://trac.osgeo.org/postgis/ticket/845>

On Thu, Feb 24, 2011 at 9:41 PM, Sandro Santilli <strk at keybit.net> wrote:

> 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
>



-- 
Koordinates Ltd
PO Box 1604, Shortland St, Auckland, New Zealand
Phone +64-9-966 0433 Fax +64-9-969 0045
Web http://www.koordinates.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110224/a555ed17/attachment.html>


More information about the postgis-users mailing list