Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zarr: update V3 format to latest specification #7706

Merged
merged 25 commits into from
May 8, 2023

Conversation

rouault
Copy link
Member

@rouault rouault commented May 7, 2023

Fixes #7637.
On top of PR #7684. only commits starting with "Zarr: move code belonging to classes to dedicated files" belong to this PR

  • Support core V3 specification, as well as gzip, blosc, endian and transpose codecs (sharding codec excluding then)
  • implement group, array, attribute and dimension renaming

This breaks backwards / upwards compatibility with previous GDAL versions: Zarr V3 datasets generated by GDAL < 3.8 can't be read by GDAL >= 3.8dev, and ZarrV3 datasets generated by GDAL >= 3.8dev can't be read by GDAL < 3.8

@rouault rouault added this to the 3.8.0 milestone May 7, 2023
Copy link
Collaborator

@elpaso elpaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not familiar with the format but this LGTM.

My only concern is about the rename operations implementations of the various objects, it seems to me there is quite a lot of similar or identical code: would it be possible to use a template or an abstract base class to reduce duplicated code?

autotest/gdrivers/memmultidim.py Show resolved Hide resolved
frmts/zarr/zarr.h Show resolved Hide resolved
frmts/zarr/zarr.h Show resolved Hide resolved
frmts/zarr/zarr.h Outdated Show resolved Hide resolved
frmts/zarr/zarr_v2_array.cpp Outdated Show resolved Hide resolved
@rouault
Copy link
Member Author

rouault commented May 8, 2023

My only concern is about the rename operations implementations of the various objects, it seems to me there is quite a lot of similar or identical code: would it be possible to use a template or an abstract base class to reduce duplicated code?

I've tried to reduce amount of copied&pasted code in c81d12f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zarr V3 out of date with latest spec
2 participants