24.2.7. Offline Editing Plugin¶
For data collection, it is a common situation to work with a laptop or a cell phone offline in the field. Upon returning to the network, the changes need to be synchronized with the master datasource (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.
The Offline Editing Plugin automates the synchronisation by copying the content of a datasource (usually PostGIS or WFS-T) to a SpatiaLite or GeoPackage 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 use the plugin:
Open a project with some vector layers (e.g., from a PostGIS or WFS-T datasource).
Assuming you have already enabled the plugin (see Plugin-uri de bază și externe) go to Convert to offline project. The eponym dialog opens.
Select the Storage type. It can be of GeoPackage or SpatiaLite database type.
Use the Browse button to indicate the location of the database in which to store the Offline data. It can be an existing file or one to create.
In the Select remote layers section, check the layers you’d like to save. The content of the layers is saved to database tables.
This is all!
Save your project and bring it on the field.
Edit the layers offline.