Skip to content
Permalink
Browse files

[sextante]adapted SAGA export procedure to SAGA 2.1

  • Loading branch information
volaya committed Jul 3, 2013
1 parent 0416168 commit 05ceb68635128a565638e52a15e9c2e38861e79f
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/sextante/saga/SagaAlgorithm.py
@@ -302,9 +302,9 @@ def processAlgorithm(self, progress):
filename = out.getCompatibleFileName(self)
filename2 = SextanteUtils.tempFolder() + os.sep + os.path.basename(filename) + ".sgrd"
if SextanteUtils.isWindows() or SextanteUtils.isMac():
commands.append("io_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 1 -TYPE 0 -FILE \"" + filename + "\"");
commands.append("io_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 4 -TYPE 0 -FILE \"" + filename + "\"");
else:
commands.append("libio_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 1 -TYPE 0 -FILE \"" + filename + "\"");
commands.append("libio_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 4 -TYPE 0 -FILE \"" + filename + "\"");

#4 Run SAGA
SagaUtils.createSagaBatchJobFileFromSagaCommands(commands)

0 comments on commit 05ceb68

Please sign in to comment.
You can’t perform that action at this time.