Hey Walter. Try this:
maplayers = QgsMapLayerRegistry.instance().mapLayers() maplayers will be a dict of layerid-layer object - Nathan On Mon, Oct 13, 2014 at 7:19 PM, walter.nordmann <walter.nordm...@web.de> wrote: > Hi, > > running 2.4 /phyton programming > > i need the Id of one of three layers and that layer is not the active one. > > want to remove that unneeded layer with python. > > Regards > > walter > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Get-layer-id-by-layer-not-by-acive-layer-tp5167152.html > Sent from the Quantum GIS - User mailing list archive at Nabble.com. > _______________________________________________ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user >
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user