ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: MontanaDoug on April 01, 2019, 08:27:46 PM

Title: Extracting GPS data in dec deg to txt file
Post by: MontanaDoug on April 01, 2019, 08:27:46 PM
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
Title: Re: Extracting GPS data in dec deg to txt file
Post by: Phil Harvey on April 01, 2019, 09:18:56 PM
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) (https://exiftool.org/install.html#Windows)?

- Phil

Title: Re: Extracting GPS data in dec deg to txt file
Post by: MontanaDoug on April 01, 2019, 11:04:27 PM
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.
Title: Re: Extracting GPS data in dec deg to txt file
Post by: MontanaDoug on April 01, 2019, 11:12:39 PM
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!
Title: Re: Extracting GPS data in dec deg to txt file
Post by: Hayo Baan on April 02, 2019, 04:30:51 AM
What is the output if you run just exiftool without any parameters?
Title: Re: Extracting GPS data in dec deg to txt file
Post by: MontanaDoug on April 02, 2019, 10:17:31 AM
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