Bistrais, Bob wrote:
$centroid = $oShape->getCentroid();
from http://mapserver.org/mapscript/php/index.html#shapeobj :
"pointObj getCentroid()
Returns a point object representing the centroid of the shape. Only
available if php/mapscript is built with GEOS library."
Here you get an point object
print "Centroid=". $centroid(x).",". $centroid(y);
try print "Centroid=".$centroid->x;
Thomasch
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users