YoannQDQ / qgis-memory-layer-saver

Makes data in memory provider layers persistent between QGIS sessions. Data saved in .mldata file alongside project file.
Other
7 stars 4 forks source link

QGIS-Server does not process Temporary Layers available in QGIS-project and saved using "Memory Layer Saver" Plugin #11

Open Alexander-Orlovsky opened 1 year ago

Alexander-Orlovsky commented 1 year ago

Dear Dr. Crook,

I am faced with the fact that QGIS-Server does not process Temporary Scratch Layers available in QGIS-project and saved using your wonderful "Memory Layer Saver" Plugin in a separate file *.mldata.

Such an opportunity would be very useful and important for our projects.

I described the details in my question published on GIS StackExchange, available at the link https://gis.stackexchange.com/questions/447424/qgis-server-does-not-process-temporary-scratch-layers-available-in-qgis-project.

One of the StackExchange participants responded to my question and gave me a very wise recommendation: «Only the plugin knows about those mldata files. Your server will need a plugin to discover and load them. It might be a great feature request to the plugin developers to port it to QGIS server too».

I am not sure that I have done all the necessary configurations for QGIS-Server to interact with the Plugin. Therefore, could you suggest whether QGIS-Server can, in principle, process/read layers saved by the "Memory Layer Saver" module to the *.mldata file).

Thank you in advance.

ccrook commented 1 year ago

Hi. This could possible be addressed if #9 can be implemented (save mldata into qgz file). I have not used QGIS server so don't have any experience with it unfortunately. Also I haven't had time to put aside for this recently (actually in the last year, given the status in #9), so I can't offer any immediate solution myself. Possibly for your immediately problem you could use a persistent storage such as a geopackage?

Alexander-Orlovsky commented 1 year ago

Dear Dr. Crook,

Thank you for your prompt response! We, of course, use a persistent data-storages including GeoPackage and PostGIS/PostgreSQL.

Taking this opportunity, I want to thank you on behalf of myself and my many students for your wonderful "Memory Layer Saver" plugin. We use it very actively. It is especially important to us when students and I conduct tests with geo-algorithms, as a result of which many versions (with different parameters) of temporary time layers are created in a QGIS-project.

It would be extremely difficult and very inconvenient for us to save such projects and share them without your plugin. And the possibility of web-publishing such research/test projects with the same rendering as in the QGIS-project itself for simultaneous viewing by many participants/students would be very useful. That is why I had a question about the possibility of interaction between "Memory Layer Saver" (reading *.mldata files) and QGIS-Server.

For our part, we will also try to assess the possibility of necessary modifications. And of course will definitely let you know about our results.