[gdal-dev] /vsizip/ requires zip extension?

Even Rouault even.rouault at spatialys.com
Tue Oct 4 09:51:21 PDT 2016

Le mardi 04 octobre 2016 18:19:13, Martin Landa a écrit :
> Hi,
> recently I found out that /vsizip/ requires `zip` extension for the
> input file. Eg.
> ogrinfo /vsizip/test.zip -ro -q
> 1: test (3D Polygon)
> while
> cp test.zip test
> ogrinfo /vsizip/test -ro -q
> Unable to open datasource `/vsizip/test' with the following drivers.
> Why is the extension required? 

For filenames like /vsizip//path/to.zip/path/inside/it.tif

The good news is that in trunk I've recently relaxed that since I needed to 
deal with .tar files with extensions not ending with .tar, so you can now use 
syntaxes like


And you can even nest it as many times as you need in case of zip inside zip 



Spatialys - Geospatial professional services

More information about the gdal-dev mailing list