Hi, I would like to write a small python plugin to analyse some raster data, but I haven't managed to select a loaded layer yet. I searched the howtos and found several simple examples about:
# get the currently active layer layer = self.iface.mapCanvas().currentLayer() but as I said I would like to select one of the loaded raster layers from the qgis legend using a QtGui.QComboBox in the plugin dialog. At the moment I tried the getRasterLayersNames() function I found in several other plugins but it seems I am missing something, because the raster layers are not selectable. Can someone point me to a simple example to understand the general procedure? Thanks a lot Otto _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer