Commit 653eeaae authored by benjaminpillot's avatar benjaminpillot
Browse files

Use gdal CopyFiles built-in function to copy file, rather than CreateCopy

parent 96d001e5
......@@ -14,8 +14,9 @@ def _copy_to_file(raster, out_file):
"""
try:
out_ds = raster._gdal_driver.CreateCopy(out_file, raster._gdal_dataset, strict=0)
out_ds = None
raster._gdal_driver.CopyFiles(out_file, raster._file)
# out_ds = raster._gdal_driver.CreateCopy(out_file, raster._gdal_dataset, strict=0)
# out_ds = None
return 0
except RuntimeError:
return 1
......
Supports Markdown
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