tkrajina/gpxpy

Uphill Downhill are not accurate

byrod opened this issue · 2 comments

byrod commented

Hello I have an issue with the get_uphill_downhill()

Downhill and uphill are ok if upload my gpx on this website for example (visugpx.c*m)
Uphill / Downhill : ~ +228m -230 m

With gpxinfo they are:
Total uphill: 480.07m
Total downhill: 259.27m

SportsTracker-Walking-20210614-60c7399c5dce230db45a63a4.zip

I didn't find any help by searching by myself, so I post here.
Sorry if this is not an issue.

The problem is that the first few points in your track have no elevations and gpxpy is treating that as elevation=0.

I changed that now (4ca77c1) and it should be fixed in the new version.

byrod commented

Thank you !