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

Exported GPX File Contains Duplicate Track Points Repeated Inside Subsequent Track Segments #96

Open
patbakdev opened this issue Sep 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@patbakdev
Copy link

Describe the bug
I noticed that when I open an exported GPX file in a GPX viewer (I tried two) that the mileage was way off. It also showed strange lines radiating back to the starting point if I had any kind of 'use segments' configuration checked in the viewer.

When I opened the GPX file in a text editor I notices that there are multiple elements. And each of these segment elements have a set of elements that include the previous set. I don't believe this is correct.

For example.

<trk>
    <trkseg>
	<trkpt> A </trkpt>
    </trkseg>
    <trkseg>
	<trkpt> A </trkpt>
	<trkpt> B </trkpt>
    </trkseg>
    <trkseg>
	<trkpt> A </trkpt>
	<trkpt> B </trkpt>
	<trkpt> C </trkpt>
    </trkseg>
</trk>

If I delete every segment but the last, the route information starts to look correct. Note that this is only the GPX file. The information inside OutRun always looks correct.

To Reproduce
Steps to reproduce the behavior:

  1. Export a workout to a GPX file
  2. Open GPX file in GPX viewer (i.e. GPXSee) or simply examine XML

Expected behavior
I assume each segment should start on its own without including the previous segments track points.

Device Information (please complete the following information):

  • iPhone: iPhone SE
  • OS: iOS 18
  • Version: 1,3

Additional context
I know you are busy. As stated about, I can currently work-around this by deleting all but the last trkseg, but it would be nice not to have to cleanup the file.

Thanks for your work on this. I really appreciate havinh an open source option for iOS that I can trust to respect my privacy and not to screw with my data.

@patbakdev patbakdev added the bug Something isn't working label Sep 22, 2024
@philiprenich
Copy link

I have this issue as well. Workaround is the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants