Open smalers opened 4 years ago
Other commands have similar locking issues that cause workflows to not complete. I found this GitHub issue related to R integration that may offer some clues.
I fixed the IntersectGeoLayer command to use unique temporary GeoPackage temporary files, when files are needed by the QGIS algorithm. This seems to solve the problem and could be implemented for other commands. It does use more disk space, but the GeoProcessor has a way to track temporary files between sessions and delete on the next startup. There is also a QGIS "scratch layer" type, that I need to evaluate. Keep this issue open for now.
The
RasterizeGeoLayer
command uses thegdal:rasterize
algorithm to do the work. This algorithm seems to retain a lock on the temporary files and consequently they cannot be removed. The work-around is that the command uses a unique timestamped name for temporary files. The downside is that this will eat up disk space. Some ideas for solving include: