Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Values in GPX file #36

Open
SirArris opened this issue Feb 19, 2023 · 1 comment
Open

Missing Values in GPX file #36

SirArris opened this issue Feb 19, 2023 · 1 comment

Comments

@SirArris
Copy link

I miss the speed and distance node in the resulting gpx-file. When i make a dump2text the values where there.
The source is a garmin .fit from Edge 130 Plus.

Bildschirmfoto vom 2023-02-19 18-10-34
Bildschirmfoto vom 2023-02-19 18-06-25

@mrihtar
Copy link
Owner

mrihtar commented Feb 23, 2023

Typical GPX file has references to GPX schemas in the first line (<gpx ...>). These schemas, if enforced by the reading program/library, describe what is allowed in the file content. Current schemas (GPX 1.1 from Topografix and Garmin's Track Point Extension or Cluetrust GPX Extension) don't allow anything like <speed> or <distance>.

Some vendors can put some additional elements in the GPX file, but then these GPX files are not universally readable in all programs. Distance and speed is typically calculated in the program, which displays/process the GPX file. For example: distance is calculated with the Vincenty's formula and speed is calculated out of distance and time passed. These values can differ from the values recorded in the device, especially the speed (because of GPS jitter and the way the device calculates these values).

I have a similar problem with the conversion of GPX to slf - GPX files don't have speed and distance data, but slf does. So I have to calculate them by hand using the above formulas and I am not quite satisfied with the result. But that's how it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants