public static GpsTimePoint AdjustElevation(GpsTimePoint gpsPoint, decimal elevationAdjustment) { var elevation = Decimal.Parse(gpsPoint.elevation, culture); elevation += elevationAdjustment; return(new GpsTimePoint(gpsPoint, elevation: elevation.ToString())); }
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()); }