Code Monkey home page Code Monkey logo

gpxmergeheartrate's People

Contributors

dependabot[bot] avatar ptanov avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gpxmergeheartrate's Issues

Support gpx files with <extensions>

Currently when has child gpxmergeheartrate does not work. Exception is: "Having 'extensions' in trkpt is not supported yet, file an issue, please"

Handle the case when rate zone is more than 100%

From time to time I have rates greater than my maximum rate, e.g.:

12.06.2019 20:30:58,198,104%
12.06.2019 20:30:52,199,104%
12.06.2019 20:30:47,199,104%
12.06.2019 20:30:37,199,104%
12.06.2019 20:30:31,198,104%
12.06.2019 20:30:25,196,103%
12.06.2019 20:30:16,197,103%
12.06.2019 20:30:06,198,104%
12.06.2019 20:29:59,196,103%
12.06.2019 20:29:53,195,102%
12.06.2019 20:29:43,195,102%
12.06.2019 20:29:37,196,103%
12.06.2019 20:29:31,196,103%
12.06.2019 20:29:25,196,103%
12.06.2019 20:29:19,196,103%
12.06.2019 20:29:13,196,103%
12.06.2019 20:29:08,196,103%
12.06.2019 20:28:58,197,103%
12.06.2019 20:28:48,197,103%
12.06.2019 20:28:43,197,103%
12.06.2019 20:28:37,197,103%
12.06.2019 20:28:27,197,103%
12.06.2019 20:28:22,196,103%
12.06.2019 20:28:16,196,103%
12.06.2019 20:28:10,196,103%
12.06.2019 20:28:04,196,103%
12.06.2019 20:27:59,196,103%

Indentation of the output file is broken if there is a indentation in source file

broken

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx
	xmlns="http://www.topografix.com/GPX/1/1"
	xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3"
	xmlns:wptx1="http://www.garmin.com/xmlschemas/WaypointExtension/v1"
	xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1"
	creator="Dakota 20"
	version="1.1"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www8.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/WaypointExtension/v1 http://www8.garmin.com/xmlschemas/WaypointExtensionv1.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd">
	<metadata>
		<link href="http://www.garmin.com">
			<text>Garmin International</text>
		</link>
		<time>2018-11-15T11:44:24Z</time>
	</metadata>
	<trk>
		<name>Day 10-NOV-18 07:24:58</name>
		<extensions>
			<gpxx:TrackExtension>
				<gpxx:DisplayColor>Cyan</gpxx:DisplayColor>
			</gpxx:TrackExtension>
		</extensions>
		<trkseg>
			<trkpt lat="42.5831057969" lon="23.2922615111">
				<ele>1807.42</ele>
				<time>2018-11-10T05:24:58Z</time>
			</trkpt>
		</trkseg>
	</trk>
</gpx>

results in

<?xml version="1.0" encoding="UTF-8"?><gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:wptx1="http://www.garmin.com/xmlschemas/WaypointExtension/v1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creator="Dakota 20" version="1.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www8.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/WaypointExtension/v1 http://www8.garmin.com/xmlschemas/WaypointExtensionv1.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd">
	<metadata>
		<link href="http://www.garmin.com">
			<text>Garmin International</text>
		</link>
		<time>2018-11-15T11:44:24Z</time>
	</metadata>
	<trk>
		<name>Day 10-NOV-18 07:24:58</name>
		<extensions>
			<gpxx:TrackExtension>
				<gpxx:DisplayColor>Cyan</gpxx:DisplayColor>
			</gpxx:TrackExtension>
		</extensions>
		<trkseg>
			<trkpt lon="23.2922615111" lat="42.5831057969">
				<ele>1807.42</ele>
				<time>2018-11-10T05:24:58Z</time>
			<extensions>
					<gpxtpx:TrackPointExtension>
						<gpxtpx:hr>83</gpxtpx:hr>
					</gpxtpx:TrackPointExtension>
				</extensions>
			</trkpt>
		</trkseg>
	</trk>
</gpx>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.