Support raster cube input to run_udf via STAC catalog materialization#1680
Draft
EmileSonneveld with Copilot wants to merge 3 commits into
Draft
Support raster cube input to run_udf via STAC catalog materialization#1680EmileSonneveld with Copilot wants to merge 3 commits into
EmileSonneveld with Copilot wants to merge 3 commits into
Conversation
…C catalog Implement SupportsRunUdf interface on GeopysparkDataCube so that a save_result process graph node output can be passed to run_udf. The datacube is materialized to disk as a STAC catalog and the root catalog URL is passed as structured data to the UDF. Agent-Logs-Url: https://github.com/Open-EO/openeo-geopyspark-driver/sessions/5ba19e23-5555-4cbb-84fe-1b4906c165fd Co-authored-by: EmileSonneveld <2298426+EmileSonneveld@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Open-EO/openeo-geopyspark-driver/sessions/5ba19e23-5555-4cbb-84fe-1b4906c165fd Co-authored-by: EmileSonneveld <2298426+EmileSonneveld@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for CWL using raster cube input
Support raster cube input to run_udf via STAC catalog materialization
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a
save_resultnode feeds intorun_udf, the datacube needs to be materialized to disk and passed as a STAC catalog URL. Previously,run_udfcouldn't accept aDriverDataCubeas input.Changes
GeopysparkDataCubenow implementsSupportsRunUdf— theProcessGraphDeserializer.run_udf()detects this interface and dispatches directly to the cube'srun_udfmethodrun_udf()materializes the cube to a STAC catalog — callswrite_assets()to produce GeoTIFFs, then writes a STAC 1.0.0 catalog linking the items, and passes the catalog URL as structured data to the UDF_write_stac_catalog()helper — writes valid STAC catalog + item JSON files fromwrite_assetsoutputUDF receives the catalog URL like this: