gpxgapsplit

0.1.4 • Public • Published

gpxgapsplit

Command line tool to split GPX file by specified gap.

#example
#today.gpx <- 9:00-11:00 13:00-17:00

gpxgapsplit 1h split- < today.gpx

#result
#split-0.gpx #9:00-11:00
#split-1.gpx #13:00-17:00

Install

sudo npm install -g gpxgapsplit

Usage

gpxgapsplit [-ht] <gap> [<output prefix>] < <gpxfile>
Command line tool to split GPX file by specified gap.

options:
    -t: test mode, displays information of expected result

example:
    gpxgapsplit 1d < today.gpx  #split by 1 day gap(gpxgapsplit-0.gpx,gpxgapsplit-1.gpx...)
    gpxgapsplit 1h < today.gpx  #by + 1 hour blank
    gpxgapsplit 1d < today.gpx  #by + 1 day blank
    gpxgapsplit -t 1d < today.gpx  #test mode, displays expected result
    gpxgapsplit 1m split- < today.gpx  #specify prefix of output file(split-0.gpx,split-1.gpx...)

Use as module(rxjs)

Rx=require('rxjs');
GpxGapSplit=require('gpxgapsplit');

gapSeconds=3600;

Rx.Observable.from("<xml><gpx>...</gpx>")
.flatMap(function(gpxxml){GpxGapSplit(gpxxml,gapSeconds)})
.subscribe(function(r){
    console.log("=PART=");
    console.log(r);
});

Change Log

  • 0.1.x:first release

Readme

Keywords

none

Package Sidebar

Install

npm i gpxgapsplit

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • kssfilo