opengisch / qfieldsync

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

Uploading a new project with PostGIS layers to QFieldCloud creates a geopackage #592

Closed gounux closed 4 months ago

gounux commented 4 months ago

Following behaviour has been observed on an on-premise QFieldCloud instance (don't know if it this can be qualified as a bug, and if it is a QFieldSync or a QFieldCloud related issue) : when pushing a new project to QFieldCloud with PostGIS layers, those layers seem to be converted to geopackage on the QFieldCloud instance. The idea is to use the "Hybrid editing" setup (https://docs.qfield.org/assets/images/hybrid-schema.png)

Steps to reproduce

In the QFieldCloud admin page, when looking at the project's Project details pre JSON, the layer is stored as a geopackage with a filename like /tmp/... .gpkg

Versions

Current workaround

There is a workaround I'm currently using, which consists of :

After having done that, the layer is okay and is a PostGIS layer, with the datasource key and PostGIS connection value in the Project details pre JSON of the project, database connection is okay between the QFieldCloud instance and the PostGIS database

gounux commented 4 months ago

Closing this issue since this is discussed here : https://github.com/opengisch/QField/discussions/2508