Пример #1
0
 /// <summary>
 /// Creates a GPSData object based on the given GPX waypoint
 /// </summary>
 /// <param name="pGPXWaypoint">
 /// A <see cref="wptType"/>
 /// </param>
 public GPSData(wptType pGPXWaypoint)
 {
     if(pGPXWaypoint == null)
     {
         sLogger.Warn("Trying to build a GPSData from a null GPX waypoint");
     }
     else
     {
         mInit(pGPXWaypoint.lat, pGPXWaypoint.lon, pGPXWaypoint.ele, pGPXWaypoint.name, pGPXWaypoint.cmt, pGPXWaypoint.desc, pGPXWaypoint.time);
     }
 }
Пример #2
0
 /// <summary>
 /// Creates a GPSPoint object based on the given GPX waypoint
 /// </summary>
 /// <param name="pGPXWaypoint">
 /// A <see cref="wptType"/>
 /// </param>
 public GPSPoint(wptType pGPXWaypoint)
     : base(pGPXWaypoint != null ? pGPXWaypoint.name : null, pGPXWaypoint != null ? pGPXWaypoint.cmt : null, pGPXWaypoint != null ? pGPXWaypoint.desc : null)
 {
     if(pGPXWaypoint == null)
     {
         sLogger.Warn("Building a GPSPoint from a null GPX waypoint");
     }
     else
     {
         mInit(pGPXWaypoint.lat, pGPXWaypoint.lon, pGPXWaypoint.ele, pGPXWaypoint.time);
     }
 }
Пример #3
0
 static void OutputWayPoint(wptType pWayPoint)
 {
     Console.WriteLine("{0} {1} {2} {3} {4} {5} {6}m", pWayPoint.name, pWayPoint.cmt, pWayPoint.desc, pWayPoint.time, pWayPoint.lat, pWayPoint.lon, pWayPoint.ele);
 }