diff --git a/openeo/rest/datacube.py b/openeo/rest/datacube.py index f79331772..6603ffbb7 100644 --- a/openeo/rest/datacube.py +++ b/openeo/rest/datacube.py @@ -1009,7 +1009,7 @@ def aggregate_spatial( ), connection=self._connection, # TODO: also add new "geometry" dimension #457 - metadata=self.metadata.reduce_spatial(), + metadata=None if self.metadata is None else self.metadata.reduce_spatial(), ) @openeo_process