Hi list<div><br></div><div>This query returns false, but the box and point intersect:</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<font class="Apple-style-span" face="'courier new', monospace">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);<br>
</font><font class="Apple-style-span" face="'courier new', monospace"> st_intersects <br></font><font class="Apple-style-span" face="'courier new', monospace">---------------<br></font><font class="Apple-style-span" face="'courier new', monospace"> f<br>
</font><font class="Apple-style-span" face="'courier new', monospace">(1 row)</font></blockquote><div><br></div><div>Tested on postgis 1.5.2. postgis_version(): 1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1</div><div><br>
</div><div>Using geos via python it works:</div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<font class="Apple-style-span" face="'courier new', monospace">>>> from django.contrib.gis import geos<br>>>> p = geos.GEOSGeometry('POLYGON((169.699607857174 -46.5061218662,169.699607857174 -46.5061195965597,169.699608806526 -46.5061195965597,169.699608806526 -46.5061218662,169.699607857174 -46.5061218662))')<br>
>>> pt = geos.GEOSGeometry('POINT(169.69960846592 -46.5061209281002)')<br>>>> pt.intersects(p)<br>True</font></blockquote></div><div><br></div><div>Any ideas? Thanks</div><div><br></div><div>Craig de Stigter</div>
<div><br></div>-- <br>Koordinates Ltd<br>PO Box 1604, Shortland St, Auckland, New Zealand<br>Phone +64-9-966 0433 Fax +64-9-969 0045<br>Web <a href="http://www.koordinates.com">http://www.koordinates.com</a><br>
</div>