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

Extracting z information from a point layer #159

Closed
zakigates opened this issue Aug 18, 2017 · 17 comments
Closed

Extracting z information from a point layer #159

zakigates opened this issue Aug 18, 2017 · 17 comments

Comments

@zakigates
Copy link

I am using qfield and I am wondering if there is a way to get the elevation information from gps and display it in a field that I would create in qgis just like x and y coordinates.

@zakigates
Copy link
Author

waiting for your aswers

@m-kuhn
Copy link
Member

m-kuhn commented Aug 18, 2017

Yes, it is. Just set z($geometry) as default value for this field.
It would be great if you could add this information to the documentation!

@zakigates
Copy link
Author

This is not working because in qfield they don't give the z value, just x and y.

@m-kuhn
Copy link
Member

m-kuhn commented Oct 16, 2017

This is not working

that could be true for you

because in qfield they don't give the z value, just x and y.

that's wrong

@zakigates
Copy link
Author

zakigates commented Oct 16, 2017 via email

@m-kuhn
Copy link
Member

m-kuhn commented Oct 16, 2017

Did you link the crosshair to the positioning sensor?

@zakigates
Copy link
Author

zakigates commented Oct 16, 2017 via email

@zakigates
Copy link
Author

zakigates commented Oct 16, 2017 via email

@m-kuhn
Copy link
Member

m-kuhn commented Oct 16, 2017

I guess you need to use the github interface, the image does not show up unfortunately.

@zakigates
Copy link
Author

here is a screen shot from qfield
as you see I'm using the crosshair but nothing displayed in the z field
screenshot_2017-10-16-15-51-51 1
and this is how I set my z field on qgis
cppp

@m-kuhn
Copy link
Member

m-kuhn commented Oct 16, 2017

Can you turn on the GPS information display (long click on the blue GPS icon) and make a screenshot?

@zakigates
Copy link
Author

screenshot_2017-10-16-16-20-15 1
This is it

@m-kuhn
Copy link
Member

m-kuhn commented Oct 16, 2017

Looks like your positioning device doesn't expose any altitude information.
Do you have this information available in any other app?

@zakigates
Copy link
Author

I succeeded to get the z value in qfield Thanks so much for your precious help. but I still have a problem when I try to synchronize with qgis I get this python error

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 30: ordinal not in range(128)
I seriously don't understand it. If you have any idea about it source tell me I would be very thakfull

@m-kuhn m-kuhn closed this as completed Oct 16, 2017
@m-kuhn
Copy link
Member

m-kuhn commented Oct 16, 2017

Good to hear that your issues could be sorted out.

It would be very handy for the general public if you could write down the missing information in the documentation. Thanks!

@geomoes
Copy link

geomoes commented Dec 25, 2019

after trying to get it work I figured out, that I can use the following function to get the altitude when digitizing points with an external GPS device. Just create a altitude field (e.g. altitude, real) and add as default value the following function to get the altitude of points:
z(@position_coordinate).
Maybe it would be worth to add it as hint to the documentation.

@m-kuhn
Copy link
Member

m-kuhn commented Aug 20, 2020

Issue opened opengisch/QField-docs#76

Would be great if someone could add this information to the docs !

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