Skip to content

Commit 84b682d

Browse files
author
gioman
committedOct 16, 2013
the logic for SAGA raster import was not right
1 parent 78679ad commit 84b682d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed
 

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,12 +470,16 @@ def exportRasterLayer(self, source):
470470
self.exportedLayers[source] = destFilename
471471
sessionExportedLayers[source] = destFilename
472472
saga208 = ProcessingConfig.getSetting(SagaUtils.SAGA_208)
473-
if isWindows() or isMac() or not saga208:
473+
if saga208:
474+
if isWindows() or isMac():
475+
return 'io_gdal 0 -GRIDS "' + destFilename + '" -FILES "' + source \
476+
+ '"'
477+
else:
478+
return 'libio_gdal 0 -GRIDS "' + destFilename + '" -FILES "' \
479+
+ source + '"'
480+
else:
474481
return 'io_gdal 0 -TRANSFORM -INTERPOL 0 -GRIDS "' + destFilename + '" -FILES "' + source \
475482
+ '"'
476-
else:
477-
return 'libio_gdal 0 -GRIDS "' + destFilename + '" -FILES "' \
478-
+ source + '"'
479483

480484
def checkBeforeOpeningParametersDialog(self):
481485
msg = SagaUtils.checkSagaIsInstalled()

0 commit comments

Comments
 (0)
Please sign in to comment.