Skip to content
Permalink
Browse files

the logic for SAGA raster import was not right

  • Loading branch information
gioman
gioman committed Oct 16, 2013
1 parent 78679ad commit 84b682d46edb38bb79b135bb8aa8a96589cf98d2
Showing with 8 additions and 4 deletions.
  1. +8 −4 python/plugins/processing/saga/SagaAlgorithm.py
@@ -470,12 +470,16 @@ def exportRasterLayer(self, source):
self.exportedLayers[source] = destFilename
sessionExportedLayers[source] = destFilename
saga208 = ProcessingConfig.getSetting(SagaUtils.SAGA_208)
if isWindows() or isMac() or not saga208:
if saga208:
if isWindows() or isMac():
return 'io_gdal 0 -GRIDS "' + destFilename + '" -FILES "' + source \
+ '"'
else:
return 'libio_gdal 0 -GRIDS "' + destFilename + '" -FILES "' \
+ source + '"'
else:
return 'io_gdal 0 -TRANSFORM -INTERPOL 0 -GRIDS "' + destFilename + '" -FILES "' + source \
+ '"'
else:
return 'libio_gdal 0 -GRIDS "' + destFilename + '" -FILES "' \
+ source + '"'

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

0 comments on commit 84b682d

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