<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>mapquery issue</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT FACE="Arial">Hi,</FONT>
</P>

<P><FONT FACE="Arial">I have a mapquery plugin issue: While doing a queryByBbox() request on a area where one element must be found, the cartoclient display the following error: </FONT></P>

<P><FONT FACE="Courier New">class CartocommonException { protected $message = 'Error [8, Trying to get property of non-object, /exec/applis/sglpgo/G01R00C02/cartoweb3/coreplugins/query/server/ServerQuery.php, 122] Backtrace: file: 200 - /exec/applis/sglpgo/G01R00C02/cartoweb3/common/Common.php call: Common::cartowebErrorHandler() file: 122 - /exec/applis/sglpgo/G01R00C02/cartoweb3/coreplugins/query/server/ServerQuery.php call: Common::cartowebErrorHandler() file: 122 - /exec/applis/sglpgo/G01R00C02/cartoweb3/coreplugins/query/server/ServerQuery.php call: ServerQuery::resultToTable() file: 227 -</FONT></P>

<P><FONT FACE="Courier New">...</FONT>
</P>

<P><FONT FACE="Arial">Adding traces to the log and trying to analyse it, it looks like the serveurMapquery plugin found one element and the extractResults&nbsp; $msLayer-&gt;getResult($i) return an object as follow:</FONT></P>

<P><FONT FACE="Courier New">Thu Mar 22 16:25:22 2007,703 [30941] DEBUG ServerMapquery - class stdClass {</FONT>

<BR><FONT FACE="Courier New">&nbsp; public $shapeindex = 1841530366;</FONT>

<BR><FONT FACE="Courier New">&nbsp; public $tileindex = -1;</FONT>

<BR><FONT FACE="Courier New">&nbsp; public $classindex = 6;</FONT>

<BR><FONT FACE="Courier New">}</FONT>
</P>

<P><FONT FACE="Arial">Which is return a shape to the ServerQuery plugin as follow:</FONT>
</P>

<P><FONT FACE="Courier New">Thu Mar 22 16:25:22 2007,704 [30941] DEBUG ServerQuery - resultshape=</FONT>

<BR><FONT FACE="Courier New">Thu Mar 22 16:25:22 2007,705 [30941] DEBUG ServerQuery - array (</FONT>

<BR><FONT FACE="Courier New">&nbsp; 0 =&gt; false,</FONT>

<BR><FONT FACE="Courier New">)</FONT>
</P>

<P><FONT FACE="Arial">Any clue?</FONT>
</P>
<BR>

<P><FONT FACE="Arial">Thanks in advance,</FONT>

<BR><FONT FACE="Arial">Franck</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>