[Mapserver-users] PHP/Mapscript, Problem reading ShapeObj
braulioen at ono.com
braulioen at ono.com
Mon Jun 23 02:02:01 PDT 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