-
Notifications
You must be signed in to change notification settings - Fork 2
Batch processing via command line
GPXEditor can be called for batch processing as follows:
GPXEditor.jar [options] --gpxFiles a list of files / can contain wildcards
If you only specify --gpxFiles: all files will be opened in the editor
Should all files be merged into one?
--mergeFiles
Should all tracks be merged into one?
--mergeTracks
Should track reduction be done?
--reduceTracks
With what algorithm?
--reduceAlgorithm="DouglasPeucker" or "VisvalingamWhyatt" or "ReumannWitkam"
With what parameter?
--reduceEpsilon = double value to use as parameter for the reduction algorithm
Should track fixing be done?
--fixTracks
With what parameter?
--fixDistance = double value to use as parameter for the fixing algorithm
Should empty tracksegments, tracks, files be deleted?
--deleteEmpty
What counts as empty?
--deleteCount = integer value to indicate up to how many items a tracksegment / track / file should be treated as "empty"
Please note, that parameters will be executed in the order they where passed! So
-mergeFiles -mergeTracks
leads to one file containing all tracks combined into one, whereas
-mergeTracks -mergeFiles
leads to one file with all tracks combined per input file
Also, deletion is done "bottom up". So if your gpx file only contains track segments with less waypoints than the limit the whole file will be deleted.
All of this coding wouldn't be possible without a number of fine people who provided their code & ideas to the community!