I am using runalg (qgis:joinattributesbylocation) on two QgsVectorLayer objects. At the end of my script I'm trying to delete all the files created during the script. I can delete everything except the .shp and .dbf files from the two input vector layers for the process algorithm above. I remove all layers from the QgsMapRegistry before I try to delete the files. I've tried deleting all variables pointing to the layers, still doesn't work. The file lock remains until I exit QGIS. I tried the workaround posted here and it doesn't work for me, re-adding and removing the layers from the registry doesn't work. I also created new layers with the same files, added those to the registry, and then remove those, still no luck. The only way I can delete the files is to close QGIS.
Subscribe to:
Post Comments (Atom)
arcpy - Changing output name when exporting data driven pages to JPG?
Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...
-
Im having a problem toggling the visibility of map layers in pyqgis (2.4). I have a simple interface, just the map canvas, no legend, and ba...
-
I have a single table of over 1000 polygons in postgreSQL (with PostGIS), and I have a field "evaluation_type" that only receives ...
-
I simply want to project a polar stereographic raster (EPSG:3411) to Mercator (EPSG:3857) or WGS84 (EPSG:4326). The data I is from NOAA . $g...
No comments:
Post a Comment