Convert Garmin TPX to GPX
Project description
tcx2gpx
This module converts the Garmin tcx GPS file format to the more commonly used gpx file format. Both formats are a form of XML but there are some fields in the former that are not present in the later. It uses two packages to do the grunt work tcxparser and gpxpy.
Installation
git clone
cd
pip install .
Usage
Single file conversion
For convenience the convert()
method runs all steps...
from tcx2gpx import TCX2GPX
gps_object = tcx2gpx.TCX2GPX(tcx_path='file_to_convert.tcx')
gps_object.convert()
If you want to run the steps manually...
gps_object.read_tcx
gps_object.extract_track_points()
gps_object.create_gpx()
gps_object.write_gpx()
If you wish to access individual features then these are simply the @properties
or methods of
tcxparser
, for example...
gps_object.tcx.activity_type
'running'
Batch conversion
Often you will have many files you wish to convert, a convenience wrapper is provided. You specify the
--directory
that contains the files and they will be converted. It runs jobs in parallel and the number
of jobs to be run concurrently can be specified with the -j
flag.
python ./batch_convert.py --directory ~/my_tcx_workouts/ -j 6
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tcx2gpx-0.1.4.tar.gz
.
File metadata
- Download URL: tcx2gpx-0.1.4.tar.gz
- Upload date:
- Size: 77.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39ab97b272d36cd005236daf9efc3284c9e5c9d821cd040158eb3465564ff3b8 |
|
MD5 | f2d11cc1051402281031703952344889 |
|
BLAKE2b-256 | 718632c38fdd62e06da726270bd01fcf72dc0b6d8c17b6a4a8755563d632bef8 |
File details
Details for the file tcx2gpx-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: tcx2gpx-0.1.4-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c424cd365d57960b3e81dbc1aacc791cb369f7ff3364d136b0d479f484d751 |
|
MD5 | 1b99776423593fc712791f03e7f2baf6 |
|
BLAKE2b-256 | 4426924ec2ecc440eb6bf298ded802e44c363d37ba48c714168f3b247e95c274 |