Decimal degree coordinates

Started by marcobarrios, April 21, 2014, 06:09:55 PM

Previous topic - Next topic

marcobarrios

Dear Phil,

Thank you for such a great tool!

Would it make any sense to enable users to enter GPS coordinates with plus (+) or minus (-) prefixes?

This could be used to indicate the North/South, East/West and Above/Below Sea Level values and ExifTool could then automatically set the corresponding LatitudeRef, LongitudeRef and AltitudeRef tags.

Example (somewhere in Buenos Aires, 160m above the sea level):

exiftool -GPSLatitude="-34.60372" -GPSLongitude="-58.38159" GPSAltitude="+160"

Thanks!

Phil Harvey

Try this:

exiftool -GPSLatitude="-34.60372" -GPSLatitudeRef="-34.60372" -GPSLongitude="-58.38159" -GPSLongitudeRef="-58.38159" -GPSAltitude="+160" -GPSAltitudeRef=above

OK, so the magic doesn't yet work for GPSAltitudeRef, but I can add this.

I won't be changing ExifTool to write the reference directions automatically because this goes against one of the basic principles of ExifTool -- to write only what you tell it.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

marcobarrios

Thank you Phil, that makes sense!

I didn't know you can already do that for Latitude and Longitude.

Keep up the good work!