-
Notifications
You must be signed in to change notification settings - Fork 172
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
WIP: Adding support for exif Altitude parsing #325
base: main
Are you sure you want to change the base?
Conversation
Thanks for this. A few points:
An alternative here would be to leave |
Before I do the changes here, about this. I've made an assumptions here, and that is that we prefer nullable double and
How will I test if altitude is parsed correctly out of an image I know have altitude, as the rest of the images don't have that.
Proposal for |
Personally I prefer null. It's clearer that the value might not be present (which is the case most of the time). I'd considered changing the types of lat/lng to
We can add such an image to the test data library if none already exists. I can do that for you, so you don't have to clone that repo (it's pretty huge).
Can you provide an example of what the output would look like? I'm not sure there's a clear way of doing this without adding the word "altitude".
I'm less sure about that. I wouldn't change that. These last two points make me wonder whether altitude belongs on |
I've updated:
Should Looking at the RFC 7946 GeoJSON they do include altitude or elevation, so I do believe it belongs in the I think it is a debate to be had for other objects in the exif GPS data like accuracy, speed, or direction which I also hope to get into the project. I also do not know how to write the unit tests if I don't have the pictures to reference? How will these tests be written when the images I wish to test is in an external project? |
I've added support for exif altitude parsing. The example photos used for my unit tests are not really in-line with the other test images. But they are real word examples. I'm not sure if any what the guidelines for tests photos are.