opengisch / qfieldsync

Sync your projects to QField
https://qfield.org/
GNU Lesser General Public License v3.0
55 stars 25 forks source link

Does QFieldSync synchronize from QField offline data to PostGIS ? #549

Closed stefanon closed 11 months ago

stefanon commented 12 months ago

I am using QField with QGIS to collect data in the field, in offline mode. My data are stored in a PostGIS database. I used QFieldSync to package my QGIS project and was able to open it on my Android device and edit/add features just fine. The layer to be edited on the field has a 'gid' primary key, of type serial, not null, in the database.

What happens is that on field, when I split a feature in this layer, the new part doesn't get a new 'gid', and the field value remains null. When I sync data back to the project, the new features are not inserted in the database, and are lost. Does offline working with PostGIS data supported by qfieldsync ? If yes, what I need to do to be able to collect data offline and bring them back in my PostGIS database, without losing pieces? (offline is required, can't have a network connection).

qfieldsync version 4.6.1, QGIS version 3.34.1 n Ubuntu