[ka-Map-users] Zoom To Layer

Wagner, Jeffrey S. (DMS/CISD) j.wagner at ngc.com
Tue Sep 12 13:41:48 EDT 2006


I used MapScript to get the extent: $rect = $oLayer->getExtent();
I don't think there is a setExtent function....

-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of Ryan
Ollerenshaw
Sent: Tuesday, September 12, 2006 7:57 AM
To: Lucian Bancescu
Cc: ka-map-users at lists.maptools.org
Subject: Re: [ka-Map-users] Zoom To Layer

Lucian Bancescu wrote:
> A pretty straightforward way to obtain the extent of a layer is using 
> ogrinfo, which comes with gdal-ogr tool.
> A possible usage:
> /
> ogrinfo /path/to/shapefiles  layername | grep Extent
> /

Can you provide the MapScript to add to a layer so each layer has it own

extent?
_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users



More information about the ka-Map-users mailing list