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->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 ->setXY($x_real,$y_real);</span><br> <span style="font-weight: bold;">@$map ->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 ->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 < $map->numlayers; $iLayer++)</span><br style="font-weight: bold;"> <span style="font-weight: bold;"> {</span><br style="font-weight: bold;"> <span style="font-weight:
bold;"> $Abfragelayer = $map->GetLayer($iLayer);</span><br style="font-weight: bold;"> <br style="font-weight: bold;"> <span style="font-weight: bold;"> $numResults = $Abfragelayer ->getNumResults();</span><br style="font-weight: bold;"> <br style="font-weight: bold;"> <span style="font-weight: bold;"> if ($numResults == 0)</span><br style="font-weight: bold;"> <span style="font-weight: bold;"> 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->open();</span><br style="font-weight: bold;"> <br> <span style="font-weight: bold;">$Spalte=explode("
",$Abfragelayer->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->getResult(0);</span><br style="font-weight: bold;"> <br> <span style="font-weight: bold;">$si=$resultat->shapeindex;</span><br style="font-weight: bold;"> <span style="font-weight: bold;"> $ti=$resultat->tileindex;</span><br style="font-weight: bold;"> <span style="font-weight: bold;"> $ci=$resultat->classindex;</span><br style="font-weight: bold;"> <br> <span style="text-decoration: underline; font-weight: bold;">$Shape = $Abfragelayer->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!