feat(rust/sedona-raster-zarr): derive Zarr transform from spatial:bbox#975
Draft
james-willis wants to merge 1 commit into
Draft
feat(rust/sedona-raster-zarr): derive Zarr transform from spatial:bbox#975james-willis wants to merge 1 commit into
james-willis wants to merge 1 commit into
Conversation
eb8071d to
068099c
Compare
When a group has no explicit spatial:transform, derive a GDAL-order geotransform from spatial:bbox plus the array's own spatial shape (+ optional spatial:registration, default "pixel"). The derivation lives in the loader's transform-fallback chain, ahead of the coordinate-array path, so it uses the array shape already in hand rather than a separate, drift-prone spatial:shape attribute (bbox alone is sufficient). geozarr.rs stays a pure attribute decoder that surfaces the bbox and registration; the loader applies them. A malformed or degenerate/inverted bbox is non-fatal: it warns and falls through to the coordinate arrays (then identity), matching how a bad coordinate array is handled. When the bbox path derives a transform and the group declares no CRS, a geographic CRS is inferred from the spatial dim names, mirroring the coordinate-array path.
068099c to
35ac003
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.