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

Initialize QgsPoint with the correct WkbType to store Z and M values #2929

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

tomasMizera
Copy link
Collaborator

Fixes #2910

In the following code:

QgsPoint point;
point.setX(1);
point.setY(2);
point.setZ(3);
point.setM(4);

Z and M values will be null. This happens on the version of QGIS that we use atm.
Not sure if this is a QGIS bug or feature though.
Needed to explicitly mention the WkbType.

Checked other places in the code, and they seem to be ok. Should be tested though if we record Z values atm

@PeterPetrik
Copy link
Contributor

I think best to merge and test on master , this should be safe change anyways

@tomasMizera tomasMizera merged commit da97243 into master Nov 30, 2023
7 of 8 checks passed
@tomasMizera tomasMizera deleted the fix-z-m-while-tracking branch November 30, 2023 17:23
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

Successfully merging this pull request may close these issues.

Z and M values are NaN when tracking on Android device
3 participants