Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Layers disappear from project if one is made permanent. #16

Closed
mikedufty opened this issue Jan 8, 2024 · 3 comments
Closed

Memory Layers disappear from project if one is made permanent. #16

mikedufty opened this issue Jan 8, 2024 · 3 comments

Comments

@mikedufty
Copy link

mikedufty commented Jan 8, 2024

We have been having issues with memory layers sometimes losing all features when reopening saved projects.
I have now found a way to reproduce this.
It appears to be triggered by using the save scratch layer function (clicking on memory chip icon to right of layer in layer pane).
Tested by
1 create blank project
2 add two temporary layers and add features to them.
3 use the save scratch layer function to convert one to a shape file.
4 save, close and reopen the project, the other scratch layer has lost it's features. Display memory layer information shows 0 features.

Using 3.28.14 LTR and up to date memory layer plugin.
image

In other projects which have older memory layers imported from previous versions of the plugin, it appears the older memory layers may retain features.

@mikedufty
Copy link
Author

Test.zip
Added example files
MLtest1.qgz has 3 memory layers.
MLtest2.qgz is the same file saved after 'save scratch layer' function used to convert the lake layer to shapefile.

@YoannQDQ
Copy link
Owner

YoannQDQ commented Jan 8, 2024

Great work, thanks. I don't have much time to work on that at the moment, but hopefully I'll be able to fix it by the end of the month

@YoannQDQ
Copy link
Owner

Finaly had some time to fix this. Version 5.0.2 is waiting for approval.
#15 might be a duplicate of this issue, but I'm waiting for feedback on 5.0.2 before closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants