Dear people, <br>    <br>    I have got a problem querying a layer with ArcSDE and a created pointobj();<br>  In my mapfile I definded the correct parameters for the  ArcSDE-Connection because I can display the layers without any problems.<br>    <br>    When I want to query a layer, it says:<br>    <b style="font-weight: bold;">Fatal error</b><span style="font-weight: bold;">:  [MapServer Error]: msSDELayerGetShape(): SE_stream_fetch_row(): Invalid pointer argument to function. (-65)   in </span><b style="font-weight: bold;">/../../webgis.php</b><span style="font-weight: bold;"> on line </span><b style="font-weight: bold;">142<br>  <br>  </b>Line 142 of my webgis.php says the following:<b style="font-weight: bold;"><br>  $Shape = $Abfragelayer-&gt;getShape($ti,$si);<br>  <br>  </b>bevor line 142 I defined the queryable layer and the results:<br>    <span style="font-weight: bold;">//create point object and querybypoint</span><br style="font-weight: bold;">    <span
 style="font-weight: bold;">$punkt=ms_newPointObj();</span><br style="font-weight: bold;">    <span style="font-weight: bold;">$punkt -&gt;setXY($x_real,$y_real);</span><br>    <span style="font-weight: bold;">@$map -&gt;queryByPoint($punkt, MS_SINGLE, -1);</span><br>    <br>    <span style="font-weight: bold;">//test, if query was succesful</span><br style="font-weight: bold;">    <span style="font-weight: bold;">if((@$map -&gt;queryByPoint($punkt, MS_SINGLE, -1))==MS_SUCCESS){</span><br style="font-weight: bold;">    <span style="font-weight: bold;">$Abfrage="Abfrage hat geklappt";</span><br>    <br>    <span style="font-weight: bold;">//find queryable layer</span><br style="font-weight: bold;">    <span style="font-weight: bold;">for($iLayer=0; $iLayer &lt; $map-&gt;numlayers; $iLayer++)</span><br style="font-weight: bold;">    <span style="font-weight: bold;">&nbsp;&nbsp;&nbsp; {</span><br style="font-weight: bold;">    <span style="font-weight:
 bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $Abfragelayer =   $map-&gt;GetLayer($iLayer);</span><br style="font-weight: bold;">    <br style="font-weight: bold;">    <span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $numResults = $Abfragelayer -&gt;getNumResults();</span><br style="font-weight: bold;">    <br style="font-weight: bold;">    <span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($numResults == 0)</span><br style="font-weight: bold;">    <span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;</span><br style="font-weight: bold;">    <br>    <span style="font-weight: bold;">//open table of queryable layer and read row</span><br style="font-weight: bold;">    <span style="font-weight: bold;">$Abfragelayer-&gt;open();</span><br style="font-weight: bold;">    <br>    <span style="font-weight: bold;">$Spalte=explode("
 ",$Abfragelayer-&gt;getMetaData("RESULT_FIELDS"));</span><br style="font-weight: bold;">    <br>    <span style="font-weight: bold;">//read   entry of row</span><br>    <br>    <span style="font-weight: bold;">//define specific object of shape</span><br style="font-weight: bold;">    <span style="font-weight: bold;">$resultat=$Abfragelayer-&gt;getResult(0);</span><br style="font-weight: bold;">    <br>    &nbsp;<span style="font-weight: bold;">$si=$resultat-&gt;shapeindex;</span><br style="font-weight: bold;">    <span style="font-weight: bold;">&nbsp;$ti=$resultat-&gt;tileindex;</span><br style="font-weight: bold;">    <span style="font-weight: bold;">&nbsp;$ci=$resultat-&gt;classindex;</span><br style="font-weight: bold;">    <br>    <span style="text-decoration: underline; font-weight: bold;">$Shape = $Abfragelayer-&gt;getShape($ti,$si);<br>  <br>  </span>Surely  I made something wrong with correct options and parameters regarding to  ArcSDE in my php-script, because I am newbie
 to MapScript<br>    <br>    Can anybody help? Regards, Ruth<p>
                <hr size=1>Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!<br>Jetzt <a href=http://de.messenger.yahoo.com>Yahoo! Messenger</a> installieren!