Fatal error: [MapServer Error]: msSDELayerGetShape():
Mark Adams
markadams at CUESTASYS.COM
Wed Mar 8 13:37:59 PST 2006
I have had the same problem as Ruth reported below. Has anyone else seen
this or know of a possible reason?
Thanks in advance.
-Mark Adams
mark.adams at dpra.com
On Wed, 22 Feb 2006 13:47:40 +0100, =?iso-8859-1?q?
ruth=20sch=FFfffff6nbuchner?= <ruthschoenbuchner at YAHOO.DE> wrote:
>
>Dear people,
>
> I have got a problem querying a layer with ArcSDE and a created
>pointobj();
> In my mapfile I definded the correct parameters for the
>ArcSDE-Connection because I can display the layers without any problems.
>
> When I want to query a layer, it says:
> Fatal error: [MapServer Error]: msSDELayerGetShape():
>SE_stream_fetch_row(): Invalid pointer argument to function. (-65) in
>/../../webgis.php on line 142
>
> Line 142 of my webgis.php says the following:
> $Shape = $Abfragelayer->getShape($ti,$si);
>
> bevor line 142 I defined the queryable layer and the results:
> //create point object and querybypoint
> $punkt=ms_newPointObj();
> $punkt ->setXY($x_real,$y_real);
> @$map ->queryByPoint($punkt, MS_SINGLE, -1);
>
> //test, if query was succesful
> if((@$map ->queryByPoint($punkt, MS_SINGLE, -1))==MS_SUCCESS){
> $Abfrage="Abfrage hat geklappt";
>
> //find queryable layer
> for($iLayer=0; $iLayer < $map->numlayers; $iLayer++)
> {
> $Abfragelayer = $map->GetLayer($iLayer);
>
> $numResults = $Abfragelayer ->getNumResults();
>
> if ($numResults == 0)
> continue;
>
> //open table of queryable layer and read row
> $Abfragelayer->open();
>
> $Spalte=explode(" ",$Abfragelayer->getMetaData("RESULT_FIELDS"));
>
> //read entry of row
>
> //define specific object of shape
> $resultat=$Abfragelayer->getResult(0);
>
> $si=$resultat->shapeindex;
> $ti=$resultat->tileindex;
> $ci=$resultat->classindex;
>
> $Shape = $Abfragelayer->getShape($ti,$si);
>
> Surely I made something wrong with correct options and parameters
>regarding to ArcSDE in my php-script, because I am newbie to MapScript
>
> Can anybody help? Regards, Ruth
>
>
>---------------------------------
>Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
>Jetzt Yahoo! Messenger installieren!
More information about the MapServer-users
mailing list