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

For newly created MRFs, calling MRFBand::SetStatistics(...) only affects the aux metadata, not the .mrf file #80

Open
lucianpls opened this issue Dec 5, 2024 · 0 comments

Comments

@lucianpls
Copy link
Member

When using the gdal Band->SetStatistics, only the aux metadata is affected, which is stored in the aux.xml sidecar file. MRF has support for min and max, but they are not updated. They are stored in the .mrf when copying an existing dataset.
To fix, the SetStatistics should be overloaded in MRFBand. For newly created files, since the gdal .mrf xml file is written as soon as some data needs to be written to the data file, but SetStatistics is usually called after most of the data was written, which would require re-creating the .mrf file on dataset close.

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

No branches or pull requests

1 participant