goldengel / exiflibrary

Automatically exported from code.google.com/p/exiflibrary
MIT License
0 stars 0 forks source link

GPS info haven't been modified #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
* Posted by chrishon on CP *

I get the latest version from google code(v0.11).
ExifFile ef = ExifFile.Read("d:\\gpsphoto\\FP_IMAG0005.jpg");
ef.Properties[ExifTag.GPSLatitude] = new 
GPSLatitudeLongitude(ExifTag.GPSLatitude, 23.0f, 26.0f, 30.53f);
ef.Properties[ExifTag.GPSLatitudeRef] = new 
ExifEnumProperty<GPSLatitudeRef>(ExifTag.GPSLatitudeRef, GPSLatitudeRef.South);
ef.Properties[ExifTag.GPSLongitude] = new 
GPSLatitudeLongitude(ExifTag.GPSLongitude, 151.0f, 56.0f, 13.66f);
ef.Properties[ExifTag.GPSLongitudeRef] = new 
ExifEnumProperty<GPSLongitudeRef>(ExifTag.GPSLongitudeRef, 
GPSLongitudeRef.East);
ef.Save(Server.MapPath("/upload/" + DateTime.Now.ToString("yyMMddhhmmss") + 
".jpg"));
there is no error,but GPS info haven't been modified;

but,if change code:
ExifFile ef = ExifFile.Read("d:\\gpsphoto\\FP_IMAG0005.jpg");
ef.Properties.Clear();
...
GPS have been modified.

Original issue reported on code.google.com by oozcitak on 23 Aug 2010 at 7:58

GoogleCodeExporter commented 8 years ago
Can't reproduce on version 0.12. Probably related to an old version.

Original comment by oozcitak on 23 Aug 2010 at 8:07