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
Built Distribution
Hashes for gpx_linesman-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94f1ea4fbcaaae431d1bc696c18a2a0ac3cebeb24b9c0f465612bbee7748ac49 |
|
MD5 | 8c98e01ca5fc81564f717526ecaa724d |
|
BLAKE2b-256 | bd061660a2e475bc11ddc51e2de50890a2e9693fe52c635207da86da10af04c7 |