[mapserver-users] expose WFS feature attributes with mapscript

frequens frequens at gmail.com
Mon Mar 3 10:49:58 EST 2008


I am trying to query a WFS layer by mapscript (5.0.2, both Mapserver
and client side).
The layer draws fine, also labels correctly, even the querymap
highligts the selected records...

The following snippet:
$resultlayer = $map -> getLayerByName ('xxxx');
$theresult = $resultlayer ->getResult(0)->{shapeindex};
$number = $resultlayer -> getNumResults();
echo ("$theresult    $number");

echoes correctly the number of selected features.

Yet, I am unable to get grip of the fid and/or any other attributes
available in the gml.

Any help (piece of code )would be much appreciated...

BR

frequens


More information about the mapserver-users mailing list