[Qgis-developer] Detect raster layers which have been deleted
denis.rouzaud at gmail.com
Sun Dec 15 22:49:28 PST 2013
On 14. 12. 13 16:38, Etienne Trimaille wrote:
> Sorry, I'm a beginner in pyqgis.
> I found the signal "layerDeleted ()" in the QgsVectorLayer class,
> however, I can't find it in the QgsRasterLayer class :
> Is there a reason ?
I don't know why there is no equivalent for raster layers.
> How can I detect that a raster layer has been deleted ?
But to solve your problem, you can use layer(s)Removed signals in the
you would use:
Then in your slot, check if the delete layer(s) is the good one.
> Another question :
> I didn't find a way to insert a layer at the bottom, not on the top.
> I want to change the drawing order for a new layer.
Sorry, I had a quick look, and couldn't find how to do this.
Have to wait for someone else to answer!
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
More information about the Qgis-developer