[gdal-dev] vsizip and vrt driver

Even Rouault even.rouault at mines-paris.org
Thu Mar 1 12:03:51 EST 2012


Selon Kyle Shannon <ksshannon at gmail.com>:

> Hello all,
> I recently built a VRT from several SRTM tiles that were zipped into
> archives:
>
> gdalbuildvrt srtm.vrt /vsizip/srtm_01_02.zip/srtm_01_02.asc
> /vsizip/srtm_01_07.zip/srtm_01_07.asc /vsizip/srtm_01_02.zip/srtm_01_12.asc
>
> Everything works fine. I changed the relativeToVRT value to "1" and try to
> run gdalinfo from another path and it can't find the files. Am I missing
> something? Is it not legal to use vsizip in vrt files? Thanks. Tested on
> Linux and Windows.

This is exactly the same kind of issue as the one raised by Yves Jacolin
recently about the support of netCDF subdatasets in VRT. Relative paths can only
work with "regular" filenames, not with exotic stuff like /vsiXXX/ or
subdatasets. In that case, you have to use absolute pathnames

>
> kss
>
> /**
>  *
>  * Kyle Shannon
>  * ksshannon at gmail.com
>  *
>  */
>




More information about the gdal-dev mailing list