Geotag images using "%.6f" format - not work

Started by Szem, August 14, 2012, 03:24:09 PM

Previous topic - Next topic

Szem

Hi,
I've liked to write gps coords in images by this command:
exiftool.exe -overwrite_original -geotag 1.gpx *.jpg
but I've found the coords in pictures xx° xx' xx.xx" format.
I've tried to use -c %.6f, but it didn't work.
Could you help me, and write the correct command line form.
Thanks.

Phil Harvey

The -c option works only when reading.  Exactly what commands were you using?

- 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 ($).

Szem

I've tried this command line
exiftool.exe -overwrite_original -geotag 1.gpx *.jpg
and put -c "%.6f" into some palces, dut didn't work.
Is there any solutions to get the gps coords in picrtures like this: hddd,dddddd° instead of hddd°mm'ss.s"?

Phil Harvey

OK.  The problem is not how the coordinates are written -- they are written using standard EXIF format.

Your problem is that when you read them back (with whatever software you are using) that you want them to be displayed in a different format.  If you read the GPS information back with ExifTool, you can use the -c option to change the format.  If you are reading the GPS with other software, you need to figure out how to change the display format for that software.

- 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 ($).

Szem

I've understand the problem.
Thanks for your quick reply!