Open belamu opened 2 years ago
Without -p
it works but the result is malformed. Somehow the link that was copied from the original file was causing a "malformed gpx file". Seems to be unrelated.
Conclusion from truncating the file: the last two trackpoints have the same coordinates. That apparently causes the error. After removing one of them, the error is gone.
What confuses me: the error is caused by gpxpy code but when I try to parse the file attached in the first post with import gpxpy; gpxpy.parse("osrm-Schkeuditz-FF.gpx")
I get an error for line 1: gpxpy.gpx.GPXXMLSyntaxException: Error parsing XML: syntax error: line 1, column 0
When calling
gpxelevations
with the commandgpxelevations osrm-Schkeuditz-FF.gpx -s -f osrm-Schkeuditz-FF-ele.gpx
I get the following error traceback:The gpx file is attached. The conda environment ist attached: conda-env-and-gpx-track.zip