Fit2sgpx - converts a FIT file to a simple GPX file
fit2sgpx [<options>] [<FIT activity file> [<GPX file>]]
Fit2sgpx picks up just the GPS tracking logs from <FIT activity file>, converts them to correspoding simple GPX formats without any extensions, and write them to <GPX file>.
The latest version is obtained viafit2sgpx-0.01.tar.gz (6KB, 2018-01-25 03:58:23).
It uses a Perl class
Garmin::FIT
of version 0.10 or later.
-show_version
=
<non zero number>-verbose=1
stdout
.
-tplimit=
<number>-must=
<list>Fit2sgpx convert each record
message to a trackpoint in GPX format,
examines whether or not any of the elements in the list are defined,
and drop the trackpoint if not.
-tpexclude=
<list>trkpt
elements in <GPX file>.
-tpmask=
<list>A <region> must be a comma separated quadruple of the form <lat_sw>,
<long_sw>,
<lat_ne>,
<long_ne>.
<lat_*> must be degrees of latitudes,
and <long_*> must be degrees of longitudes.
Suffices _sw and _ne stand for ``south west'' and ``north east'', respectively.
Trackpoints in the ``rectangle'' (including borders) enclosed with paralles and meridians determined by the above latitudes and longitudes, are not written to <GPX file>.
-single_trkseg=1
trkseg
elements are divided after the ride paused or a new lap started.
-tpdesc=
<non zero number>desc
elements,
which describe lap numbers and the cause of enclosing trkseg
elements if the trackpoints are the first ones.
If <non zero number> is greater than 1,
lap numbers are included in all trackpoints.
Otherwise,
they are included only in the first trackpoints in trkseg
elements.
-metadata_name=
<string>metadata
with a name
element.
Without this option,
the contents of name
is the timestamp (say <TS>) of the first trackpoint.
When this option is specified, the contents is of the form "<string> (<TS>)".
-indent_step=
<number>-nl=
.fit2sgpx.pl
Fit2sgpx evaluates the contents of the file .fit2sgpx.pl
in your home directory if it exists,
before starting conversion.
So,
in the file,
you can set appropriate values to scalar variables of the same names of the above options with leading hyphens removed,
and will get the same effects as giving the command line options.
Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
This program is distributed with ABSOLUTELY NO WARRANTY.
Anyone can use, modify, and re-distibute this program without any restriction.