Skip to content

Running UDF on Vector Cube #197

Closed
Closed

Description

@soxofaan

reported by @mbuchhorn :

  • 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'

Activity

  1. added a commit that references this issue on May 25, 2023
  2. soxofaan commented on May 26, 2023

    @soxofaan
    MemberAuthor

    apparently, the VITO backend now has 3 non-official processes to load geojson data from url:

    • read_vector -> DelayedVector
    • get_geometries -> DelayedVector
    • load_uploaded_files -> DriverVectorCube

    running run_udf on DriverVectorCube is 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_geojson to load geojson from URL

  3. soxofaan commented on May 26, 2023

    @soxofaan
    MemberAuthor

    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
  4. added 4 commits that reference this issue on Jun 6, 2023
  5. added 2 commits that reference this issue on Aug 2, 2023
  6. changed the title [-]failing load_uploaded_files + run_udf[/-] [+]Running UDF on Vector Cube[/+] on Aug 3, 2023
  7. soxofaan commented on Aug 3, 2023

    @soxofaan
    MemberAuthor

    I iterated on PR Open-EO/openeo-api#200 and merged that in f83d1cf which adds initial support for doing apply_dimension with a UDF on a vector cube

  8. added 2 commits that reference this issue on Aug 3, 2023
  9. 6 remaining items

  10. added 13 commits that reference this issue on Aug 4, 2023
  11. jdries commented on Oct 13, 2026

    @jdries
    Contributor

    Closing because we have UDF support on vector cubes. We need more specific issues for remaining requests if there are any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions