remisalmon / gpx-interpolate

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

Interpolation problems on tight turns #6

Closed goamberg closed 4 years ago

goamberg commented 4 years ago

I had problems on a file, did some testing and figured out that the problems appear on the section with the tight ~180° turn (green) image Here are the 2 gpx tracks for blue and green 10.zip

While the blue track has no problem to interpolate, the green one gives some errors. I tested it on about 4-5 turns from this file and its repeatable.

(It is not an issue for myself, but as I spent 3 hours looking why my file isnt working, maybe its helpful to you or others ;-) )

remisalmon commented 4 years ago

This is caused by duplicate trackpoints at the same location, fixed in the last commit.