<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>OGR ODBC spatial query has invalid resultset</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi List,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Sorry about all the questions I have been sending. I'm hoping someone can shed light on this one.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">After a QueryByPoint or QueryByRect operation in PHP, the number of results is correct, but the resultCacheMemberObj always points to the first &quot;getNumResults()&quot; objects. If there are 4 results, it holds references to objects 1-4. For one result, it always points to the 1st object. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">This is -not- the case for QueryByAttributes, though. The resultCacheMemberObj is correct for this type of query.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">This only occurs for OGR ODBC layers. I have tried MDB and CSV, with the same problem&#8230;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">If anyone knows why, please let me know. If someone thinks this is a bug, I'll file it.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Regards,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Jacob</FONT>
</P>
<BR>

<P><B><FONT COLOR="#009500" FACE="Arial">J</FONT><FONT COLOR="#009500" SIZE=1 FACE="Arial">ACOB</FONT> <FONT COLOR="#009500" FACE="Arial">D</FONT><FONT COLOR="#009500" SIZE=1 FACE="Arial">ELFOS<BR>
</FONT><FONT COLOR="#009500" FACE="Arial">GIS</FONT><FONT COLOR="#009500" SIZE=1 FACE="Arial"></FONT> <FONT COLOR="#009500" FACE="Arial">A</FONT><FONT COLOR="#009500" SIZE=1 FACE="Arial">NALYST</FONT><BR>
</B><FONT COLOR="#000000" SIZE=2 FACE="Arial">Maunsell Australia Pty Ltd<BR>
629 Newcastle Street, Leederville, WA 6007</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">PO Box 81, Leederville, WA 6902</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">Western Australia</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">ABN 20 093 846 925<BR>
<BR>
Tel     + 61 8 9281 6185<BR>
Fax    + 61 8 9281 6297<BR>
</FONT><U><FONT COLOR="#009C21" SIZE=2 FACE="Arial">jacob.delfos@maunsell.com</FONT></U>
</P>

</BODY>
</HTML>