Debian Codegraph @

xmldoc/filters/interpolate.xml

raw
1 <para>
2 This filter modifies any tracks so that either the distance or the time
3 between consecutive points is no more than the specified interval. Where
4 points are missing, the filter fills them in by following a straight
5 line (actually a great circle) between the adjacent points. You
6 must specify either the
7 <option>distance</option> or the <option>time</option> option.
8 </para>
9 <example xml:id="example_interpolate_filter">
10 <title>Using the interpolate filter</title>
11 <para>
12 This command line reads track.gpx and inserts points wherever two adjacent
13 trackpoints are more than 10 seconds apart:
14 </para>
15 <para><userinput>gpsbabel -i gpx -f track.gpx -x interpolate,time=10 -o gpx -F newtrack.gpx</userinput></para>
16
17 <para>
18 This command reads track.gpx and inserts points wherever two adjacent
19 trackpoints are more than 15 kilometers apart:
20 </para>
21
22 <para><userinput>gpsbabel -i gpx -f track.gpx -x interpolate,distance=15k -o gpx -F newtrack.gpx</userinput></para>
23
24 <para>
25 This command reads track.gpx and inserts points wherever two adjacent
26 trackpoints are more than 2 miles apart:
27 </para>
28
29 <para><userinput>gpsbabel -i gpx -f track.gpx -x interpolate,distance=2m -o gpx -F newtrack.gpx</userinput></para>
30 </example>