Skip to content

handle spatial metadata extent reprojection - #996

Open
soxofaan wants to merge 2 commits into
masterfrom
issue827-spatial-extent-reprojection
Open

soxofaan wants to merge 2 commits into
masterfrom
issue827-spatial-extent-reprojection

Conversation

@soxofaan

@soxofaan soxofaan commented Dec 3, 2026

Copy link
Copy Markdown
Member

part of #827 :

handle spatial metadata extent reprojection when pyproj dependency is available

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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 thread openeo/metadata/_crs.py
Comment on lines +54 to +55
if not all(math.isfinite(v) for v in reprojected):
return None

This branch has not been deployed

No deployments
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.

2 participants