Correct GPX tracks/ways/routes, that have gaps.
Often, generation of paths and routes using GPS tags is accomplished by small gaps, that do not allow consider path as a whole. The route can be divided into several sub-routes, and the sequence of chains can be broken, which will complicate further analysis of the entire path. This script allows you to combine all sections of the route or path into one structure.
Script accepts two input parameters. First parameter use flag '-f' or '--filename' and hold name of input file in format '*.gpx '. Second parameter use flag '-t' or '--tagname' and hold name of GPX tag, that acts as the origin of the route points:
wptif the points are stored as waypoints;trkif the points are stored as traketories;rteif the points are stored as routes.
python correctgpx.py -f <GPX filename>.gpx -t <tag name>