aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-07-23 16:02:56 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-07-23 16:03:09 +0200
commit412d9fb7280f382578698ce77831f1649e75c959 (patch)
tree13d299c9e2129abdf6c9fcd070cdfc7ac8a5cef8
parent5693db925731efe67aafcdc8ac93ca7e17eaabf9 (diff)
export_raster: Fix compatibility with older GDAL versions.HEADmaster
Older GDAL version need the destination path to be a string not a path-like argument.
-rw-r--r--export_raster.py3
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,