<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>Hi All,<br>
<br>
I'm trying to query a layer by a point, which didn't succeed, some simplified code:<br>
<br>
<div style="margin-left: 40px;">$oLayer = $oMap-&gt;GetLayerByName('Basins');<br>
$pnt = ms_newPointObj();<br>
$pnt-&gt;setXY(451913,460265);<br>
if ($oLayer-&gt;queryByPoint($pnt, MS_SINGLE,-1) == MS_SUCCESS) {<br>
&nbsp;&nbsp;&nbsp; $rResultCache = $oLayer-&gt;getResult(0);<br>
&nbsp;&nbsp;&nbsp; $oLayer-&gt;open();&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <br>
&nbsp;&nbsp;&nbsp; $oResultShape = $oLayer-&gt;getFeature($rResultCache-&gt;index);<br>
&nbsp;&nbsp;&nbsp; echo var2json($rResultCache);<br>
&nbsp;&nbsp;&nbsp; echo var2json($oResultShape);<br>
}<br>
</div><br>
The corresponding AJAX result was:<br>
<pre role="list"><code class="wrappedText focusRow" role="listitem">{"shapeindex":0,"tileindex":-1,"classindex":0}</code><br>
</pre><pre role="list"><code class="wrappedText focusRow" role="listitem">{"_handle_":Resource id #45,"numlines":1,"type":2,"index":0,"tileindex":-1,"classindex":0,"numvalues"</code><code class="wrappedText focusRow" role="listitem">:1,"text":"","bounds":{"_handle_":Resource id #46,"minx":3631647.00338,"miny":3100024.19118,"maxx":5147119</code><code class="wrappedText focusRow" role="listitem">.933,"maxy":3961971.08033},"values":[null]}<br>
</code></pre>So the query is a success, but no result. The coords are correct and in the map projection (actuallly read off the fusion frontend). I've tried different layers, even rasters (which is the final goal) but no succes. <br>
<br>
Am I missing something? BTW I'm running mapserver 5.2.1 (ms4w 2.3.1)<br>
<br>
Cheers,<br>
Tom<br>
 </HTML>