Skip to content
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

@snapping_results with several layers in QField for Windows #5661

Open
tproduit opened this issue Sep 17, 2024 · 0 comments
Open

@snapping_results with several layers in QField for Windows #5661

tproduit opened this issue Sep 17, 2024 · 0 comments

Comments

@tproduit
Copy link

Describe the issue

The expression z(geometry(get_feature_by_id('layer_id', map_get(array_first(@snapping_results), 'feature_id')))) doesn't work in QField for windows

Reproduction steps

Steps to reproduce the behavior:

  1. Open the linked project
  2. Add a new feature in the layer "get_z_from_reference" by snapping it to the layer "reference"
  3. The field "get_z" should be filled with the height of the snapped point

Expected behavior

The field "get_z" should be filled with the height of the point within the layer "reference"

Observed behavior

The field is filled in QGIS Desktop and QField for Android. The field is not filled in QField for Windows.

If it can help, if the project contains only the layers "get_z_from_reference" and "reference", there is no problem. The problem occurs only once that a third layer is added ("reference 2").

QGIS (please complete the following information)

  • OS: Windows
  • QGIS Version: 3.24
  • QFieldSync Version: not used

QField (please complete the following information)

  • OS: Windows
  • QField version: 3.4.0

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

qfield_snapping.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant