| 1 |
<para> The input track will be split into several tracks |
| 2 |
depending on date of track points. If there is more than one |
| 3 |
track, use the pack option before before using this. To |
| 4 |
split a single tracks into separate tracks for each day and |
| 5 |
name them, use this: |
| 6 |
</para> |
| 7 |
<para><userinput> gpsbabel -t -i gpx -f in.gpx -x track,split,title="ACTIVE LOG # %Y%m%d" -o gpx -F out.gpx</userinput></para> |
| 8 |
<para> If the input has multiple tracks, pack them together before |
| 9 |
splitting them back apart per day thusly: </para> |
| 10 |
<para><userinput> gpsbabel -t -i gpx -f in.gpx |
| 11 |
-x track,pack,split,title="ACTIVE LOG # %D" |
| 12 |
-o gpx -F out.gpx</userinput></para> |
| 13 |
<para> Additionally you can add an interval to the split |
| 14 |
option. With this the track will be split if the time |
| 15 |
between two points is greater than this parameter. The |
| 16 |
interval must be numeric and can be int days, hours, minutes |
| 17 |
or seconds, expressed as one of the character "d", "h", "m", |
| 18 |
or "s". |
| 19 |
</para> |
| 20 |
<para> For example, to split a track based on an four hour |
| 21 |
interval, use this:</para> |
| 22 |
<para><userinput> |
| 23 |
gpsbabel -t |
| 24 |
-i gpx -f in.gpx |
| 25 |
-x track,pack,split=4h,title="LOG # %c" |
| 26 |
-o gpx -F out.gpx |
| 27 |
</userinput></para> |