Skip to content

Commit f782e77

Browse files
committed
Merge pull request #2037 from NaturalGIS/fix_saga_split_rgb
fix saga split rgb bands
2 parents a495c8c + 5729227 commit f782e77

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
@@ -74,10 +74,10 @@ def processAlgorithm(self, progress):
7474
b = self.getOutputValue(SplitRGBBands.B)
7575
commands = []
7676
version = SagaUtils.getSagaInstalledVersion(True)
77-
trailing = "000" if version != "2.1.4" else ""
78-
lib = "" if isWindows() else "lib"
77+
trailing = ""
78+
lib = ""
7979
commands.append('%sio_gdal 0 -GRIDS "%s" -FILES "%s"' % (lib, temp, input)
80-
+ '"')
80+
)
8181
commands.append('%sio_gdal 1 -GRIDS "%s_%s1.sgrd" -FORMAT 1 -TYPE 0 -FILE "%s"' %(lib, temp, trailing, r)
8282
)
8383
commands.append('%sio_gdal 1 -GRIDS "%s_%s2.sgrd" -FORMAT 1 -TYPE 0 -FILE "%s"' %(lib, temp, trailing, g)

0 commit comments

Comments
 (0)