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?
___
Dear Magnus.
you can iterate through the layers:
for lay in QgsMapLayerRegistry.instance().mapLayers().values():
if lay.name() == your_layer_name:
your layer is loaded
Regards,
Zoltan
On Sun, 4 Jun 2017, Magnus Homann wrote:
I'm writing a plugin that adds feature to a SHP-layer,
Hi Alessandro
I just downloaded the latest nightly build and will make some tests in the
coming days. What would be the most efficient / useful way to give you
feedback and comments? On this thread?
Thanks and cheers
Stéphane
Le jeudi 1 juin 2017, Alessandro Pasotti a