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...
-
There have been several Github issues raised regarding Leaflet z-indexing of layers, and I'm still not clear where things stand. I think...
-
I am trying to use MapServer to display a raster image (png). That's it for now at least. However, I am having no luck. When I visit my ...
-
I have a Polyline and would like to add new vertex to before start point or end point or at any part of the polyline using python in qgis. H...
No comments:
Post a Comment