I have a set of GPS coords with X,Y and Course. I need to interpolate additional points based on the course of each point. It would be a simple line intersection based on lines drawn using the 2 locations and course.

EDIT: Let me clarify .. i have a set of gps logged points, each with lat/long, heading and speed. I need to interpolate an additional point between each known location based on the 2 known points and there headding. Kind of like dead-reconing but after the fact. It'll be a linear interpolation.. here is an image of said problem 1...


This can be solved using either the Haversine or Vincenty formula. Please see my answer here: How to create a point along a line given distance


Have you tried GPSBabel? http://werc.engr.uaf.edu/~ken/doc/gpsbabel/htmldoc-1.3.5/filter_interpolate.html

gpsbabel -i gpx -f track.gpx -x interpolate,time=10 -o gpx -F newtrack.gpx
gpsbabel -i gpx -f track.gpx -x interpolate,distance=1k -o gpx -F newtrack.gpx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.