This filter modifies any tracks so that either the distance or the time
between consecutive points is no more than the specified interval. Where
points are missing, the filter fills them in by following a straight
line (actually a great circle) between the adjacent points. You
must specify either the
or the option.
Using the interpolate filter
This command line reads track.gpx and inserts points wherever two adjacent
trackpoints are more than 10 seconds apart:
gpsbabel -i gpx -f track.gpx -x interpolate,time=10 -o gpx -F newtrack.gpx
This command reads track.gpx and inserts points wherever two adjacent
trackpoints are more than 15 kilometers apart:
gpsbabel -i gpx -f track.gpx -x interpolate,distance=15k -o gpx -F newtrack.gpx
This command reads track.gpx and inserts points wherever two adjacent
trackpoints are more than 2 miles apart:
gpsbabel -i gpx -f track.gpx -x interpolate,distance=2m -o gpx -F newtrack.gpx