public static string ToLongitudeString(this double tag) { if (tag == 0) { return(GeoLocation.DecimalToDegreesMinutesSecondsString(tag)); } return((tag > 0 ? GUILocalizeStrings.Get(9095) : GUILocalizeStrings.Get(9096)) + GeoLocation.DecimalToDegreesMinutesSecondsString(tag)); }
public string?GetGpsDestLongitudeDescription() { var longitudes = Directory.GetRationalArray(GpsDirectory.TagDestLongitude); var longitudeRef = Directory.GetString(GpsDirectory.TagDestLongitudeRef); if (longitudes == null || longitudes.Length != 3 || longitudeRef == null) { return(null); } var lon = GeoLocation.DegreesMinutesSecondsToDecimal( longitudes[0], longitudes[1], longitudes[2], longitudeRef.Equals("S", StringComparison.OrdinalIgnoreCase)); return(lon == null ? null : GeoLocation.DecimalToDegreesMinutesSecondsString((double)lon)); }
public virtual string GetGpsLongitudeDescription() { GeoLocation location = _directory.GetGeoLocation(); return(location == null ? null : GeoLocation.DecimalToDegreesMinutesSecondsString(location.GetLongitude())); }
public string GetGpsLongitudeDescription() { var location = Directory.GetGeoLocation(); return(location == null ? null : GeoLocation.DecimalToDegreesMinutesSecondsString(location.Longitude)); }