如何将手机 GPS 转换为原点位于地球中心的 x,y,z?
我需要以 3D 形式准确地可视化来自 iPhone(和其他)GPS 数据的点。
所以,我想要的是采用 WGS84(对吗?)点并将其转换为原点位于地球中心的 X、Y、Z 向量。
我在 Google 上搜索了 GPS/WGS84 到 3D,但我认为我的搜索词不太好
有人能指出从哪里开始吗?
将来,如果有的话,我还需要考虑海拔信息,但这并不是那么重要。
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在寻找的是用 ECEF(地心地球固定)表示法表示您的数据。
一些好的维基百科内容
what your looking for is representing your data in ECEF (Earth Centered Earth Fixed) notation.
Some good wikipedia stuff
纬度和经度相对容易,因为它们只是角度,但高度有点棘手,因为地球并不完全是圆的。如果您不需要非常高的精度,这篇维基百科文章提供了从将球坐标系转换为笛卡尔坐标系。请注意,这不太准确,因为地球更像是一个椭球体,而不是一个完美的球体。
Latitude and longitude are relatively easy, since they're just angles, however altitude is a bit tricky because the Earth isn't exactly round. If you don't need very great accuracy, this Wikipedia article has formulas for converting from a spherical coordinate system into a cartesian one. Be warned that this is not quite accurate because the Earth resembles an ellipsoid more than a perfect sphere.