Open-EO / Open-EO/openeo-python-driver
Support `VectorCube` type as `spatial_extent` in `load_collection`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12
- Forks
- 8
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 4
Description
I get an error when providing vector data as spatial_extent in load_collection:
{'loadurl1': {'process_id': 'load_url',
'arguments': {'format': 'Parquet',
'url': 'https://artifactory.vgt.vito.be/artifactory/auxdata-public/gfmap/32736-random-points.geoparquet'}},
'loadcollection1': {'process_id': 'load_collection',
'arguments': {'bands': ['NDVI_10M'],
'id': 'TERRASCOPE_S2_NDVI_V2',
'spatial_extent': {'from_node': 'loadurl1'},
'temporal_extent': ['2022-05-01', '2022-05-30']},
'result': True}}
This process graph results in OpenEoApiError: [500] Internal: Server error: AttributeError("'DriverVectorCube' object has no attribute 'get'")
It's not a blocking issue for me, as there is an easy workaround, by just omitting the spatial_extent in load_collection. However, could we already provide a clearer error message in the meantime?
CC: @Pratichhya
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the shown process graph in load_collection with the VectorCube spatial_extent and trace where the DriverVectorCube object is treated like a mapping. Determine whether the intended outcome is VectorCube support or a clearer validation error, then verify the selected behavior against the reported workaround of omitting spatial_extent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100