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

Andrea Peri aperi2007 at gmail.com
Fri Aug 14 14:50:59 PDT 2015


Hi Even,

thx for link.
It is exactly what I need.

A.


2015-08-14 18:11 GMT+02:00 Even Rouault <even.rouault at spatialys.com>:
> 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



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the gdal-dev mailing list