For data collection, it is a common situation to work with a laptop or a phone offline in the field. Upon returning to the network, the changes need to be synchronized with the master data source, e.g. a PostGIS database. If several persons are working simultaneously on the same datasets, it is difficult to merge the edits by hand, even if people don’t change the same features.
Therefore, Mathias Walker implemented an offline plugin for QGIS. This plugin automates the synchronisation by copying the content of a datasource (usually PostGIS or WFS-T) to a spatialite database and storing the offline edits to dedicated tables. After being connected to the network again, it is possible to apply the offline edits to the master dataset.
To give the plugin a try, unpack the sources, apply the patch ‘qgissvn.diff’ to a current svn version of QGIS. Then copy the offlineediting folder to $PREFIX/src/plugins and recompile QGIS.
The usage of the plugin is straightforward:
- Open some vector layers, e.g. from a PostGIS or WFS-T datasource
- Save the project
- Press the ‘Convert to offline project’ button and select the layers to save. The content of the layers is saved to spatialite tables.
- Edit the layers offline
- After being connected again, upload the changes with the ‘Synchronize’ button
Presumably, the offline editing plugin will be part of the next QGIS version (1.6)

Services
Sources
About us
September 30th, 2010 at 11:57 AM
Hi,
looks great!
Does it require QGIS svn or would it be possible to build it against QGIS 1.5?
Thanks,
Mathieu
September 30th, 2010 at 02:43 PM
Is it available on your plugin repository.
September 30th, 2010 at 08:41 PM
I loaded the sourcepole (python?) repository from QGIS 1.5.0 but could not find this plugin. Should I rebuild it from the source code? (that should not be a problem)
October 2nd, 2010 at 06:27 AM
Just rebuilt QGIS from trunk and installed the plugin without any problems (except my own lack of skills in compiling). Nice work! I only gave it a quick test so I could sleep in peace… hope to give it a real workout this work. Thanks for the fun!
October 12th, 2010 at 07:45 AM
The offline editing plugin is now in QGIS trunk. The plugin will be available if you rebuild QGIS.
It is also possible to build the plugin against QGIS 1.5 using the patch and sources mentioned in the article.
As this is a C++ plugin it is not available from the python plugin repository.