Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#71 multiple tracks out of order output

closed-accepted
nobody
5
2013-03-18
2011-03-09
jlmalet
No

Hi!
thanks for creating Viking!
I've an issue when saving a trackwaypoint layer to GPX, if there are several tracks in the layer, the tracks are written into the GPX file in an unpredictable way....
for example :
track1.gpx
+ tracks
+ track from A to B
+ track from B to C
+ track from C to A

in gpx file I can get
<trk>
<name> track from C to A</name>
<...>
</trk>
<trk>
<name> track from A to B</name>
<...>
</trk>
<trk>
<name> track from B to C</name>
<....>
</trk>

this cause serveral track analysis tools to display wrong data (for exemple lot of eleveation more....)
the tracks shall be outputed in the way they are displayed
thanks and regards
JLM

Discussion

  • Rob Norris
    Rob Norris
    2011-03-10

    As far as I understand within a gpx file, the ordering of individual tracks has *no* bearing on the relationship between them.
    Thus Viking is free to order these tracks how it feels like.
    Viking shows the tracks in the tree view by alphabetical order. (unless explicitly compiled otherwise).
    Perhaps these other analysis tools are interpreting between tracks - generally not the done thing.
    Admittedly Viking could/should save a gpx file the way the GUI orders it, however as I said I don't think the internal ordering of a gpx file should matter.

     
  • Rob Norris
    Rob Norris
    2012-05-17

    • status: open --> open-remind
     
  • Rob Norris
    Rob Norris
    2012-05-17

    ATM Viking saves tracks in time stamp order of the track. (see gpx.c line~910)
    I think if there's no timestamps, then it will be the order the tracks were created in (or read in from a file)

    Probably could do a name sort before the time sort.

     
  • Rob Norris
    Rob Norris
    2013-01-07

    There is now an option (in the latest code) in the Preferences ->
    Export/External to order tracks when written to a GPX file.
    The options are by Time or Alphabetically.
    The default is by time (which matches the old behaviour).
    This will be available in the 1.4 version release.

     
  • Rob Norris
    Rob Norris
    2013-01-07

    • status: open-remind --> pending-accepted
     
  • Rob Norris
    Rob Norris
    2013-03-18

    • status: pending-accepted --> closed-accepted