Skip to main content

Command line tool for measuring the straightness of a gpx track

Project description

linesman

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 by the youtuber GeoWizard.

Installation

As a python package, linesman is installed via 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

Currently, three deviation measures are implemented: max_m (maximum deviation to the straight line in meters), avg_m (average deviation to the straight line in meters) and avg_sq_m (average squared deviation).

Without special arguments, the maximum deviation is being calculated:

linesman <file.gpx> <lon_start,lat_start> <lon_end,lat_end>

Calculating the average deviation:

linesman <file.gpx> <lon_start,lat_start> <lon_end,lat_end> --using avg_m

For an example gpx file, see examples/simple.gpx.

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.1.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

gpx_linesman-0.1.2-py3-none-any.whl (4.1 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