[gdal-dev] Read image from zip with python and GDAL

Even Rouault even.rouault at mines-paris.org
Tue Jul 3 09:23:38 PDT 2012


Selon Marc Padilla Parellada <padilla.marc at gmail.com>:

> Hello,
>
>
> I would like to read raster files stored within a zip file with python and
> GDAL. Something like this:
>
>

Try this instead :

data=gdal.Open("/vsizip/file.zip/image.tif")

See http://trac.osgeo.org/gdal/wiki/UserDocs/ReadInZip


More information about the gdal-dev mailing list