Skip to content

Commit 05ceb68

Browse files
committedJul 3, 2013
[sextante]adapted SAGA export procedure to SAGA 2.1
1 parent 0416168 commit 05ceb68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/sextante/saga/SagaAlgorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ def processAlgorithm(self, progress):
302302
filename = out.getCompatibleFileName(self)
303303
filename2 = SextanteUtils.tempFolder() + os.sep + os.path.basename(filename) + ".sgrd"
304304
if SextanteUtils.isWindows() or SextanteUtils.isMac():
305-
commands.append("io_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 1 -TYPE 0 -FILE \"" + filename + "\"");
305+
commands.append("io_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 4 -TYPE 0 -FILE \"" + filename + "\"");
306306
else:
307-
commands.append("libio_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 1 -TYPE 0 -FILE \"" + filename + "\"");
307+
commands.append("libio_gdal 1 -GRIDS \"" + filename2 + "\" -FORMAT 4 -TYPE 0 -FILE \"" + filename + "\"");
308308

309309
#4 Run SAGA
310310
SagaUtils.createSagaBatchJobFileFromSagaCommands(commands)

0 commit comments

Comments
 (0)
Please sign in to comment.