-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QField Offline layer is empty #4695
Comments
@Oisin-JK , without access to a sample dataset to replicate the issue here, it'll be difficult to fix it. Try to come up with a small sample project you can share. |
Hi Mathieu |
we have similar error, maybe @nirvn can check my project in qfieldcloud community project. |
I think this should be fixed with qfieldsync 4.9.0. |
have been using the 4.9.0, the problem still, no feature shown |
@ckpusitaro , can you try to change the packaging offliner to "optimized packager" in your cloud project settings (on app.qfield.cloud): |
Thanks @nirvn Works like a charm! |
I have a QGIS project, with multiple layers. Some are shape (.shp) files, others are geopackage (.gpkg) files.
I am having problems with one of the layers in a geopackage called 'trees.gpkg'. The geopackage contains two layers: 'tree-pt' and 'tree-ar', containing approximately 2500 and 200 features respectively .
I am packaging using QFieldSync for cable export. Cable layer action for both layers is set to offline editing. However, in the packaged QField project, the layer 'tree-pt' is empty. All source files and QField project are on local (not network) drives.
If I set the 'Cable layer action' action for 'tree-pt' to copy, it is not empty.
If I create two geopackages, one for each layer, and for each set 'Cable layer action' to 'offline editing', neither is empty. This is a workaround solution that I will use, but I suspect this is a bug and hence why I have posted the issue.
Although I have encountered this issue on other projects, it does not occur for all projects and I cannot reliably recreate the issue. For this particular project, I have tried creating a new project using the same layers but the problem persists. In this same project I have another geopackage called 'relations.gpkg' that contains three non-spatial tables. These are also set to 'offline editing' and all package successfuly for QFIeld.
To be clear, the issue seems to be that for a particular geopackage file containing two (or more?) layers, when using 'offline editing' one layer does not package correctly and is empty in the QField Project.
Software
Unfortunately, I cannot share the project publicly.
Any suggestions welcomed.
The text was updated successfully, but these errors were encountered: