Does anyone know why layers would continually be lost from a project and refuse to reload even though the project is regularly saved?
-
Which QGIS version you are using?– Master BeeCommented Nov 16, 2015 at 19:24
-
What kind of layers are they? Database, shapefile...?– Matthias KuhnCommented Nov 16, 2015 at 20:45
-
Using QGIS 10. The layers are all saved as separate shapefiles (vector and raster) - and then the whole lot is saved as a project. What happens is that layers disappear when the project is opened, and with no apparent pattern, i.e. never the same layer is lost.– Claire FeldkampCommented Nov 18, 2015 at 11:43
Add a comment
|
1 Answer
I can think of a few causes of this:
- if the layers are "temporary scratch layers" or "memory layers" then they are NEVER saved, and will be discarded when the project is closed. In this case you'd need to manually save these layers as a permanent file format, eg shapefile.
- if the layers are generated through an algorithm in the toolbox, and the output layer is set to
Save to temporary file
then the layer will also be deleted when QGIS is closed. You'd need to make sure you choose a proper output filename when running the algorithm.
-
1A common GIS misconception is that saving the project will also save the data. Not the case, the project (or MXD for that matter) is just a bookmark to the data. The data itself needs to be saved separately as well. Commented Nov 17, 2015 at 0:03
-
I have to recommend the Memory Layer Saver plugin, so that memory layers are persisted across restarts. Commented Apr 21, 2019 at 8:55