GPS 增量坐标以米为单位
您好,
我有两个坐标:
(52.4412396, -6.563223)
和
(52.8912397, -6.683669)
增量是:
(-0.4499999, 0.120446)
移动的距离是:
sqrt((-0.4499999)^2+(0.120446)^2)
=.465840261
我如何将其转换为米?!
我希望有人能提供帮助。
预先非常感谢,
Greetings,
I have two coordinates:
(52.4412396, -6.563223)
and
(52.8912397, -6.683669)
The delta is:
(-0.4499999, 0.120446)
The distance moved is:
sqrt((-0.4499999)^2+(0.120446)^2)
=.465840261
How do I convert this to meters?!
I hope someone can help.
Many thanks in advance,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您错误地计算了球坐标上的平方和。在获得斜边之前,每个差异都必须转换为其经度和纬度距离。虽然纬度直接转换为距离(每度等于 60 海里),但经度只会在赤道上进行转换)这意味着您必须将上述值乘以纬度的余弦。然后,您可以在转换为米之前继续进行简单的斜边计算。
You have mistakenly done the sum of squares on spherical coordinates. Each difference has to be converted to its longitudinal and latitudinal distance before getting the hypotenuse. While latitude converts directly to distance, (each degree is equal to 60 nautical miles) the longitude will only do that at the equator) That means that you have to multiply the above by the cosine of the latitude. Then you can move on to a simple hypotenuse calculation before converting to meters.