Hi all,

Le 25/09/2014 11:10, Matthias Kuhn a écrit :
Aren't there two different possibilities in which such layers can be used:

 * As a scratch layer for the user, which he may want to save in the end
 * As a means for plugins to show information to the user

One of the main reason memory layers are used by plugins is that you can't write a python provider. If you want to handle a proprietary format or a weird format, you read the file and fill a memory layer.

This is the difference between memory layers and others: no provider, data is manually pasted or created by plugin. If saving is required for project consistency, maybe this could be done through geojson (or other) provider. One attribute in the qgs project would indicate that it is a memory layer, and that's keep quite simple and transparent.

Alain
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to