gdal icon indicating copy to clipboard operation
gdal copied to clipboard

ZARR: aborted create leaves directory and files

Open mdsumner opened this issue 1 year ago • 0 comments

What is the bug?

I think an error like "Invalid number of values in BLOCKSIZE" should clean up the empty directories left behind.

I encountered this by switching from a multiband PNG BLOCKSIZE=4,4,5 to a single band TIF BLOCKSIZE=1,128,256 naively thinking in degenerate dimension terms.

Steps to reproduce the issue

gdal_translate  gdrivers/data/png/byte_with_xmp.png  fail.zarr -of ZARR -co BLOCKSIZE=1,4,4
ERROR 1: Invalid number of values in BLOCKSIZE

we now have leftover to clean up:

fail.zarr/
fail.zarr/.zmetadata
fail.zarr/fail
fail.zarr/.zgroup

Versions and provenance

GDAL 3.11.0dev-388a5a764a, released 2024/10/15

ubuntu 22.04

Additional context

No response

mdsumner avatar Oct 15 '24 21:10 mdsumner