ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dltmdan on March 31, 2012, 05:17:16 AM

Title: reverse geottaging?
Post by: dltmdan on March 31, 2012, 05:17:16 AM
Hi.

I wanted to create gpx file from my photos with gps information.
all of my photos are in the directory d:\photo

I copied exiftool to d:\photo directory and entered the phrase at dos prompt, win 7 32 bit as follow. 

d:\photo\exiftool -p gpx.fmt -d %Y-%m-%dT%H:%M:%SZ d:\photo> out.gpx

and I have an error message saying

"error opening directory >
file not found: out.gpx
1 directories scanned
15 image file read
1 file could not be read"

Could someone help me to figure this out?

Title: Re: reverse geottaging?
Post by: Phil Harvey on March 31, 2012, 08:14:34 AM
I can't download your screen cap right now, but the only way this could happen at the cmd.exe prompt is if it isn't a normal ">" character.

But my guess is that the command wasn't run in cmd.exe, and that you used the GUI, which doesn't handle redirection with ">".

Also, in your output "gpx.fmt" is printed a number of times, so exiftool must not have been able to read the gpx.fmt file -- probably because it wasn't in the current working directory where exiftool was run.

- Phil
Title: Re: reverse geottaging?
Post by: BogdanH on March 31, 2012, 08:32:26 AM
Hi Phil,
Just to help...
From screenshot (taken with camera) I can see, that ExifTool is being used in console window (I'm not sure if it's Windows).
The screenshot doesn't contain actual command; just ending of result:
gpx.fmt
gpx.fmt
......
gpx.fmt
Error opening directory >
File not found: out.gpx
    1 directories scanned
   15 image files read
    1 image file could not be read


-that's all (no path/prompt at the end).

Bogdan
Title: Re: reverse geottaging?
Post by: dltmdan on March 31, 2012, 10:54:24 AM
Hi Phil,

I ran the command from 'RUN" prompt.
So this time I tried cmd.exe.

It does generate out.gpx however it turns out that is not track record file.
It is the text file only with 'gpx.fmt' repeatedly typed. 

What did I  do wrong?
I am attaching captured image of the command prompt along with the text editor of out.gpx
Title: Re: reverse geottaging?
Post by: BogdanH on March 31, 2012, 11:23:23 AM
Hi,

And you do have gpx.fmt file (from ExifTool full distribution package) in the same folder where exiftool.exe is?

Bogdan
Title: Re: reverse geottaging?
Post by: Phil Harvey on March 31, 2012, 01:09:49 PM
Type the "pwd" command before running exiftool to see the current working directory.  If the gpx.fmt file isn't in this directory, then specify the directory on the command line with -p D:/SOME_DIR/gpx.fmt

- Phil
Title: Re: reverse geottaging?
Post by: BogdanH on March 31, 2012, 04:16:05 PM
My bad.. I have assumed gpx.fmt file should be where exiftool.exe is. Sorry for confusion...

Bogdan
Title: Re: reverse geottaging?
Post by: dltmdan on March 31, 2012, 10:59:23 PM
Thanks Phil and Bogdan

Copying gpx.fmt to the picture directory solved all problem.
Thank you very much.

One more question.
Some of the photos lack gpstimedate tag.
How can I output gpx file in the order of  original date/time (not modified or created date)?

I tried
exiftool -fileOrder datetime -p gpx.fmt  d:\photos > out.gpx

but it does not seem to create chronological track.



Title: Re: reverse geottaging?
Post by: Phil Harvey on April 01, 2012, 07:33:58 AM
The -fileorder option takes a tag name for an argument.  So I think you want

-fileorder datetimeoriginal

or

-fileorder gpsdatetime -fileorder datetimeoriginal

to sort on GPSDateTime, or DateTimeOriginal if GPSDateTime isn't available.

- Phil
Title: Re: reverse geottaging?
Post by: dltmdan on April 01, 2012, 10:03:49 PM
It works perfectly.
Thanks a lot for the help and your amazing software.

:)