OpenWaterFoundation / owf-app-geoprocessor-python

Open Water Foundation geoprocessor based on QGIS
GNU General Public License v3.0
2 stars 1 forks source link

Clean up temporary files from GDAL processes #382

Open smalers opened 3 years ago

smalers commented 3 years ago

The GeoProcessor uses QGIS processing algorithms, which may result in running command line GDAL or other programs. These can leave artifacts on the filesystem that accumulate. Specific files can be cleanly handled, such as layer files and code has been implemented to remove temporary files both immediately and in delayed fashion if the temporary file is locked. However, this still leaves files such as the following. The GeoProcessor needs to clean up these files, for example by removing more known temporary files and adding code to remove empty temporary file folders. These files are in C:\Users\user\AppData\Local\Temp and there may be other files.