[gdal-dev] How to wrap a zarr in a zip and read it with vsizip?

Laurențiu Nicola lnicola at dend.ro
Mon Feb 24 10:18:46 PST 2025


Hi Kurt,

You'll want something like:

cd nczarr_v2.zarr
zip -r ../nczarr_v2.zarr.zip .
gdalinfo /vsizip/../nczarr_v2.zarr.zip

Note that tar makes TAR, not ZIP, archives.

Laurentiu

On Mon, Feb 24, 2025, at 20:09, Kurt Schwehr via gdal-dev wrote:
> Hi all,
> 
> I seem to be having trouble exactly how to correctly make a zip of a zarr and how to correctly specify the vsizip url.
> 
> e.g from autotest/gdrivers/data/zarr
> 
> gdalinfo nczarr_v2.zarr # Works
> tar cf nczarr_v2.zarr.zip nczarr_v2.zarr
> 
> Then what? I've tried lots of variations and not had any success.
> 
> Thanks!
> -Kurt
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250224/4cc926d8/attachment.htm>


More information about the gdal-dev mailing list