Commit e9ad1b56 authored by Daniel Scheffler's avatar Daniel Scheffler

GDAL metadata values are now forced to be strings.

parent ac47b811
Pipeline #3064 failed with stages
in 1 minute and 18 seconds
......@@ -911,7 +911,7 @@ class GeoArray(object):
for bidx in range(self.bands):
band = ds.GetRasterBand(bidx + 1)
meta2write = self.metadata[bidx].to_dict()
meta2write = dict((k, v) for k, v in meta2write.items() if v is not np.nan)
meta2write = dict((k, repr(v)) for k, v in meta2write.items() if v is not np.nan)
if 'band_name' in meta2write:
global_meta['Band_%s' % str(bidx + 1)] = str(meta2write['band_name'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment