Skip to content

Commit 5729227

Browse files
author
Giovanni Manghi
committed
fix saga split rgb bands
1 parent aaabad2 commit 5729227

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/plugins/processing/algs/saga/SplitRGBBands.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ def processAlgorithm(self, progress):
7171
b = self.getOutputValue(SplitRGBBands.B)
7272
commands = []
7373
version = SagaUtils.getSagaInstalledVersion(True)
74-
trailing = "000" if version != "2.1.4" else ""
75-
lib = "" if isWindows() else "lib"
74+
trailing = ""
75+
lib = ""
7676
commands.append('%sio_gdal 0 -GRIDS "%s" -FILES "%s"' % (lib, temp, input)
77-
+ '"')
77+
)
7878
commands.append('%sio_gdal 1 -GRIDS "%s_%s1.sgrd" -FORMAT 1 -TYPE 0 -FILE "%s"' %(lib, temp, trailing, r)
7979
)
8080
commands.append('%sio_gdal 1 -GRIDS "%s_%s2.sgrd" -FORMAT 1 -TYPE 0 -FILE "%s"' %(lib, temp, trailing, g)

0 commit comments

Comments
 (0)