24.2.7. Plugin Offline Editing¶
In progetti di acquisizione dati è situazione comune trovarsi a lavorare sul campo con computer portatili e palmari: i dati in tal modo acquisiti vanno, poi, sincronizzati con la banca dati principale, (ad esempio un database PostGIS). Se più persone lavorano simultaneamente sullo stesso set di dati, risulta difficile aggiornare la banca dati principale manualmente, anche se le persone non stanno aggiornando le stesse 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:
Apri un progetto con alcuni layers vettoriali (ad esempio da PostGIS o da un WFS-T).
Assuming you have already enabled the plugin (see Plugin di Base e Plugin Esterni) 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.
You can check
Only synchronize selected features if a selection is present allowing to only save and work on a subset. It can be invaluable in case of large layers.
This is all!
Save your project and bring it on the field.
Modificare layer in modalità non in linea.
Dopo essersi nuovamente connessi, carica le modifiche utilizzando
Sincronizza.

Fig. 24.27 Create an offline project¶