0.1.4 • Published 7 years ago

gpxgapsplit v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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
0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago