GPS中间点(GPS intermediate points)

编程入门 行业动态 更新时间:2024-10-27 23:28:43
GPS中间点(GPS intermediate points)

我正在开发一种算法,涉及在GPS坐标之间插入中间点。 准确地说,假设我有这两个坐标:

25.60593,45.65151

25.60662,45.65164000000001

我想在这些坐标之间添加额外的点(在同一“线”上)。 考虑线性变化是明智的(在这种情况下,我将中间点视为由2个给定坐标定义的线段上的点)。

这涉及从计算路线获得的实际GPS数据 - >这意味着每个连续形状点之间的距离小于1000米(在高速公路上,连续点之间的距离可能相当大,因为它是一条直线)。

线性变化是一个很好的近似,还是其他任何方法? (鉴于点之间的距离小于1km

谢谢,

尤利安

I'm developing an algorithm that involves inserting intermediary points between GPS coordinates. To be precisely let's assume that I have these 2 coordinates:

25.60593,45.65151

25.60662,45.65164000000001

I want to add extra points between these coordinates (on the same "line"). Is it wise to consider a linear variation (in this case I consider the intermediate points as points on the segment defined by the 2 given coordinates).

This involves actual GPS data obtained from a computed route -> this would mean that the distance is less than 1000 meters between each consecutive shape point (on highway the distance between consecutive points can be quite big due to the fact that it is a straight line).

Is linear variation a good approximation, or are they any other methods? (given the fact that the distance between points is less than 1km)

Thanks,

Iulian

最满意答案

鉴于这些点之间的距离小于1 km, AND * ASSUMING *表示您没有非常接近北极或南极,线性插值可能已经足够好了。

在实际数据的实时测试中显示线性插值不够好之后,您可以尝试球形触发插值。 数学涉及。

如果这两个都不足,那么您将需要非常专业的专家协助。

Given that the distance between the points is less than 1 km, AND *ASSUMING* that you're not playing very close to the North or South Pole, linear interpolation is probably good enough.

After linear interpolation is shown in live testing on real data NOT to be good enough, you can try spherical trig interpolation. Math involved.

If both of those fall short, then you will need very specialized expert assistance.

更多推荐

本文发布于:2023-08-01 03:12:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1352936.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:GPS   intermediate   points

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!