Ejemplo n.º 1
0
        public static GpsTimePoint AdjustElevation(GpsTimePoint gpsPoint, decimal elevationAdjustment)
        {
            var elevation = Decimal.Parse(gpsPoint.elevation, culture);

            elevation += elevationAdjustment;
            return(new GpsTimePoint(gpsPoint, elevation: elevation.ToString()));
        }
Ejemplo n.º 2
0
 public static GpsTimePoint StripElevation(GpsTimePoint gpsPoint)
 {
     if (string.IsNullOrWhiteSpace(gpsPoint.elevation))
     {
         return(gpsPoint);
     }
     else
     {
         return(new GpsTimePoint(gpsPoint, elevation: string.Empty));
     }
 }
 public static GpsTimePoint StripElevation(GpsTimePoint gpsPoint)
 {
     if (string.IsNullOrWhiteSpace(gpsPoint.elevation))
     {
         return gpsPoint;
     }
     else
     {
         return new GpsTimePoint(gpsPoint, elevation: string.Empty);
     }
 }
 public static GpsTimePoint AdjustElevation(GpsTimePoint gpsPoint, decimal elevationAdjustment)
 {
     var elevation = Decimal.Parse(gpsPoint.elevation, culture);
     elevation += elevationAdjustment;
     return new GpsTimePoint(gpsPoint, elevation: elevation.ToString());
 }