OutRun icon indicating copy to clipboard operation
OutRun copied to clipboard

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

Open patbakdev opened this issue 1 year ago • 2 comments

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 avatar Sep 22 '24 00:09 patbakdev

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

philiprenich avatar Nov 01 '24 18:11 philiprenich

Likewise, same issue here.

edapm avatar Jan 22 '25 13:01 edapm

I drop a very simple script for those who, like me, need to fix many GPX files

wchmb avatar Sep 05 '25 20:09 wchmb