Search code examples
3dgpswgs84

How do I convert a mobile phone GPS to x,y,z with origin at the center of the Earth?


I need to accurately visualize points coming from iPhone (and other) GPS data in 3D.

So, what I'd like is to take a WGS84 (right?) point and transform that into an X,Y,Z vector with the origin at the center of the Earth.

I Googled for GPS/WGS84 to 3D but I think my search terms are not so great

Does someone have a pointer for where to start?

In future, I'll also need to take elevation information into account if available, but that isn't so important immediately.

Thanks!


Solution

  • what your looking for is representing your data in ECEF (Earth Centered Earth Fixed) notation.

    Some good wikipedia stuff