mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -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
|
uniqueBasename = outName + self.uniqueSuffix
|
||||||
command += ' {}={}'.format(outName, uniqueBasename)
|
command += ' {}={}'.format(outName, uniqueBasename)
|
||||||
else:
|
else:
|
||||||
# We add an output name to make sure it is unique if the session
|
if outName in parameters and parameters[outName] is not None:
|
||||||
# uses this algorithm several times.
|
# We add an output name to make sure it is unique if the session
|
||||||
#value = self.parameterAsOutputLayer(parameters, outName, context)
|
# uses this algorithm several times.
|
||||||
uniqueOutputName = outName + self.uniqueSuffix
|
#value = self.parameterAsOutputLayer(parameters, outName, context)
|
||||||
command += ' {}={}'.format(outName, uniqueOutputName)
|
uniqueOutputName = outName + self.uniqueSuffix
|
||||||
|
command += ' {}={}'.format(outName, uniqueOutputName)
|
||||||
|
|
||||||
# Add output file to exported layers, to indicate that
|
# Add output file to exported layers, to indicate that
|
||||||
# they are present in GRASS
|
# they are present in GRASS
|
||||||
self.exportedLayers[outName] = uniqueOutputName
|
self.exportedLayers[outName] = uniqueOutputName
|
||||||
|
|
||||||
command += ' --overwrite'
|
command += ' --overwrite'
|
||||||
self.commands.append(command)
|
self.commands.append(command)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user