Does anyone know of a way to keep track of last added or edited features in QGIS? A kind of Editor Tracking tool.

  • Do you mean programmatically? When editing, there are undo/redo buttons. – underdark Feb 15 '14 at 10:55
  • Interestingly, there's a tracking tool in the Composer (panels |command history) but not in the editing /layers window. Good addition - suggest it as a feature! – Simbamangu Feb 15 '14 at 13:03
  • I'm open to all suggestions. It would be to keep track of edits within a team of people modifying the same shape file. – user25976 Feb 16 '14 at 9:23

Assuming you are using PostGIS, you may want to look into implementing your own edit tracking system in postgres.

A great tutorial can be found at this blog. The general idea is that after each edit/delete a table is updated to store details of any changes made along with user and time (all done using triggers). This system will also allow you to roll back to the previous geometry if required and adds accountability to your GIS.


Having your data stored in a Postgres\postgis database, you can use QGIS DBManager to create a versioning system on your tables.

Open DBManager and open you postgis database connection.

Then go to Table > Versioning.

enter image description here

This dialog will show:

enter image description here

Select the schema and table (That must be empty!) and press Ok

This tool will create new fields, a view (yourtable_current) and a few rules and triggers, to edit it. It will allow you to see what changes have been made to each feature in time and actually go back if needed.

Notice that you can run the listed code in "SQL to be executed:" directly on Postgres, and even tweak it a bit if you need. I for instance want to include a field "user" to track who made the changes.


Here are a couple of suggestions:

  1. You could maybe store your data in a database and use versioning. PostGIS announced a plugin for this (pgVersion) - though I must admit I've not used it.
  2. Alternatively, you could server your data via GeoServer with appropriate accounts and permissions set for your team and use GeoServer's versioning capabilities.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.