Symbology geometry generator: Index missmatch
Describe the issue
On Qgis on a layer, I am using symbology based on the ID of another layer with geometry generator line to make a line based on the ID point of the other layer.
On Qgis this is working well, but on Qfield, the line is going somewhere else (this is OK on only few points)
Reproduction steps
Steps to reproduce the behavior:
- Create a first layer named 'sites' of points and place few points.
- Create a second layer of linestring geometry with an attribute id_site and place few lines with attribute based on ID of first layer.
- On the second layer add on symbology a geometry generator line with following formulla: make_line($geometry, geometry(get_feature_by_id('sites', "id_site"))
Expected behavior
- On Qgis you have a line that goes to the corresponding id_site
- Load the project on Qfield and you should have same lines
Observed behavior
- On Qfield, some lines are not going to the correct id_site, it has changed compared to QGIS.
Screenshots and GIFs
Desktop (please complete the following information)
- OS: Windows 10
- QGIS Version 3.22.0
Mobile (please complete the following information)
- Device: Honor
- OS: Android 11
- QField version: 33603
Additional information
- Problem started happening recently, didn't happen in an older version of QField: No
- Problem can be reliably reproduced, doesn't happen randomly: Yes
- Problem happens with all files and projects, not only some files or projects: Yes
[If the problem happened with QFieldCloud, please add your username and project name.] Custom Qfieldcloud server from fresh build, I can create username if needed
Can you try with the layer name instead of id?
Can you try with the layer name instead of id?
No, I am using the function get_feature_by_id('sites', "id_site"), but the layer name is included in it.
@vincentBenet , if possible, we'd benefit from having a sample project with data that already show the discrepancy between QGIS and QField.
@nirvn here it is:
Project: peche.zip
Qfield on computer:
Qfield on phone:
QGIS:
As you observe, on the spot 11, the red arrow line linking acces layer to the spot is not going at the right index on the phone.
Please take in note, that I am using QfieldCloud to transfert project to my phone, this maybe a root source problem...