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 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 metersAVG: average deviation in metersSQ-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. Pass --cov flag to pytest to get a test coverage report.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpx-linesman-0.2.1.tar.gz.
File metadata
- Download URL: gpx-linesman-0.2.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.7 Linux/5.4.0-1036-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6e27b2d245376eb6cfaf297042121b157b50bef0ac1954541a2d02e0f85659d
|
|
| MD5 |
ee63dcc5eb10a85050e5b1bff167cfe7
|
|
| BLAKE2b-256 |
a938d5f1b091882399bfc68ed6b93e8c72071ca00f7c1ae77047aa8eb52e0d67
|
File details
Details for the file gpx_linesman-0.2.1-py3-none-any.whl.
File metadata
- Download URL: gpx_linesman-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.7 Linux/5.4.0-1036-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ce31a1bbc2576b6f2e371fc24add6f3d5caffb99bc4deacfa0cf8c2e522d2fd
|
|
| MD5 |
68f5c384b72196a5976284f79ac9e30a
|
|
| BLAKE2b-256 |
043306b61b67a8dfcaec7a057f66d0aa72c9d55f4cf4788a6a113598733b3a20
|