[mapserver-users] getting min/max extents

Daniel Morissette morissette at dmsolutions.ca
Tue Oct 30 11:05:27 EST 2001


> 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.



More information about the mapserver-users mailing list