Skip to content

Commit

Permalink
proper metadata dimensions in raster_to_vector
Browse files Browse the repository at this point in the history
  • Loading branch information
jdries committed Aug 12, 2024
1 parent 4cf297c commit 22f89cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openeo_driver/dry_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,13 @@ def _normalize_geometry(self, geometries) -> Tuple[Union[DriverVectorCube, Delay
return geometries, bbox

def raster_to_vector(self):
return self._process(operation="raster_to_vector", arguments={})
dimensions = [SpatialDimension(name=DriverVectorCube.DIM_GEOMETRY,extent=self.metadata.extent)]
if(self.metadata.has_temporal_dimension()):
dimensions.append(self.metadata.temporal_dimension)
if(self.metadata.has_band_dimension()):
dimensions.append(self.metadata.band_dimension)

return self._process(operation="raster_to_vector", arguments={},metadata=CollectionMetadata(metadata={}, dimensions=dimensions))


def resample_cube_spatial(self, target: 'DryRunDataCube', method: str = 'near') -> 'DryRunDataCube':
Expand Down

0 comments on commit 22f89cf

Please sign in to comment.