mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
the logic for SAGA raster import was not right
This commit is contained in:
parent
78679ad144
commit
84b682d46e
@ -470,12 +470,16 @@ class SagaAlgorithm(GeoAlgorithm):
|
||||
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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user