Need help with a command line

Started by Laird of Driftwood, August 06, 2015, 05:36:35 PM

Previous topic - Next topic

Laird of Driftwood

I am trying to write a spreadsheet for a large number of photos.  Their metadata has GPS in decimal format, and that is how I want it to appear in the spreadsheet.  When I used the following command line it came out in degrees, minutes, seconds.  Below is the command line I used.  Please rewrite it for me to do what I want.  Thanks.  exiftool -csv -filename -GPSLatitude -gps:GPSLongitude ./ > sighet7Aug.csv

Phil Harvey

Try adding -n to the command.  But you should use -gpslongitude and not -gps:gpslongitude if you want a signed decimal.

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

Laird of Driftwood

Thanks, Phil.  I got the -n in the right place by trial and error, and your comment added an important nuance.

Phil Harvey

Quote from: Laird of Driftwood on August 08, 2015, 12:31:36 PM
I got the -n in the right place by trial and error

I hope there wasn't much "error".  The -n can go anywhere in the exiftool command.  The only thing it can't do is go after the shell redirection (>).

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