"The explosive growth of the GeoWeb and geographic information has made GIS powerful media for the general public to communicate, but perhaps more importantly, GIS have also become media for constructive dialogs and interactions about social issues." - Sui & Goodchild
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
geoinf18:wktplugin [2018/10/30 17:16] oertz [Logique du plugin] |
geoinf18:wktplugin [2018/11/13 10:14] oertz [Logique du plugin] |
||
---|---|---|---|
Line 39: | Line 39: | ||
</code> | </code> | ||
- | * son identifiant d'objet est **plainTextEdit**, il est possible de le manipuler avec les instructions ci-dessous dans la logique du plugin (script python NomDeMonPlugin.py). | + | * son identifiant d'objet est **plainTextEdit**, il est possible de le manipuler avec les instructions ci-dessous dans la logique du plugin (script python **NomDeMonPlugin.py**). |
* voir aussi la documentation Qt : http://doc.qt.io/ | * voir aussi la documentation Qt : http://doc.qt.io/ | ||
Line 71: | Line 71: | ||
layer.commitChanges() # save changes | layer.commitChanges() # save changes | ||
</code> | </code> | ||
+ | |||
+ | NB: sans oublier d'ajouter en entête les imports qui vont bien : | ||
+ | <code> | ||
+ | # Import QGIS stuff | ||
+ | from qgis.core import * | ||
+ | from qgis.utils import * | ||
+ | </code> | ||
===== Tester ===== | ===== Tester ===== |