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

woodbri at swoodbridge.com woodbri at swoodbridge.com
Mon Apr 28 21:52:46 EDT 2003


Vincent,

$oShp = $layer->getshape()
$num = $oShp->numshapes;
$shptype = $oShp->type;
etc

See the shapeObj in the php/mapscript doc.

-Steve W.

On 28 Apr 2003 at 16:54, Vincent Schut wrote:

> Sorry, I should add some system info: linux, more or less latest
> GDAL/GD2/FT2, php 4.3.1, mapserver3.7dev from 1 or 2 weeks ago.
> 
> 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
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 





More information about the mapserver-users mailing list