mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing][grass] Fix skipped outputs are still added in grass commands
This commit is contained in:
parent
526e590c8d
commit
113e16351d
@ -633,15 +633,16 @@ class Grass7Algorithm(QgsProcessingAlgorithm):
|
||||
uniqueBasename = outName + self.uniqueSuffix
|
||||
command += ' {}={}'.format(outName, uniqueBasename)
|
||||
else:
|
||||
# We add an output name to make sure it is unique if the session
|
||||
# uses this algorithm several times.
|
||||
#value = self.parameterAsOutputLayer(parameters, outName, context)
|
||||
uniqueOutputName = outName + self.uniqueSuffix
|
||||
command += ' {}={}'.format(outName, uniqueOutputName)
|
||||
if outName in parameters and parameters[outName] is not None:
|
||||
# We add an output name to make sure it is unique if the session
|
||||
# uses this algorithm several times.
|
||||
#value = self.parameterAsOutputLayer(parameters, outName, context)
|
||||
uniqueOutputName = outName + self.uniqueSuffix
|
||||
command += ' {}={}'.format(outName, uniqueOutputName)
|
||||
|
||||
# Add output file to exported layers, to indicate that
|
||||
# they are present in GRASS
|
||||
self.exportedLayers[outName] = uniqueOutputName
|
||||
# Add output file to exported layers, to indicate that
|
||||
# they are present in GRASS
|
||||
self.exportedLayers[outName] = uniqueOutputName
|
||||
|
||||
command += ' --overwrite'
|
||||
self.commands.append(command)
|
||||
|
Loading…
x
Reference in New Issue
Block a user