exiftool Download and Information for Exiftool
ExifTool is very flexible in the formats allowed for entering GPS
coordinates. Any string containing between 1 and 3 floating point
numbers is valid. The numbers represent degrees,
(and optionally) minutes and seconds.
For EXIF GPS coordinates, the reference direction is specified separately
with the EXIF:GPSLatitudeRef or EXIF:GPSLongitudeRef tag.
For XMP GPS coordinates, the reference direction is specified within the
XMP:GPSLatitude or XMP:GPSLongitude value, with west longitudes and south
latitudes being specified either by negative coordinate values or by ending
the string with "W" or "S".
Here are some examples of equivalent ways to specify a GPS latitude in both
EXIF and XMP:
exiftool -exif:gpslatitude="42 30 0.00" -exif:gpslatituderef=S a.jpg
exiftool -exif:gpslatitude="42 deg 30.00 min" -exif:gpslatituderef=S a.jpg
exiftool -exif:gpslatitude=42.5 -exif:gpslatituderef=S a.jpg
exiftool -xmp:gpslatitude="42 30 0.00 S" a.jpg
exiftool -xmp:gpslatitude=42.50S a.jpg
exiftool -xmp:gpslatitude=-42.5 a.jpg
Similar styles may be used for longitude. ExifTool will convert any of these
coordinate styles to the proper format for the specific tag used.
When reading, ExifTool reports coordinates in the format
DDD deg MM' SS.SS"
where DDD is degress, MM is minutes, and SS.SS is seconds. The -n option
may be used to change this to decimal degrees, or any arbitrary format
may be specified with the -c option. See the application documentation
for details.