Skip to content

Commit

Permalink
Issue #663 ensure vector_to_raster bands are strings
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Mar 13, 2024
1 parent 885ea48 commit e31897e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openeogeotrellis/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ def vector_to_raster(self, input_vector_cube: DriverVectorCube, target_raster_cu
bands_dim, time_dim = None, None
if len(cube.dims) > 1 and str(cube.dims[-1]) != t_dim:
bands = cube[str(cube.dims[-1])].values
bands_dim = BandDimension(name="bands", bands = [Band(b, b, None, None, None) for b in bands])
bands_dim = BandDimension(name="bands", bands = [Band(str(b), str(b), None, None, None) for b in bands])
if t_dim in cube.dims:
time_extent = (cube[t_dim].min().values.tolist(), cube[t_dim].max().values.tolist())
time_dim = TemporalDimension(name="t", extent=time_extent)
Expand Down

0 comments on commit e31897e

Please sign in to comment.