[mapserver-users] layer extent

Sven Schroeter schroeter at netgis.de
Wed Oct 21 11:47:40 EDT 2009


Hi,

I try to get the layerextent with php mapscript (mapserver 5.02 on Windows):

$layer = $map->getLayerByName($qlayer);
$extentobj = $layer->getExtent();

echo $extentobj->minx." ".$extentobj->miny." ".$extentobj->maxx." ".$extentobj->maxy;

This works fine with shape-layers but not with postgis. How can I do this?
Thanks
Sven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091021/7cf73bec/attachment.html


More information about the mapserver-users mailing list