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 @@ -624,18 +624,21 @@ def apply_dimension(
624
624
context : Optional [dict ] = None ,
625
625
env : EvalEnv ,
626
626
) -> "DriverVectorCube" :
627
+ # Is callback a single run_udf node process?
627
628
single_run_udf = SingleRunUDFProcessGraph .parse_or_none (process )
628
629
629
630
if single_run_udf :
630
631
# Process with single "run_udf" node
631
632
# TODO: check provided dimension with actual dimension of the cube
633
+ # TODO: also support along geometries dim (e.g. when it's the only dim)?
632
634
if dimension in (self .DIM_BANDS , self .DIM_PROPERTIES ) and target_dimension is None :
633
635
log .warning (
634
636
f"Using experimental feature: DriverVectorCube.apply_dimension along dim { dimension } and empty cube"
635
637
)
636
- # TODO: this is non-standard special case: vector cube with only geometries, but no "cube" data
638
+ # TODO: data chunking (e.g. large feature collections)
637
639
gdf = self ._as_geopandas_df ()
638
640
feature_collection = openeo .udf .FeatureCollection (id = "_" , data = gdf )
641
+ # TODO: dedicated UDF signature to indicate to work on vector cube through a feature collection based API
639
642
udf_data = openeo .udf .UdfData (
640
643
proj = {"EPSG" : self ._geometries .crs .to_epsg ()},
641
644
feature_collection_list = [feature_collection ],
You can’t perform that action at this time.
0 commit comments