[gdal-dev] Retrieving the bounding box of a shapefile using python API

Even Rouault even.rouault at spatialys.com
Fri Aug 14 09:11:47 PDT 2015


Le vendredi 14 août 2015 17:43:12, Andrea Peri a écrit :
> Hi,
> 
> I'm try to use the ogr python api to retrieve some information from a
> shapefile. I see this documentation, http://gdal.org/python/
> But I find nothing to retrieve directly the Bounding box of an entire
> shapefile.
> 
> Is this possible

Yes, see the python snippet at 
http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.html#__RefHeading__6005_1333016408


> or is need to calculate it feature by feature ?
> 
> Thx,

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list