[gdal-dev] Zarr v2 and compression problem with small blocks

Michael Sumner mdsumner at gmail.com
Mon Oct 14 22:39:34 PDT 2024


When I use compression for ZARR_V2 with these small block sizes, I get an
error:

gdal_translate "/vsicurl/
https://github.com/cran/png/blob/master/inst/img/Rlogo.png?raw=true"
lz4.zarr -of ZARR -co FORMAT=ZARR_V2 -co BLOCKSIZE=4,25,26 -co COMPRESS=LZ4
 -co INTERLEAVE=BAND

Input file size is 100, 76
0ERROR 1: Decompressed tile lz4.zarr/lz4/0.0.0 has not expected size after
filters

It's fine with COMPRESS=NONE, but other compression-on options error also.

With larger block sizes it's seemingly ok

gdal_translate "/vsicurl/
https://github.com/cran/png/blob/master/inst/img/Rlogo.png?raw=true"
lz4.zarr -of ZARR -co FORMAT=ZARR_V2 -co BLOCKSIZE=4,100,100 -co
COMPRESS=LZ4  -co INTERLEAVE=BAND

Input file size is 100, 76
0...10...20...30...40...50...60...70...80...90...100 - done.

Is there some kind of minimum on block size, I tried to find a combination
that gave a clue, it's below 4x100x100, and doesn't seem related to single
chunk or multiple.

Cheers, Mike

-- 
Michael Sumner
Research Software Engineer
Australian Antarctic Division
Hobart, Australia
e-mail: mdsumner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241015/bc9bd245/attachment.htm>


More information about the gdal-dev mailing list