remisalmon / gpx-interpolate

Python function to interpolate GPX data using piecewise cubic Hermite splines
MIT License
49 stars 12 forks source link

Is my gpx format wrong? #4

Closed goamberg closed 4 years ago

goamberg commented 4 years ago

Hi

This is a great script! But I am having small troubles here on my end with gpx conversions. Some I am able to get to work and some do not. This is a gpsbabel conversion from a kml track and somehow I get errors. (no timestamps)

I hope you can push me a little in the right direction?

edit: removed file

Thanks in advance Goam

remisalmon commented 4 years ago

The last point of your gpx file does not have a <time> tag which throws the error.

The code should check for missing tags before adding a point to the data, thanks for reporting!

goamberg commented 4 years ago

Thanks! This I totally overlooked. Its the base reference point.