[Qgis-developer] QgsMapLayerRegistry
Michele Mammini
mamminim at yahoo.it
Thu Oct 8 10:02:51 EDT 2009
Dear All,
i have a problem with QgsMapLayerRegistry class when i try to remove
a Layer from QGis.
i use this two code line:
RegIns = QgsMapLayerRegistry.instance()
RegIns.removeMapLayer(layerName)
where layerName is set with this command line: layerName =
self.iface.activeLayer().name()
Do someone know how to solve it?
Thank you Michele.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20091008/6bc5be73/attachment.html
More information about the Qgis-developer
mailing list