Commit 93cd35d6 authored by Daniel Scheffler's avatar Daniel Scheffler

Added GDAL cache flushing.

parent e9ad1b56
Pipeline #3065 failed with stages
in 1 minute and 18 seconds
......@@ -918,6 +918,7 @@ class GeoArray(object):
del meta2write['band_name']
band.SetMetadata(meta2write)
band.FlushCache()
del band
# set global domain metadata
......@@ -930,6 +931,8 @@ class GeoArray(object):
# ds.SetMetadata(envi_meta_domain, 'ENVI')
# ds_orig = None
ds.FlushCache()
driver.CreateCopy(out_path, ds, options=creationOptions if creationOptions else [])
# rows, columns, bands => bands, rows, columns
......
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