0
votes
1answer
12 views

When does iface.mapCanvas().layers() get updated to the contents of QgsMapLayerRegistry.instance().mapLayers()?

Since the topic might be a bit cryptic, I'll try to explain where my problem is. I am currently developing a Qgis-plugin, where I am creating and adding some layers automatically, which I would like ...
1
vote
2answers
223 views

How to avoid “Handle bad layers” message when using QGIS Flowmapper plugin?

In QGIS, if I close a project and try to open it a few days later I often get a message that says "Handle bad layers". This is very frustrating because when I open the project various layers will have ...
0
votes
0answers
56 views

QGIS 2.0.1: Changing layer properties with python console

I'm working on a plugin that will aim to ensure that the following steps either "transparent" to the user with one click :   Creating a table with predefined fields Record in this table in postgis, ...
1
vote
2answers
129 views

Fetching field values from uncommitted features on Qgis

I'm trying to fetch a feature's field value on Qgis, I use QgsFeature.attributeMap().value(cont int & key).toDouble() This works fine for committed features but it always returns " 0 " if the ...
2
votes
1answer
111 views

Keeping a vector layer always on top

I want to know how to keep a layer always on top of other layers! After adding a vector layer ( QgisInterface->addVectorLayer ), I want that layer to always be displayed on top of layers added later. ...