Hi,
I have the following code:
$oMap->prepareQuery();
$oPoint = ms_newPointObj();
$oPoint->setXY($x,$y); //coords received from a AJAX call
$oLayer = $oMap->GetLayerByName($szLayer); //Name received from a
AJAX call
$status = $oLayer->queryByPoint($oPoint, MS_MULTIPLE, 1);
$status = $oLayer->open();
$result = $oLayer->getResult(0);
$numResults = $oLayer->getNumResults();
$shape = $oLayer->getShape($result->shapeindex,$result->tileindex);
echo(var2json($shape));
This results in the follwing json code to be returned:
{"_handle_":Resource id #45,"numlines":1,"type":0,"index":-1,
"tileindex":-1,"classindex":0,"numvalues":8,"text":"",
"bounds":{"_handle_":Resource id #46,"minx":607000,
"miny":677000,"maxx":607000,"maxy":677000},
"values":[null,null,null,null,null,null,null,null]}
No matter what I try, it keeps returning empty shapes. How can this
be?
P.S. I'm using mapserver 5.2.1 from the ms4w package.
Cheers,
Tom
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users