Exemplo n.º 1
0
 public Track(WatchDataGPX_LegacyCode.TrackSegmentGpx seg)
 {
     _track = new List <TrackPoint>();
     foreach (var p in seg)
     {
         _track.Add(new TrackPoint(p));
     }
 }
        public TrackSegmentGpx ReadTrackSegmentGpx()
        {
            TrackSegmentGpx seg = new TrackSegmentGpx();

            ++_lineNumber;

            string nextToken = IdentifyToken();

            while (nextToken == "trkpt")
            {
                TrackPointGpx point = ReadTrackPointGpx();
                seg.AddTrackPointGpx(point);
                nextToken = IdentifyToken();
            }

            return(seg);
        }