Git Product home page Git Product logo

zbynek-gps's Introduction

Zbynek GPS Utilitilies - zbynek-gps-util command line utility

Command line utility to manipulate GPX files.

Usage

zbynek-gps-util [options] subcommand [options] arguments

retrack

zbynek-gps-util retrack -o output.gpx --position-prio 0,1,2 --elevation-prio 1,2,0 input.gpx another.gpx more.gpx ...

The command detects periods when device did not have GPS signal and stored the same position over period of time. For such periods, it linearly interpolates the values based on latest prior known location and earliest later known location.

This allows various utilities such as Strava to store and show correct distance and show all performance information for the periods missing location.

Example: https://www.strava.com/activities/7637073707/analysis : This was a travel from Czech Republic to Canada where GPS was lost most of the time during flight and even a while later. While the route is obviously slightly wrong (going straight instead of close to pole), the performance data was retained.

concat

zbynek-gps-util concat -o output.gpx one.gpx two.gpx three.gpx

The command concatenates multiple files into one, with the priority of data given by order of arguments. The command automatically orders the points by time, no matter what is the order of parameters.

cut

zbynek-gps-util cut -o output.gpx -s 2022-08-14T18:12:01Z -e 2022-08-14T18:15:16Z

The command removes period specified by -s and -e parameters (inclusive) from the given gpx file and write it to the same file.

Build

You need to install:

  • java (at least version 11)
  • maven

Debian or Ubuntu:

sudo apt -y install maven

MacOs:

brew install maven

RedHat or Suse:

sudo yum -y install maven

Build:

git clone https://github.com/kvr000/zbynek-gps.git
cd zbynek-gps/
mvn -f zbynek-gps-util/ package

./zbynek-gps-util/target/zbynek-gps-util -h

Caveats

Interpolation precision

The location interpolation is based on interpolating longitude and latitude separately. This works for short distances, it works less for longer distance (thousands of kilometers).

License

The code is released under version 2.0 of the Apache License.

Stay in Touch

Feel free to contact me at [email protected] and http://github.com/kvr000/ and http://github.com/kvr000/zbynek-gps/

zbynek-gps's People

Contributors

kvr000 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.