Closed kannes closed 6 months ago
This can be used as a workaround currently:
for output in self.outputDefinitions():
outputName = output.name()
if outputName in parameters :
results[outputName] = parameters[outputName]
results["OUTPUT"] = output_path
Thanks for this input ! I'll consider this for the next version.
Fixed in 1.9 version (pending approval)
When I specify
"OUTPUT": QgsProcessing.TEMPORARY_OUTPUT
for thevisibility:viewshed
algorithm, the returned dictionary of results does not include a path to a temporary file (like QGIS' native raster algorithms would).You can see this too if you execute the algorithm graphically in QGIS' processing toolbox and do not specify a file path to save to:
vs a working tool like
native:createconstantrasterlayer
:This behaviour makes it impossible to use the viewshed analysis in a chain of
processing.run()
calls to other algorithms and potentially also the modeller?