mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-09 00:35:20 -05:00
Instead of requiring clients to generate temporary file names themselves, (or use the cryptic "memory:" string!), this PR adds a static constant QgsProcessing.TEMPORARY_OUTPUT If a layer/sink output parameter is set to QgsProcessing.TEMPORARY_OUTPUT, then the temporary output filename will be generated automatically at algorithm run time. This means callers don't need to mess around with finding appropriate temporary folders and paths. Another benefit is that TEMPORARY_OUTPUT is stored in the processing history, so if you re-run a previous algorithm which was set to output to a temporary file, it no longer tries to use that same previous temporary path and instead generates a new one.