Graphics Reference
In-Depth Information
Using the layer editing mode
To let the user change the contents of a map layer, you first have to turn on the editing
mode for that layer. The layer editing mode is similar to the way transactions are handled
in a database:
The changes you make to the layer are held in memory until you decide to either commit
the changes to the layer, or roll back the changes to discard them. The following pseudo-
code is an example of how to implement this using PyQGIS:
layer.startEditing()
# ...make changes...
if modified:
reply = QMessageBox.question(window, "Confirm",
Search WWH ::




Custom Search