[Qgis-developer] QgsMapLayerRegistry.mapLayers() not available in Python Bindings

Düster Horst Horst.Duester at bd.so.ch
Fri Jan 11 05:01:09 EST 2008

With Python I want to get all avalilable map layers from my current
project. I tried to do this with 

layerCollection = QgsMapLayerRegistry().instance().mapLayers()

It doesn't work. I took a look into qgsmaplayerregistry.sip and found
out that the method mapLayers() is not wrapped until now. What is to do
to wrap this method. Does exists a workareound to retrieve all project

Best regards 


Dr. Horst Düster
GIS-Koordinator, Stv. Amtschef

Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
SO!GIS Koordination
Rötistrasse 4
CH-4501 Solothurn

Telefon ++41(0)32 627 25 32
Telefax ++41(0)32 627 22 14

mailto:horst.duester at bd.so.ch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080111/f3a012f5/attachment.html

More information about the Qgis-developer mailing list