[mapserver-users] getExtent for Postgis Layer
Sven Schroeter
schroeter at netgis.de
Thu Mar 12 03:06:19 PDT 2015
Hi,
I try to get the extent of my layers using php mapscript:
$map= ms_newMapObj($mapfilepath.'\map.map');
$mylayer = $map->getLayerByName($getlayer);
$layerextent = $mylayer->getExtent();
echo $layerextent->minx." ".$layerextent->miny." ".$layerextent->maxx."
".$layerextent->maxy;
This works fine for layers with shapefiles, but there comes no result for my
postgis layers.
Any idea?
Sven
More information about the MapServer-users
mailing list