CTHRU/Hitrava

[ENHANCEMENT] Provide command line argument option to generate altitude data for every record in the TCX file to support 3rd party services.

muenkel opened this issue · 4 comments

Hi,
I'm using the Honor Magic Watch 2 to log GPS positions and altitudes. I've found out, that not every track point in a HiTrack* file has an altitude entry. Therefore after the conversion with Hitrava.py into a tcx-file not every Trackpoint element has an AltitudeMeters element. This caused problems, if the tcx-file is loaded in a program like QMapShack, to visualize the whole track on a map, because in these programs the altitude of every track point without an altitude is set to zero. So, even if you've walked in a flat area, it is possible that the program calculates that you've climbed on a hill with thousands of meters. To overcome this it would be nice if Hitrava has the possibility to interpolate the altitudes for the track points without an altitude value.

CTHRU commented

Thanks for your report, I understand your issue. Thing is I'm not sure whether TCX forces or compels to have altitude information for every trackpoint. For now, I assume this isn't necessarily the case. I use (GPXSee) to check whether Hitrava converted TCX files are readable, and the 'Elevation' information is represented in a correct fashion for an activity with altitude data.

I could add a command line argument to 'simulate' altitude information with every trackpoint in the generated TCX, but I'd rather not if it is not a TCX requirement.

I see following options for now:

  • If you find information that TCX files would require altitude info with every trackpoint when altitude data is available, I can evaluate to implement a solution like described above.
  • I advise you to check with the makers of QMapShack (if you didn't already) whether it's not better if they would be able to handle TCX files with altitude information in a similar fashion like GPXSee (provided that the assumption in the previous point is not a requirement).

If you have more info / other thoughts, just let me know here.

CTHRU commented

I don't know yet. I marked your request as an enhancement for now. I will see first if it can be added in an easy way, i'll add it.

CTHRU commented

Ok, it looks easy enough to add the last known altitude to every track point record. I will add it in the next release (coming soon).