diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-07-23 16:02:56 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-07-23 16:03:09 +0200 |
commit | 412d9fb7280f382578698ce77831f1649e75c959 (patch) | |
tree | 13d299c9e2129abdf6c9fcd070cdfc7ac8a5cef8 | |
parent | 5693db925731efe67aafcdc8ac93ca7e17eaabf9 (diff) |
Older GDAL version need the destination path to be a string not a
path-like argument.
-rw-r--r-- | export_raster.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/export_raster.py b/export_raster.py index f16e140..6f40e64 100644 --- a/export_raster.py +++ b/export_raster.py @@ -99,7 +99,8 @@ def processRaster(layername : str, source['import'] |= { '_progress': progress, - '_dest': Path(f'/proc/self/fd/{dir_fd}').joinpath(dst.name).joinpath(dst.name + '.tiff') + '_dest': str(Path(f'/proc/self/fd/{dir_fd}').joinpath(dst.name) + .joinpath(dst.name + '.tiff')) } importSource0(None, **source['source'], args=source['import'], cachedir=cachedir, |