Open-EO / Open-EO/openeo-python-driver

Support `VectorCube` type as `spatial_extent` in `load_collection`

Open
#385 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

vector cubes
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.