Closed mt-from-sf-to-gh closed 2 years ago
The custom GPX data tag mt:calories
represents the value in "small calories".
In the Tour Data Editor, the value is represented in "large calories", hence, if your GPX file has a mt:calories value of 1282, then the Tour Data Editor value should be 1.282
If you want the Tour Editor to display a kcal value of 1282, then the GPX file should contain this calorie value:
<mt:calories>1282000</mt:calories>
Per Wikipedia: Thus, 1 kilocalorie (kcal) = 1000 calories (cal)
Original comment by: FJBDev
Yes, thats true. Bug is only the column headline. Headline is called kcal but it is cal. It is not a program bug, only a wrong text in the headline or it has to be divided by 1000 before displayed.
Original comment by: hugohammer
Can you show a screenshot of the "column headline" you are talking about ? I looked in the TourBookView and Import View and it shows as kcal and the value is correct as it is in kcal.
Original comment by: FJBDev
GPX File Head:
?xml version='1.0' encoding='UTF-8'?>
Actually, can you attach the complete GPX file so I can reproduce the issue ?
Original comment by: FJBDev
Sure, i only removed some trkpoints at start and end. It is not really a problem. Only a cosmetic one. I found it when i first converted my data to import it.
Original comment by: hugohammer
Thanks for the file. I was able to reproduce the issue and it was happening in the Tour Import View. I fixed it for the next version. See a screenshot of the fix attached
Original comment by: FJBDev
Great - thx :-)
Original comment by: hugohammer
Original comment by: FJBDev
hi, thank you for this great stuff.
I have found a bug when importing .gpx files with calories. Example header: <?xml version='1.0' encoding='UTF-8'?>