Skip to content

Commit 842b3d7

Browse files
committed
fixup! fixup! fixup! fixup! fixup! Issue #114/#141 convert inline GeoJSON in aggregate_spatial to VectorCube
1 parent f43b98b commit 842b3d7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

openeo_driver/ProcessGraphDeserializer.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,9 @@ def run_udf(args: dict, env: EvalEnv):
13221322
if isinstance(data, AggregatePolygonResult):
13231323
pass
13241324
if isinstance(data, DriverVectorCube):
1325-
# TODO: this is temporary adaption to old style save results. Better have proper DriverVectorCube support in run_udf?
1325+
# TODO: this is temporary stopgap measure, converting to old-style save results to stay backward compatible.
1326+
# Better have proper DriverVectorCube support in run_udf?
1327+
# How does that fit in UdfData and UDF function signatures?
13261328
data = data.to_legacy_save_result()
13271329

13281330
if isinstance(data, (DelayedVector, dict)):

openeo_driver/dummy/dummy_backend.py

+1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def assert_polygon_sequence(geometries: Union[Sequence, BaseMultipartGeometry])
228228
coords[self.metadata.band_dimension.name] = self.metadata.band_names
229229
shape = [len(coords[d]) for d in dims]
230230
data = numpy.arange(numpy.prod(shape), dtype="float")
231+
# Start with some more interesting values (e.g. to test NaN/null/None handling)
231232
data[0] = 2.345
232233
data[1] = float("nan")
233234
cube = xarray.DataArray(

0 commit comments

Comments
 (0)