[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
> FAILURE:
> 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
/vsizip/{/path/to/the/zip.any_or_no_ext}
/vsizip/{/path/to/the/zip.any_or_no_ext}/path/inside/it
And you can even nest it as many times as you need in case of zip inside zip
etc...
/vsizip/{/vsizip/{/path/to/the/zip.any_or_no_ext}/path/inside/it}/....
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list