Showing posts with label active layer. Show all posts
Showing posts with label active layer. Show all posts

Wednesday, November 11, 2015

How to use active layer in QGIS python - PyQGIS

Just use the activeLayer() as in the following code.


mylayer = qgis.utils.iface.activeLayer()
print mylayer.name(), " - ",mylayer