Skip to main content

gpxtools

Overview

Command line tools useful to manipulate GPX files.

Tools

gpx-elevation-fix

Fixes elevation (Z-axis) data in GPX file based on Shuttle Radar Topography Mission data. SRTM data are not available for whole globe. If SRTM data for position taken from GPX file do not exists, user will see download error of SRTM TIF file (for example srtm_38_00.TIF for Norway).

More information about Shuttle Radar Topography Mission:

gpx-cleanup

Removes from GPX file unnecessary data (e.g.: speed or course) stored by some GPS devices.

gpx-compress

Removes unnecessary chars (e.g.: white spaces) to decrease GPX file size.

Usage

Usage: command-name [options]

Options:
  -h, --help                show this help message and exit
  -i FILE, --intput=FILE    name of GPX input file, if not set stdin will be used
  -o FILE, --output=FILE    name of GPX output file, if not set stdout will be used

Tools can be easily used in pipeline:

cat input.gpx  | ./bin/gpx-fix-elevation | ./bin/gpx-cleanup | ./bin/gpx-compress > output.gpx

Installation

gpxtools requires GDAL python bindings. This packege uses GDAL library. You can build it form source or install from binary package. For more details see GDAL library homepage.

For example in Ubuntu (feisty or higher) can be installed from package:

sudo apt-get install python-gdal

gpxtools requires also lxml. To build it you can use plone.recipe.lxml buildout recipe.

Installation with easy_install

Run command:

$ easy_install gpxtools

Installation with buildout

Save script in buildout.cfg file:

[buildout]
develop = .
parts = gpxtools-script

[gpxtools-script]
recipe = zc.recipe.egg
eggs = gpxtools

Run commands:

$ python bootstrap.py
$ ./bin/buildout

Commands will be created in bin subdirectory.

References

Authors & Contact

  • [sargo] - Wojciech Lichota <wojciech[at]lichota.pl>

  • [teo] - Matteo Gottardi <matgott[at]tin.it>

Changelog

2010/02/15 0.2.1:

  • mkdir import fix [samuel.adam]

2009/12/10 0.2.0:

  • Support for GPX 1.0 files [teo]

  • Add the <ele> tag if not present [teo]

  • Documentation update [sargo]

2009/07/07 0.1.0:

  • Initial release [sargo]

Release files for gpxtools 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpxtools 0.2.1
File Size Uploaded
gpxtools-0.2.1.tar.gz 19.0 kB Details

Release files / gpxtools-0.2.1.tar.gz

Download URL gpxtools-0.2.1.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
de827cd85ac0c0b2555d30c2a0a69022650039ed3a240d7a0f6e6aabb010b4d0
BLAKE2b-256 checksum
How to use checksums
90a73baa7e9862a80e4baa75bf36213b13c51c3cf688a780efe33f604d4d765a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page