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
loading vector cube with connection.vectorcube_from_paths (which uses load_uploaded_files process)
run UDF on that cube
fails with
File ".../openeo_driver/ProcessGraphDeserializer.py", line 1491, in run_udf
data = data.to_legacy_save_result()
File ".../openeo_driver/datacube.py", line 366, in to_legacy_save_result
if cube.dims == (self.DIM_GEOMETRIES, "t"):
AttributeError: 'NoneType' object has no attribute 'dims'
hmm, I tried to set up a POC based on read_vector/DelayedVector, but that doesn't seem to be working either: DelayedVector strips out all properties along the way (keeping only the geometries):
before passing the vector data to run_udf: so you can not access properties from your intput data
after run_udf, e.g. in save_result: so you can not access properties that were added in the UDF
Activity
Issue #197 best effort DriverVectorCube.to_legacy_save_result when no…
soxofaan commentedon May 26, 2023
apparently, the VITO backend now has 3 non-official processes to load geojson data from url:
read_vector->DelayedVectorget_geometries->DelayedVectorload_uploaded_files->DriverVectorCuberunning
run_udfonDriverVectorCubeis not properly supported yet, so it might be better to use one of the others for now.also related: Open-EO/openeo-processes#322 which recommends to use
load_geojsonto load geojson from URLsoxofaan commentedon May 26, 2023
hmm, I tried to set up a POC based on
read_vector/DelayedVector, but that doesn't seem to be working either:DelayedVectorstrips out all properties along the way (keeping only the geometries):run_udf: so you can not access properties from your intput datarun_udf, e.g. insave_result: so you can not access properties that were added in the UDFIssue #197 Initial support for run_udf on DriverVectorCube
Add env to SupportsRunUdf
Update of SupportsRunUdf.ru_udf API
Issue #197 Initial support for run_udf on DriverVectorCube
PR #200 finetune VectorCube.apply_dimension
PR #200 finetune VectorCube.apply_dimension
[-]failing load_uploaded_files + run_udf[/-][+]Running UDF on Vector Cube[/+]soxofaan commentedon Aug 3, 2023
I iterated on PR Open-EO/openeo-api#200 and merged that in f83d1cf which adds initial support for doing
apply_dimensionwith a UDF on a vector cubesoxofaan commentedon Aug 3, 2023
Some related API/process questions/discussions:
load_geojsonissues openeo-processes#448load_geojsonandload_url#211Issue #197 add basic pg based test of UDF on VectorCube
fixup! Issue #197 add basic pg based test of UDF on VectorCube
6 remaining items
Issue #114/#211/#197 from_geodataframe: add dummy cube when no proper…
fixup! Issue #114/#211/#197 from_geodataframe: add dummy cube when no…
fixup! fixup! Issue #114/#211/#197 from_geodataframe: add dummy cube …
Issue #114/#211/#197 tests for `load_geojson` and its `properties` arg
Issue #114/#211/#197 from_geodataframe: add dummy cube when no proper…
Issue #114/#211/#197 bump version to 0.61.0a1
Issue #114/#211/#197 bump version to 0.61.0a1
Issue #197 chore: import cleanup in feature branch
Issue #197 UDF on vector cubes: also allow `apply_dimension(dimension…
Issue #197 add more UDF on vector cube tests
Issue #197 chore: import cleanup in feature branch
Issue #197/#211/#213 use load_geojson in TestVectorCubeRunUDF
Issue #114/#211/#197 vector cube `apply_dimension`: put results in cu…
jdries commentedon Oct 13, 2026
Closing because we have UDF support on vector cubes. We need more specific issues for remaining requests if there are any.