-
Notifications
You must be signed in to change notification settings - Fork 2
As a data user, I want to perform geospatial searches with configurable spatial fieldsΒ #151
Copy link
Copy link
Open
Description
Checked for duplicates
Yes - I've already checked
π§βπ¬ User Persona(s)
Data User, Data Engineer, Planetary Scientist, GIS Analyst
πͺ Motivation
...so that I can find products for specific geographic regions of interest across different missions without needing to know each mission's spatial metadata field conventions.
π Additional Details
Current Behavior:
within_bbox()andwithin_range()exist only inOrexQueryBuilder(hardcoded toorex:Spatialfields)- Base
QueryBuilderraisesNotImplementedErrorfor spatial methods - Each mission has different spatial metadata field conventions
Proposed Solution:
Implement configurable geospatial search in base QueryBuilder:
# Bounding box search with configurable field prefix
products.within_bbox(
lat_min=-10, lat_max=10,
lon_min=-20, lon_max=20,
spatial_field_prefix="orex:Spatial"
)
# Radius search from a point
products.within_radius(
lat=0, lon=0, radius_km=100,
spatial_field_prefix="orex:Spatial"
)
# Range from target
products.within_range(
range_in_km=5000,
range_field="orex:Spatial.orex:target_range"
)Implementation Approach:
- Move from
NotImplementedErrorto configurable implementation - Accept optional
spatial_field_prefixor individual field parameters - Add
within_radius()method for point+radius queries - Keep
OrexQueryBuildermission-specific defaults
Related:
- Part of Priority Requirements PDF (Requirement 1)
- Replaces closed issue As a user, I want to perform geospatial searches with configurable spatial fieldsΒ #144
For Internal Dev Team To Complete
Acceptance Criteria
Given a user wants to search by bounding box or spatial criteria
When I perform products.within_bbox(lat_min, lat_max, lon_min, lon_max, spatial_field_prefix="custom:Spatial")
Then I expect products filtered by the specified spatial bounds using the configured field names
βοΈ Engineering Details
To be filled by Engineering Node Team
π I&T
To be filled by Engineering Node Team
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
ToDo