Giter Club home page Giter Club logo

gpxmerge's Introduction

GPXMerge

A simple python script to merge GPX files within a target directory

About

Sometimes we would like to merge all the tracks, track segments and track points across different GPS Exchange Format (GPX) files. You may want to do this to consolidate GPS data generated by your GPS devices. Merging all your GPX files into a single one allows you to easily visualize the spatial information as one single map layer on a mapping software.

Note that this algorithm

  • Preserves tracks. i.e. it does not merge different tracks under one
  • Filters off track points which are not timestamped
  • Orders track points chronologically under their track segment

Usage

Here's an example to run the script with all available options

python GPXMerge.py -i ./target -o target_merged.gpx -s 30

Options

Longform Shortform Optional Description
--input -i NO Input directory path containing GPX files to be merged
--output -o YES Output path for the merged GPX file. Defaults to be ./[input directory]_merged.gpx
--skip-interval -s YES The interval in track segment at which the track points are taken.

The reason to have a skip interval is to provide user control over the granularity of the merged data. Some GPS devices provide 1Hz data which may be too fine-grained for certain tasks.

gpxmerge's People

Stargazers

 avatar Mel Marochov avatar Nick Gibb avatar  avatar

Watchers

James Cloos avatar Jin Zhe avatar

Forkers

iberez

gpxmerge's Issues

Python 3 issue - 'filter' object has no attribute 'sort'

When I try to execute the script with Python 3.10.6 I get the error message
'filter' object has no attribute 'sort'
I found this other issue that points out changes in python 3 that caused this issue:
raghakot/keras-text#9
But I'm new to python and can't fix this/propose a solution. Would be glad if you'd update your project :)

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.