stborchert / gpx_splitter

Split gpx files based on tracks.
2 stars 0 forks source link

gpxSplitter

Ever wanted to split a gpx file so each track can be used seperately?

Installation

Download or checkout the files to a directory of your choice and run composer install.

Usage

Simply execute ./splitter.php --path="\path\to\your_export.gpx" to split a single gpx-file based on the recorded tracks.

To process multiple files, point "--path" to a directory with your exports.

Available options:

-p, --path: Path to a single gpx file or path to a directory of gpx files. The path may be either relative to current directory or an absolute path.

-m, --file-mask: Regular expression to use as file mask for files to be included. Defaults to "/.*.gpx$/i".

-f, --filename-base: Base filename for the track files. Defaults to the name of the input file.

-r, --recurse: Scan subdirectories. Defaults to "TRUE".

-v, --verbose: Enable extended logging.

-h, --help: Print help.