Add early spatial_extent validation for common user input errors in load_collection//validation#501
Open
Copilot wants to merge 3 commits into
Open
Add early spatial_extent validation for common user input errors in load_collection//validation#501Copilot wants to merge 3 commits into
spatial_extent validation for common user input errors in load_collection//validation#501Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/Open-EO/openeo-python-driver/sessions/f49937f3-cedf-46bb-b843-8bb0ff83e417 Co-authored-by: jdries <5937096+jdries@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Open-EO/openeo-python-driver/sessions/f49937f3-cedf-46bb-b843-8bb0ff83e417 Co-authored-by: jdries <5937096+jdries@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Check for common errors in spatial extent
Add early May 14, 2026
spatial_extent validation for common user input errors in load_collection//validation
jdries
approved these changes
May 14, 2026
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.
spatial_extentmistakes currently produce either late-stage backend errors or unclear failures. This PR adds early, explicit validation for common malformed extents so both execution and/validationreturn actionableProcessParameterInvalidmessages.Input shape/type validation
spatial_extentto be a mapping object (reject list-style extents like[1,2,3,4]at driver level).west/south/east/northas numeric scalar values (reject list/invalid types and booleans).Extent consistency checks
west < eastsouth < northCRS-missing coordinate sanity check
crsis omitted (defaulting toEPSG:4326), reject coordinates outside valid lon/lat bounds.Validation endpoint coverage
/validationtests for:spatial_extentwest/eastsouth/northcrsExample of newly caught input:
This now fails early with a clear message that coordinates are outside EPSG:4326 range and
crsshould be provided.