GPSClean icon indicating copy to clipboard operation
GPSClean copied to clipboard

Issue reading and analyzing my gpx file

Open JohnVictoryz opened this issue 8 months ago • 4 comments

Image

this was the output of the the script when it was run on my gpx file but it has like 200+ tracks with over 230000+ points so i dont know if its a limitation of the program only being able to recognise 1 track only but it having too many points and tracks so can somebody help me

JohnVictoryz avatar Jul 14 '25 20:07 JohnVictoryz

Hi! I will try to reproduce it but it definitely may be connected with the fact that the GPX file contains multiple tracks. Does it contain multiple trk elements inside, is it right?

sbettid avatar Jul 15 '25 06:07 sbettid

yeah it has multiple trk and a lot of points

JohnVictoryz avatar Jul 15 '25 15:07 JohnVictoryz

Okay so the number of points should not be an issue, in the worst case it will make the whole run a bit slower...

In my case, also if I have different tracks it seems to work with the following structure

?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1"
  xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/11.xsd"
  xmlns="http://www.topografix.com/GPX/1/1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
  <metadata>
  </metadata>
  <trk>
    <name>Track 1</name>
    <trkseg>
      <trkpt>
      </trkpt>
      ....
      <trkpt>
      </trkpt>
    </trkseg>
  </trk>
  <trk>
    <name>Track 2</name>
    <trkseg>
      <trkpt>
      </trkpt>
      ....
      <trkpt>
      </trkpt>
    </trkseg>
  </trk>
</gpx>

can I just ask you what is the overall structure of you trace and if it differs significally from the one I outlined above?

Of course, if there are some more cases to cover to handle your trace I will be happy to cover them 😄

sbettid avatar Jul 15 '25 21:07 sbettid

I will see and get back to you shortly

JohnVictoryz avatar Jul 16 '25 13:07 JohnVictoryz