예제 #1
0
파일: GPSData.cs 프로젝트: jumar/ptolemy
 /// <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
파일: GPSPoint.cs 프로젝트: jumar/ptolemy
 /// <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
파일: GPXTest.cs 프로젝트: jumar/ptolemy
 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);
 }