mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] fixed wrong indentation
This commit is contained in:
parent
83cca9b7cd
commit
5cfd708b7b
@ -373,22 +373,23 @@ class GrassAlgorithm(GeoAlgorithm):
|
||||
outputCommands.append('g.region rast=' + out.name
|
||||
+ uniqueSufix)
|
||||
if self.grassName == 'r.composite':
|
||||
command = 'r.out.tiff -t --verbose'
|
||||
command += ' input='
|
||||
command += out.name + uniqueSufix
|
||||
command += ' output="' + filename + '"'
|
||||
commands.append(command)
|
||||
outputCommands.append(command)
|
||||
else:
|
||||
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
|
||||
command += ' input='
|
||||
if self.grassName == 'r.horizon':
|
||||
command += out.name + uniqueSufix + '_0'
|
||||
else:
|
||||
command += out.name + uniqueSufix
|
||||
command += ' output="' + filename + '"'
|
||||
commands.append(command)
|
||||
outputCommands.append(command)
|
||||
command = 'r.out.tiff -t --verbose'
|
||||
command += ' input='
|
||||
command += out.name + uniqueSufix
|
||||
command += ' output="' + filename + '"'
|
||||
commands.append(command)
|
||||
outputCommands.append(command)
|
||||
else:
|
||||
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
|
||||
command += ' input='
|
||||
|
||||
if self.grassName == 'r.horizon':
|
||||
command += out.name + uniqueSufix + '_0'
|
||||
else:
|
||||
command += out.name + uniqueSufix
|
||||
command += ' output="' + filename + '"'
|
||||
commands.append(command)
|
||||
outputCommands.append(command)
|
||||
|
||||
if isinstance(out, OutputVector):
|
||||
filename = out.value
|
||||
|
@ -360,21 +360,21 @@ class SagaAlgorithm(GeoAlgorithm):
|
||||
continue
|
||||
|
||||
if self.cmdname == 'RGB Composite':
|
||||
if isWindows() or isMac() or not saga208:
|
||||
commands.append('io_grid_image 0 -IS_RGB -GRID:"' + filename2
|
||||
if isWindows() or isMac() or not saga208:
|
||||
commands.append('io_grid_image 0 -IS_RGB -GRID:"' + filename2
|
||||
+ '" -FILE:"' + filename
|
||||
+ '"')
|
||||
else:
|
||||
commands.append('libio_grid_image 0 -IS_RGB -GRID:"' + filename2
|
||||
else:
|
||||
commands.append('libio_grid_image 0 -IS_RGB -GRID:"' + filename2
|
||||
+ '" -FILE:"' + filename
|
||||
+ '"')
|
||||
else:
|
||||
if isWindows() or isMac() or not saga208:
|
||||
commands.append('io_gdal 1 -GRIDS "' + filename2
|
||||
if isWindows() or isMac() or not saga208:
|
||||
commands.append('io_gdal 1 -GRIDS "' + filename2
|
||||
+ '" -FORMAT ' + str(formatIndex)
|
||||
+ ' -TYPE 0 -FILE "' + filename + '"')
|
||||
else:
|
||||
commands.append('libio_gdal 1 -GRIDS "' + filename2
|
||||
else:
|
||||
commands.append('libio_gdal 1 -GRIDS "' + filename2
|
||||
+ '" -FORMAT 1 -TYPE 0 -FILE "' + filename
|
||||
+ '"')
|
||||
|
||||
@ -471,11 +471,11 @@ class SagaAlgorithm(GeoAlgorithm):
|
||||
sessionExportedLayers[source] = destFilename
|
||||
saga208 = ProcessingConfig.getSetting(SagaUtils.SAGA_208)
|
||||
if saga208:
|
||||
if isWindows() or isMac():
|
||||
return 'io_gdal 0 -GRIDS "' + destFilename + '" -FILES "' + source \
|
||||
if isWindows() or isMac():
|
||||
return 'io_gdal 0 -GRIDS "' + destFilename + '" -FILES "' + source \
|
||||
+ '"'
|
||||
else:
|
||||
return 'libio_gdal 0 -GRIDS "' + destFilename + '" -FILES "' \
|
||||
else:
|
||||
return 'libio_gdal 0 -GRIDS "' + destFilename + '" -FILES "' \
|
||||
+ source + '"'
|
||||
else:
|
||||
return 'io_gdal 0 -TRANSFORM -INTERPOL 0 -GRIDS "' + destFilename + '" -FILES "' + source \
|
||||
|
Loading…
x
Reference in New Issue
Block a user