[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58701] [octave-forge] (mapping) gpxread time

From: Geoff Warne
Subject: [Octave-bug-tracker] [bug #58701] [octave-forge] (mapping) gpxread time parsing error with decimal seconds
Date: Tue, 4 Aug 2020 05:49:50 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36

Follow-up Comment #11, bug #58701 (project octave):

Problem with "COURSE_19341403.gpx"
error on line 266 because dcol is 0. It does not get assigned correctly.

This if statement doesn't work for case of having time but not elevation.
I think the has_ele should be removed from first if statement.

            if (it && has_ele)
              if (! has_ele)
                ## No "ele" subnodes
                ptrnt = ptrnt1C;
                dcol = 3;
                ncols = 3;
              elseif (has_ele < it)
                ## ele nodes come before time nodes
                ptrnt = ptrnt1A;
                dcol = 4;
                ncols = 4;
                ## time nodes come before ele nodes
                ptrnt = ptrnt1B;
                dcol = 3;
                ncols = 4;
            elseif (has_ele)
              ptrnt = ptrnt2;
              ncols = 3;
              ## Just Lat and Lon nodes
              ptrnt = ptrnt3;
              ncols = 2;

After changing this the file was read correctly


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]