File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -633,18 +633,21 @@ def apply_dimension(
633
633
context : Optional [dict ] = None ,
634
634
env : EvalEnv ,
635
635
) -> "DriverVectorCube" :
636
+ # Is callback a single run_udf node process?
636
637
single_run_udf = SingleRunUDFProcessGraph .parse_or_none (process )
637
638
638
639
if single_run_udf :
639
640
# Process with single "run_udf" node
640
641
# TODO: check provided dimension with actual dimension of the cube
642
+ # TODO: also support along geometries dim (e.g. when it's the only dim)?
641
643
if dimension in (self .DIM_BANDS , self .DIM_PROPERTIES ) and target_dimension is None :
642
644
log .warning (
643
645
f"Using experimental feature: DriverVectorCube.apply_dimension along dim { dimension } and empty cube"
644
646
)
645
- # TODO: this is non-standard special case: vector cube with only geometries, but no "cube" data
647
+ # TODO: data chunking (e.g. large feature collections)
646
648
gdf = self ._as_geopandas_df ()
647
649
feature_collection = openeo .udf .FeatureCollection (id = "_" , data = gdf )
650
+ # TODO: dedicated UDF signature to indicate to work on vector cube through a feature collection based API
648
651
udf_data = openeo .udf .UdfData (
649
652
proj = {"EPSG" : self ._geometries .crs .to_epsg ()},
650
653
feature_collection_list = [feature_collection ],
You can’t perform that action at this time.
0 commit comments