[Mapserver-users] Problem with ShapeObj.

braulioen at ono.com braulioen at ono.com
Fri Jun 20 07:21:43 EDT 2003


Hi at all,

I'm using PHP/Mapscript and I can't read the attributes of a shapefile 
of polygons. I read a ShapeObj so and as she appears in the
documentation:

$shapefile = ms_newShapefileObj("C:\vector\mapa", -1);  //-1 for read
$shape = $shapefile->getShape(3);

when I read its index I don't have problems

echo $shape->{index};   ------>>>>>>   3

but when I read the values of its attributes:

echo $shape->{numvalues};     ------>>>>>>>   0

and this polygon has two attributes, Why? 
Thanks in advance.
Braulio M.




More information about the mapserver-users mailing list