public string GetCountryForGps(string textboxGpsData) { var coordinatesAsDoubles = TypeConverter.GetCoordsFromString(textboxGpsData); if (coordinatesAsDoubles != null) { var countryName = CountryNames.GetCountryName(coordinatesAsDoubles); _currentImage.CountryName = countryName; return(countryName); } return(String.Empty); }
public void ReadExifData() { CultureInfo cult = new CultureInfo("en-US"); Photographer = Exif.GetAutor(this.Image); var coordinates = Exif.GetGpsCoordinates(this.Image); if (coordinates != null) { GpsLocation = coordinates[0].ToString(cult) + "," + coordinates[1].ToString(cult); CountryName = CountryNames.GetCountryName(coordinates); } }