ExifTool Forum

ExifTool => Developers => Topic started by: jean on October 28, 2016, 05:33:22 AM

Title: Writing GPS data
Post by: jean on October 28, 2016, 05:33:22 AM
Hi Phil

I use exiftool Under Windows with -stayopen

I write the following to the .args file:

-gpslongituderef
E
-gpslongitude
54.279999
-gpslatituderef
N
-gpslatitude
14.700000
c:\test\IMG_48.jpg
-execute

when i read the exiftool output Stream i get :

File not found: E
File not found: 54.279999
File not found:: N
File not found:: 14.700000
==================c:/test/IMG_48.jpg
  1 image files read
  4 files could not be read
{ready]


When i execute these commands under msdos it works correctly.
Any idea ?
jean
Title: Re: Writing GPS data
Post by: Phil Harvey on October 28, 2016, 07:08:38 AM
Hi Jean,

You forgot the "=" signs:

-gpslongituderef=E
-gpslongitude=54.279999
-gpslatituderef=N
-gpslatitude=14.700000
c:\test\IMG_48.jpg
-execute


- Phil
Title: Re: Writing GPS data
Post by: jean on October 28, 2016, 07:42:18 AM
I already tried with '='
The result is:

Error: File not found - E

jean
Title: Re: Writing GPS data
Post by: Phil Harvey on October 28, 2016, 07:45:24 AM
There should be no separate "E" in the args file.  I think you are using an old .args file.  Try the one I posted.

- Phil
Title: Re: Writing GPS data
Post by: jean on October 28, 2016, 09:56:21 AM
In fact i am writing to the .args dynamically.
I write
-gpslongituderef=
then a carriage return \n
then N + \n
etc
Title: Re: Writing GPS data
Post by: Phil Harvey on October 28, 2016, 10:00:48 AM
Yes.  But there should be no carriage return after the = sign.

- Phil
Title: Re: Writing GPS data
Post by: jean on October 28, 2016, 10:06:56 AM
Thank you Phil, it works now.
I did not find that tip in the doc  :(
Thank you for Exiftool !
jean