Skip to main content

Command line tool for measuring the straightness of a gpx track

Project description

linesman

test coverage Documentation Status

linesman is a small python command line tool calculating quality measures for the straightness of a gpx track. The project is inspired by the "I attempted to cross <country> in a completely straight line" series of youtuber GeoWizard.

Installation

As a python package, linesman is installed with pip. The package is named gpx-linesman:

pip install gpx-linesman

After installing the package, you should be able to run linesman:

linesman --help

Usage

linesman must be passed a gpx file with the recorded track and a quality measure that shall be used to compare the gpx track against the reference line:

linesman path/to/file.gpx <measure>

Currently, the following quality measures are implemented:

  • MAX: maximum deviation from the reference line in meters
  • AVG: average deviation in meters
  • SQ-AVG: squared deviation average in meters

Development

Python dependencies are managed with poetry and can be installed from poetry.lock by running:

poetry install

Then, the CLI tool can be started with poetry run linesman. Run tests with poetry run pytest.

Documentation

Conceptual documentation can be found on readthedocs.

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

gpx-linesman-0.3.0.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

gpx_linesman-0.3.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page