[QGIS-Developer] PyQGIS: Check if layer is already loaded?

Magnus Homann magnus at homann.se
Sun Jun 4 07:42:02 PDT 2017


I'm writing a plugin that adds feature to a SHP-layer, specified as a filename.
If the layer already is loaded in Qgis, I want to check for and use the loaded
layer instead of creating a new from the same SHP-file.

Is this even possible?


More information about the QGIS-Developer mailing list