[Mapserver-users] #features for layer in php/mapscript?

Vincent Schut schut at sarvision.com
Mon Apr 28 10:52:17 EDT 2003


Hi all,

is there a way to determine the number of features (polygons, lines...) of a 
layerObj in php/mapscript?

I'm playing around with the $layer->getshape() function, but I have to provide 
it a shapeindex which appears to be a feature index. However, I can't find a 
way to determine the max shapeindex for a particular layer (without 
seperately opening the dbf file). Am I overlooking something?
-- 
______________________________________
Vincent Schut (schut at sarvision.com)
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com



More information about the mapserver-users mailing list