npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gpxsplit

v1.1.1

Published

Split GPX files

Downloads

5

Readme

GPX Splitting Tool

license NPM version Build Status Dependencies Status

gpxsplit is command line tool to split and convert GPX files.

GPX is handy, de-facto standard file format used by GPS devices and mapping software. But some legacy GPS devices are limited in way they support tracks, especially longer ones. This tool convert and split GPX files. It make possible to use modern GPX files, like those exported from on line routing sites to handle them on older, legacy GPS hardware.

Setup

  • install Node.JS (if not already installed)
  • from command line execute:
$ npm install -g gpxsplit 

Usage

$ gpxsplit [options] [path_to_gpx_file]

For full list of supported options execute:

$ gpxsplit -h

Options

All options are optional. When not specified, they are ignored or have default value. Boolean options are true if flag is present, false otherwise.

Option | Type | Default value --- | :---: | ---
-h, --help | Boolean | -V, --version | Boolean | -s, --split | Integer | 500 -w, --waypoints | Integer | 10 -o, --output | File Path | auto generated -b, --backup | Boolean | -d, --decimals | Integer [3..7] | 6 -p, --postfix | String | -split --noNameFix | Boolean | --noSplit | Boolean | --noWaypoints | Boolean |

Option help

Displays all options with short description.

Option version

Displays version of application (match NPM/Git version number).

Option split

Maximal allowed count of points in track. If track have more points, it will be split into parts. Each part points count is configured by this parameter.

Track parts shares all attributes of original path, with few notable changes:

  • track label and name are updated (or added - if not present), with number of part appended to it's end.
  • if resulting name is longer than 13 characters - original name will be shortened to fit into 13 character limit. This behaviour can be disabled by adding --noNameFix option

If parameter is 0, track will be not split, same as when adding --noSplit.

Option waypoints

Adds waypoints (POIs) each specified amount of kilometers. If parameter is 0, no waypoints are generated, same as when adding --noNameFix.

Option output

Explicit specifies output file. If not given, original file name is used, together with option -p, --postfix, to generate output name. If output file exists it will be overwritten

Option backup

If given, this option triggers making copy of source GPX file, saved into file with appended .bak extension. Previous .bak file (old backup) will be overwritten.

Option decimals

Specify amount of significant decimal places for GPS coordinates. Should be value between 3 and 7, default 6 is usually best choice.

Option postfix

Decides postfix added to source GPX file name to generate default output GPX file name. If source file name is already postfixed with given postfix, file will be backed-up and overwritten.

Option no name fix

By default, while splitting tracks, resulting track name is shortened to fit into 13 characters limit - as it is required by some older GPS devices. But when this flag is present, name is not adjusted.

Option no split

By default, tracks having more point than threshold specified by -s, --split , are divided into parts. But when this flag is present, tracks are not split or adjusted.

Option no waypoints

By default, POIs for track distance are added to GPX But when this flag is present, no waypoints are generated.

Compatibility

Tool was tested with:

Type | Tool
--- | --- device | Garmin eTrex Venture/Legend Cx input | EasyGPS output | http://www.strava.com/routes output | http://www.mapmyride.com/routes/ input | http://www.gpsvisualizer.com/