Wednesday, 3 February 2016

pyqgis - Iterating over map layers in QGIS Python?



I'm having trouble figuring out how to iterate over map layers. I can access the currently highlighted layer in the table of contents via iface.activeLayer() but I want my code to operate on all layers.


I don't see anything in the API that provides easy access to this functionality and couldn't find a good online example but maybe I missed something?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...