[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 11:21:01 PST 2025


I suspect it won't make a lot of difference. SOZIP is designed to allow seeking within a compressed file, but Zarr is tile- (block) based, where each of those is stored in a different file. So you end up uncompressing a whole file anyway.

Laurentiu

On Mon, Feb 24, 2025, at 21:17, Scott via gdal-dev wrote:
> There's GDAL's sozip (Search Optimized Zip) utility as well. I have no 
> idea if it works with .zarr. I'm sure someone will correct me! ;)
>
> cd nczarr_v2.zarr
> sozip ../nczarr_v2.zarr.zip .
> sozip -l /vsizip/../nczarr_v2.zarr.zip
>
> On 2/24/25 10: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
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list