[mapserver-users] getting min/max extents

klehr1 at tampabay.rr.com klehr1 at tampabay.rr.com
Tue Oct 30 12:52:50 EST 2001


Also in the demo there's a perl script showextent.pl I believe works as
well.  Attached here.  You have to compiled the perl stuff.  I modified two
lines in the script to so that you use is ./showextent.pl <SHAPEFILE>


----- Original Message -----
From: Daniel Morissette <morissette at dmsolutions.ca>
To: Jim Burnett <jimburnett at ntelos.net>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, October 30, 2001 11:05 AM
Subject: Re: [mapserver-users] getting min/max extents


> > Jim Burnett wrote:
> >
> > Is there a small application that can tell me the min and max extents
> > for a shape file?
> >
>
> If you have OGR/GDAL installed on your system then the OGRINFO program
> can return you the extents of a layer.  See the OGRINFO examples at
> http://mapserver.gis.umn.edu/doc/ogr-howto.html#ogrinfo
>
> Also, a getExtent() method has been added to the shapeFileObj class in
> MapScript version 3.5 (Perl or PHP)... so that's another option.
>
> --
> ------------------------------------------------------------
>  Daniel Morissette               morissette at dmsolutions.ca
>  DM Solutions Group              http://www.dmsolutions.ca/
> ------------------------------------------------------------
>   Don't put for tomorrow what you can do today, because if
>       you enjoy it today you can do it again tomorrow.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: showextent.pl
Type: application/octet-stream
Size: 711 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20011030/dcf13218/showextent.obj


More information about the mapserver-users mailing list