[Qgis-developer] pyqgis load a memorylayer in plugin but not show it in layerlist/legend

Richard Duivenvoorde rdmailings at duif.net
Wed Dec 2 04:11:29 PST 2015


Hi Devs,

Is there a way to create a memory layer in a plugin, and load it in the
map (and put temporary features in it), but NOT show it in the
legend/layerlist?

Context: we generate sort of big pie-charts in a plugin, which are shown
to user (and user is able to change color), but after closing of the
plugin the layer is emptied (or published to a shp or server).
It seems not very usefull to let the user for exampel make the layer go
down or make invisible or so.

So: possible? If yes: how?

Regards & Thanks,

Richard Duivenvoorde


More information about the Qgis-developer mailing list