Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Antimeridian-crossing reprojections can return reversed bounds that both intersection paths mishandle, incorrectly marking valid coverage as empty.
1 open issue
What changed in this PR
Improves spatial extent metadata for cube inspection in #827 by adding best-effort reprojection when optional pyproj is available.
Changes:
- Adds shared reprojection helpers and AUTO-UTM resolution.
- Reuses reprojection logic in size estimates.
- Updates tests, optional dependencies, and documentation.
| File | Description |
|---|---|
| tests/rest/datacube/test_datacube.py | Updates projected extent expectations. |
| tests/metadata/test_metadata.py | Tests reprojection, AUTO-UTM, and dependency fallbacks. |
| pyproject.toml | Adds pyproj to Jupyter extras. |
| plans/827-spatial-extent-reprojection.md | Records implementation decisions and limitations. |
| openeo/metadata/_estimates.py | Reuses shared reprojection helpers. |
| openeo/metadata/_crs.py | Adds CRS and bounds transformation helpers. |
| openeo/metadata/__init__.py | Reprojects filtered spatial extents. |
| CHANGELOG.md | Documents the metadata improvement. |
Review effort: Balanced
Comment on lines
+54
to
+55
| if not all(math.isfinite(v) for v in reprojected): | ||
| return None |
This branch has not been deployed
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.

part of #827 :
handle spatial metadata extent reprojection when pyproj dependency is available