3

Does anyone know why layers would continually be lost from a project and refuse to reload even though the project is regularly saved?

3
  • Which QGIS version you are using?
    – Master Bee
    Commented Nov 16, 2015 at 19:24
  • What kind of layers are they? Database, shapefile...? Commented 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. Commented Nov 18, 2015 at 11:43

1 Answer 1

4

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.
2
  • 1
    A 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.
    – Ian Turton
    Commented Apr 21, 2019 at 8:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.