I upgraded my Mapserver version from 5.6.x to 6.2.0 (yes, big version jump here!) and I am stuck with getting a shapeObj from a layer by simply using its Index (or FID for shapefiles or GID in case of Postgis).
In the old version I used the following:
$shapeOjbect = $layer->getFeature($fid);
$bounds = $shapeObject->bounds;
which returned to me the rectangular bounds.
Everything has changed in the new version of Mapserver/Mapscript.
GetFeature() is not enabled anymore, and
$layerObj->getShape($resultObj) can be used instead BUT getShape requires the
resultObj(nth result) from a $layerObj->queryByXXX , but there is no XXX = Index (e.g.
There is a $mapObj->queryByIndex(layerIndex, tileIndex, $fid, [$addToquery]), but I have not seen any examples using that function.
I hope I explained clearly.
Does anybody have any experiences on using this function?