File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -605,18 +605,21 @@ def apply_dimension(
605
605
context : Optional [dict ] = None ,
606
606
env : EvalEnv ,
607
607
) -> "DriverVectorCube" :
608
+ # Is callback a single run_udf node process?
608
609
single_run_udf = SingleRunUDFProcessGraph .parse_or_none (process )
609
610
610
611
if single_run_udf :
611
612
# Process with single "run_udf" node
612
613
# TODO: check provided dimension with actual dimension of the cube
614
+ # TODO: also support along geometries dim (e.g. when it's the only dim)?
613
615
if dimension in (self .DIM_BANDS , self .DIM_PROPERTIES ) and target_dimension is None :
614
616
log .warning (
615
617
f"Using experimental feature: DriverVectorCube.apply_dimension along dim { dimension } and empty cube"
616
618
)
617
- # TODO: this is non-standard special case: vector cube with only geometries, but no "cube" data
619
+ # TODO: data chunking (e.g. large feature collections)
618
620
gdf = self ._as_geopandas_df ()
619
621
feature_collection = openeo .udf .FeatureCollection (id = "_" , data = gdf )
622
+ # TODO: dedicated UDF signature to indicate to work on vector cube through a feature collection based API
620
623
udf_data = openeo .udf .UdfData (
621
624
proj = {"EPSG" : self ._geometries .crs .to_epsg ()},
622
625
feature_collection_list = [feature_collection ],
You can’t perform that action at this time.
0 commit comments