jokiazhang / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
0 stars 0 forks source link

small bug in gpsDirectory.getGeoLocation() #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Line 177:
       Double lon = GeoLocation.degreesMinutesSecondsToDecimal(longitudes[0], longitudes[1], longitudes[2], longitudeRef.equalsIgnoreCase("W"));

should be:
       Double lon = GeoLocation.degreesMinutesSecondsToDecimal(longitudes[0], longitudes[1], longitudes[2], longitudeRef.equalsIgnoreCase("E"));

note the "E" instead of the "W"
The sign of the resulting longitude is now wrong.

Original issue reported on code.google.com by winkelh...@gmail.com on 28 May 2013 at 9:10

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out. I will investigate and provide any fix in the 
next release.

Original comment by drewnoakes on 3 Jun 2013 at 11:17

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 3 Jun 2013 at 11:18

GoogleCodeExporter commented 9 years ago
According to http://www.nationalatlas.gov/articles/mapping/a_latlong.html, the 
current code (West longitude as negative) is correct. This is also the 
convention used in Google Maps, etc.

Original comment by tnad...@42six.com on 20 Mar 2014 at 9:49

GoogleCodeExporter commented 9 years ago
I agree with your comment. I can not remember or reproduce why I asked this.

Original comment by winkelh...@gmail.com on 21 Mar 2014 at 1:11

GoogleCodeExporter commented 9 years ago
Closing this issue as there does not actually seem to be an error here. If you 
experience problems related to longitude, please open a new issue on GitHub:

https://github.com/drewnoakes/metadata-extractor/

Original comment by drewnoakes on 19 Nov 2014 at 8:39