Simplification / optimization of GPS track

后端 未结 10 2110
[愿得一人]
[愿得一人] 2020-12-13 11:38

I\'ve got a GPS track produced by gpxlogger(1) (supplied as a client for gpsd). GPS receiver updates its coordinates every 1 second, gpxlogger\'s logic is very

10条回答
  •  旧时难觅i
    2020-12-13 12:25

    I ran in to a similar issue. The rate at which the gps unit takes points is much larger that needed. Many of the points are not geographically far away from each other. The approach that I took is to calculate the distance between the points using the haversine formula. If the distance was not larger than my threshold (0.1 miles in my case) I threw away the point. This quickly gets the number of points down to a manageable size.

    I don't know what language you are looking for. Here is a C# project that I was working on. At the bottom you will find the haversine code.

    http://blog.bobcravens.com/2010/09/gps-using-the-netduino/

    Hope this gets you going.

    Bob

提交回复
热议问题