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

Problems to modify latitude and longitude fields manually or using phone coordinates #6038

Open
3 tasks done
aubercor opened this issue Feb 23, 2025 · 5 comments
Open
3 tasks done

Comments

@aubercor
Copy link

What is the bug or the crash? What were your expectations and what actually happened?

Hello,

I created a project using QGIS 3.40 on iOS Sequoia 15.3.1.

This project contains a geopackage layer with several points.

I would like to update the longitude/latitude fields using my phone coordinates (when GNSS is ON) or manually modifying them using qfield app.

I synchronized the project to qfield cloud using the qfield sync plugin and use the last version of the qfield app on my phone (3.4.7) on Android v14.

I declared the form as follow for the latitude and longitude fields:

Image

Do you have any suggestions to help to solve my problem?

Regards,

Coralie

Steps to reproduce the issue

Click on a point
See latitude and logitude field
Try to modify the field

Version

3.4.7

Operating system name

Android

Operating system version

14

Reinstall QField

  • I have a fresh install of the latest QField version, but the problem persists.
  • Problem can be reliably reproduced, doesn't happen randomly.
  • Problem happens with all files and projects, not only some files or projects.

Additional context

No response

@VxTedxV
Copy link

VxTedxV commented Feb 24, 2025

What happens on XY if you try to modify another field of your existing point, and save it ? Are coordinates updated ?

@aubercor
Copy link
Author

No, I can change the name of the point without any problem but none of the coordinates ($x/$y).

@VxTedxV
Copy link

VxTedxV commented Feb 24, 2025

Ok but do the locked coordinates changed (GPS ON, located elsewhere than where the point first created) when the entity is saved after a change in its data ?

@SeqLaz
Copy link
Member

SeqLaz commented Feb 24, 2025

Hi @aubercor, could you try using coalesce(x(@gnss_coordinate)) instead of $x? Do the same for the Y coordinate, and make sure to use the Coordinate cursor locked.

Image

@aubercor
Copy link
Author

@SeqLaz and @VxTedxV thakns for your help.
It finally partially works with $x and $y.
Partially because, I cannot change manually latitude and longitude fields but using the phone's position (GNSS ON) works.
To proceed, I have to select the point and choose "move feature" and then, I have to zoom in on the map and select the preferred place. Then, the latitude/longitude field will be updated to the selected position on the map.
I thought it would be done automatically by using the phone's position. That's why I couldn't figure it out, and it's not that easy to find the trick.
Thanks for your help regarding all this.
Coralie

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

3 participants