예제 #1
0
        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);
        }
예제 #2
0
        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);
            }
        }