Timeline for Iterating over map layers using PyQGIS
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 30, 2020 at 15:27 | comment | added | nmokht97 | Hi @Kadir, how can I iterate in group's layers in QGIS 3 by name of group firstly, then with the nam's layer in this group? | |
Jun 18, 2019 at 21:01 | comment | added | Kadir Şahbaz |
for layer in layers: print(layer) You can use the script to print the keys. Or just use print(layers.keys()) without for loop.
|
|
Jun 18, 2019 at 18:39 | comment | added | Kajo | Hi! Thanks for sharing it. To print the names of the layers works fine... but I can't print the keys of the dictionary. Can you help me with that? | |
S Oct 19, 2018 at 23:33 | history | edited | Kadir Şahbaz | CC BY-SA 4.0 |
added extra explanations
|
S Oct 19, 2018 at 23:33 | history | suggested | Seyed Javad Adabikhosh | CC BY-SA 4.0 |
just note that use .values() at the end of mapLayers()
|
Oct 19, 2018 at 21:42 | review | Suggested edits | |||
S Oct 19, 2018 at 23:33 | |||||
Sep 28, 2018 at 22:19 | history | answered | Kadir Şahbaz | CC BY-SA 4.0 |