OpenDroneMap / WebODM

User-friendly, commercial-grade software for processing aerial imagery. 🛩
https://www.opendronemap.org/webodm/
GNU Affero General Public License v3.0
2.85k stars 954 forks source link

[Feature Request] GPS data in coordinate measurement #537

Open yawstick opened 5 years ago

yawstick commented 5 years ago

Modify the format of the GPS lat/lon data displayed when doing a coordinate measurement on a 3d map. The current format is not so user friendly.

smathermather commented 5 years ago

Ah, the git issue bot strikes again.

smathermather commented 5 years ago

I think you can prevent this by putting “Feature request” in brackets.

Anyway, based on the community dialog, the current coordinates are in UTM with an offset. At the very least, having these display in UTM, and better yet in geographic coordinates is what you’re looking for, correct?

yawstick commented 5 years ago

yes that is correct... preferably decimal degrees lat/lon... it would then match what you see when your mouse is hovering over the 2d map.

My first time here...I will remember the bracket thing

It would be helpful if you could point me to where this is done... I'm not a programmer but I have connected with a local python user group where I'm trying to recruit some help.

smathermather commented 5 years ago

The high-level would be to convert the coordinates with offsets to their UTM equivalent and then transform those to geographic coordinates (latitude and longitude), and display the converted version.

pierotofy commented 5 years ago

Yup. Part of the difficulty is that UTM coordinates without offsets are large numbers, and WebGL uses floats to represent vertex coordinates, so we can't just add the offsets to the vertices and call it done. I like how glTF's Cesium RTC extension handles it. https://github.com/KhronosGroup/glTF/tree/master/extensions/1.0/Vendor/CESIUM_RTC

Perhaps just recording what the UTM offset is and then adding it for visualization/measurement purposes would be a reasonable solution.

smathermather commented 5 years ago

Yes, the simplest is to just display the correct UTM values, but something like proj4js could convert to geographic pretty easily too, I think.