Extracting GPS data in dec deg to txt file

Started by MontanaDoug, April 01, 2019, 08:27:46 PM

Previous topic - Next topic

MontanaDoug

First:  You have built quite the tool.  It's a bit daunting at first to use it (tried a number of time over the past 10+ years).  Thanks for your hard work!!

Second: My question:  From previous posts I've come up with the following command line  exiftool -filename -gpslatitude -gpslongitude -T -n "C:\Users\D\Pictures\2019-03" > C:\Users\D\Desktop\out.txt

All I get is a blank out.txt file (on my desktop)

I've tried the -n parameter in a couple of different spots
I've tried using quotes or no quotes
The pictures in the directory do have GPS coords
The "drop picture" on exiftool(-k -gpslatitude -gpslongitude).exe works with multiple pictures but not in dec deg format.

Sorry for asking such a basic question -I think I'm close

Cheers, Doug

Phil Harvey

Hi Doug,

Your command looks good.  I don't see any way the output txt file could be blank unless you got a message like "file not found", or "bad command" or something like that.

What happens if you just type "exiftool" on the command line?  Did you install ExifTool for command-line use (steps 1-4)?

- Phil

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

MontanaDoug

Thanks for the very fast reply!

Yes, I followed the steps suggested, Only difference is that I put it in the System32 folder (but that's also in my PATH)

I may run a test with just a couple of known .jpg files in another folder.

MontanaDoug

Ran the test - same result.

No errors in the command window.

Ran rather fast - like instantly?  My hardware's pretty good, but not that good!

Hayo Baan

What is the output if you run just exiftool without any parameters?
Hayo Baan – Photography
Web: www.hayobaan.nl

MontanaDoug

Problem solved!

Thanks all for your replies!

I went back and followed your installation procedure exactly this time, checking each step (by running exiftool).

The problem manifested itself when I installed exiftool in the Windows\System32 folder instead of the Windows folder!

When I installed exiftool in the Windows folder, my simple script worked.

Grrr! So much for creativity - my stupid!!!  (must be a Win10 quirk, since the System32 folder contains a bunch of .exe files and is in the PATH???)

Cheers, Doug