View Full Version : Transform latitude longitude to opengl coord

07-31-2012, 11:48 AM
Hi everybody, i'm new in this forum.

I have a problem, I am currently developing an augmented reality applicaction and i have a lot of geopoint (each geopoint with latitude, longitude and altitude). Now my question is, do you know any way to convert geographic points (in geographic coord system) for coord system opengl?

Thanks in advance.



08-01-2012, 12:48 AM
Does a conversion as for spherical coordinates (http://mathworld.wolfram.com/SphericalCoordinates.html) work for you? I've never dealt with real topology data though so it might not.

Dark Photon
08-01-2012, 06:59 PM
Google "geodetic to geocentric" with and without "ellipsoid" and that should get you want you want.

LLA (lat-lon-alt) is geodetic (i.e. coordinates on an ellipsoid), whereas geocentric is XYZ (coordinates in an orthonormal space).

08-02-2012, 04:04 AM
Thanks for this data :D