
Da-
ta
Fil-
ters
84
Manipulate track lists (track)
WARNING: This filter always drops empty tracks.
This filter performs various operations on track data.
move option
Correct trackpoint timestamps by a delta.
This option changes the time of all trackpoints. This might be useful if your track must be moved by one
or more hours because of an incorrect time zone.
Example 4.6. Time-shifting a track with the track filter
The following command line will shift all tracks to be one hour later.
gpsbabel -t -i gpx -f in.gpx -x track,move=+1h -o gpx -F out.gpx
pack option
Pack all tracks into one.
This option causes all tracks to be appended to one another to form a single track. This option does not
work if any two tracks overlap in time; in that case, consider using the merge option.
This option is most useful for rejoining tracks that might have been interrupted by an equipment malfunc-
tion or an overnight stop.
If no other option is given to the track filter, this option is assumed.
split option
Split by date or time interval (see README).
The input track will be split into several tracks depending on date of track points. If there is more than one
track, use the pack option before before using this. To split a single tracks into separate tracks for each
day and name them, use this:
gpsbabel -t -i gpx -f in.gpx -x track,split,title="ACTIVE LOG # %Y%m%d"
-o gpx -F out.gpx
If the input has multiple tracks, pack them together before splitting them back apart per day thusly:
gpsbabel -t -i gpx -f in.gpx -x track,pack,split,title="ACTIVE LOG #
%D" -o gpx -F out.gpx
Additionally you can add an interval to the split option. With this the track will be split if the time between
two points is greater than this parameter. The interval must be numeric and can be int days, hours, minutes
Kommentare zu diesen Handbüchern