Giter VIP home page Giter VIP logo

Comments (5)

Gustry avatar Gustry commented on June 11, 2024

A lot of plugins generates some layers in memory or in the temp folder (Processing is the biggest one).
I think it's QGIS which should have a look about the source before saving (if a layer is not in /tmp or in memory).
Maybe improving&using this plugin : https://plugins.qgis.org/plugins/MemoryLayerSaver/ ?

from quickosm.

sfkeller avatar sfkeller commented on June 11, 2024

I thought about this too, that QGIS should care about this and I discussed it with QGIS core programmers. The conclusion is that QGIS can't be made responsible for this. QGIS can't know if a Memory Layer should finally be persisted. Therefore it's still the app/plugin has to care about saving.

from quickosm.

Gustry avatar Gustry commented on June 11, 2024

About "QGIS can't know if a Memory Layer should finally be persisted", it's useless for QGIS to save some layers which are in /tmp or in memory, because in 99% these layers won't exist in a few minutes. QGIS must inform the user about these layers : "Be careful, you have some layers in /tmp ...."
QuickOSM is just a data provider for QGIS, not responsible for what will happen next. We could just inform better the user that layers won't be saved persistently if they saved the project when the query is finished.

from quickosm.

sfkeller avatar sfkeller commented on June 11, 2024

That's what I thought first too. But if QGIS would always ask about saving, it would also ask in cases where it shouldn't. So, yes: QuickOSM is a data provider for QGIS and just because of this, it remains responsible what happens to the data and what's stored in the project file.

from quickosm.

Gustry avatar Gustry commented on June 11, 2024

Processing has the same behaviour than QuickOSM.
I'm closing this issue as I think it's related to QGIS.

from quickosm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.