You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support VectorCube type as spatial_extent in load_collection #385
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?
@VincentVerelst , do you have a job-id or request ID?
Otherwise the probably stack trace is:
File "/opt/venv/lib64/python3.8/site-packages/openeo_driver/ProcessGraphDeserializer.py", line 747, in load_collection
arguments["spatial_extent"] = _extract_bbox_extent(
File "/opt/venv/lib64/python3.8/site-packages/openeo_driver/ProcessGraphDeserializer.py", line 1464, in _extract_bbox_extent
if handle_geojson and extent.get("type") in [
AttributeError: 'DriverVectorCube' object has no attribute 'get'
aoi = eoconn.load_url("https://raw.githubusercontent.com/Pratichhya/Pratichhya.github.io/refs/heads/master/content/fewparcels.geojson", format="GeoJSON")
# aoi_pq = eoconn.load_url("https://artifactory.vgt.vito.be/artifactory/auxdata-public/marketplace/services_dependency/wig_file.parquet", format="Parquet")
cube = eoconn.load_collection(
"TERRASCOPE_S2_NDVI_V2",
spatial_extent=aoi,
temporal_extent=["2022-05-01", "2022-05-30"],
bands=["NDVI_10M"],
)
# Rescale digital number to physical values and take temporal maximum.
cube = cube.apply(lambda x: 0.004 * x - 0.08).max_time()
cube.execute_batch(title="ndvi timeseries using url")
Error:
Preflight process graph validation raised: [ProcessParameterInvalid] The value passed for parameter 'spatial_extent' in process 'load_collection' is invalid: Expected dictionary/mapping but got vector cube.
The workaround is to replace the spatial_extent argument to load_collection with add a call to filter_spatial(aoi).
Activity
EmileSonneveld commentedon Mar 20, 2025
@VincentVerelst , do you have a job-id or request ID?
Otherwise the probably stack trace is:
VincentVerelst commentedon Mar 20, 2025
@EmileSonneveld, j-25032012233243e4b07404b15f1a26a8 on Terrascope
bossie commentedon Jul 10, 2026
This popped up again: Teams
Error:
The workaround is to replace the
spatial_extentargument toload_collectionwith add a call tofilter_spatial(aoi).