Skip to content

Commit

Permalink
Merge pull request #2037 from NaturalGIS/fix_saga_split_rgb
Browse files Browse the repository at this point in the history
fix saga split rgb bands
  • Loading branch information
volaya committed May 20, 2015
2 parents a495c8c + 5729227 commit f782e77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/saga/SplitRGBBands.py
Expand Up @@ -74,10 +74,10 @@ def processAlgorithm(self, progress):
b = self.getOutputValue(SplitRGBBands.B)
commands = []
version = SagaUtils.getSagaInstalledVersion(True)
trailing = "000" if version != "2.1.4" else ""
lib = "" if isWindows() else "lib"
trailing = ""
lib = ""
commands.append('%sio_gdal 0 -GRIDS "%s" -FILES "%s"' % (lib, temp, input)
+ '"')
)
commands.append('%sio_gdal 1 -GRIDS "%s_%s1.sgrd" -FORMAT 1 -TYPE 0 -FILE "%s"' %(lib, temp, trailing, r)
)
commands.append('%sio_gdal 1 -GRIDS "%s_%s2.sgrd" -FORMAT 1 -TYPE 0 -FILE "%s"' %(lib, temp, trailing, g)
Expand Down

0 comments on commit f782e77

Please sign in to comment.