| 1 |
<para> The input track will be split into several tracks |
| 2 |
if the distance between successive track points |
| 3 |
is greater than the distance given as a parameter. |
| 4 |
The distance must be numeric and can be in miles or kilometers, |
| 5 |
expressed as one of the character "k", or "m". |
| 6 |
If sdistance is given no parameters, this option has the same |
| 7 |
effect as the split option without parameters. If there is more |
| 8 |
than one track, |
| 9 |
use the pack option before before using this.</para> |
| 10 |
|
| 11 |
<para> For example, to split the track if the distance between |
| 12 |
points is greater than 100 meters, use this:</para> |
| 13 |
<para><userinput> |
| 14 |
gpsbabel -t |
| 15 |
-i gpx -f in.gpx |
| 16 |
-x track,pack,sdistance=0.1k |
| 17 |
-o gpx -F out.gpx |
| 18 |
</userinput></para> |
| 19 |
<para> The sdistance option can be combined with the split option. |
| 20 |
The track then will be split only if both time and distance |
| 21 |
interval exceeds the supplied values. This technique can be used to |
| 22 |
filter out gaps from |
| 23 |
the tracklog. The gap is kept only if the gps device is without |
| 24 |
signal for longer time than that given and during that time it moves |
| 25 |
a distance over that given. |
| 26 |
This example splits the track |
| 27 |
if the device is without signal for at least 5 minutes |
| 28 |
and during this time moves more than 300 meters:</para> |
| 29 |
<para><userinput> |
| 30 |
gpsbabel -t |
| 31 |
-i gpx -f in.gpx |
| 32 |
-x track,pack,sdistance=0.3k,split=5m |
| 33 |
-o gpx -F out.gpx |
| 34 |
</userinput></para> |