public static GpxTrackSeg FromXElement(XElement xe)
        {
            GpxTrackSeg seg = new GpxTrackSeg();

            seg.Points = xe.Elements(Gpx.ns + "trkpt").Select(x => GpxTrackPoint.FromXElement(x)).ToList();
            return(seg);
        }
        public static GpxTrackPoint FromXElement(XElement xe)
        {
            GpxTrackPoint pt = new GpxTrackPoint();

            pt.Latitude  = xe.AttValue("lat").TryParseToDouble();
            pt.Longitude = xe.AttValue("lon").TryParseToDouble();
            pt.Elevation = xe.Element(Gpx.ns + "ele").Value.TryParseToDouble();
            pt.Time      = DateTime.Parse(xe.Element(Gpx.ns + "time").Value); //.Replace("T", " ").Replace("Z", ""));
            return(pt);
        }