How to extract a simply formatted Latitude/Longitude?

Started by TimA, January 18, 2022, 10:16:48 AM

Previous topic - Next topic

TimA

exiftool filename -gpslatitude -gpslongitude -n -T
gets me really close, but how can I impose formatting to get just 6 decimal places? I have achieved this with other command alternatives, just not able to do it with the above ...
And is there a way to add a literal comma between the latitude and longitude?
Thanks

StarGeek

Use the -c (-coordFormat) option to format the output as you like.

The composite tag GPSPosition returns both values with a comma between them, otherwise you would have to use the -p (-printFormat) option to format the output.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype