[Originally posted by exiftool on 2007-04-12 12:34:23-07]Hi,
The tricky part is splitting the position string into separate sections
so you can write them to the proper tags in the GPS information.
From your example, you must set the following tags:
-gpslatitude="40degr. 25' 10"
-gpslatituderef=N
-gpslongitude="3degr. 42' 20"
-gpslongituderef=W
I think since you don't have elevation data it is best to leave out
gpsaltitude/gpsalituderef rather then set them to zero.
The script given in
post 4621handled differently formatted lat/long information, and read it from
file, but essentially did the same thing.
From the command line, you could add a
-if option to
only write files without GPS information (by testing the mandatory
GPSVersionID tag:
exiftool -if 'not $gpsversionID' ...
(windows users: note that the quoting above is for Linux, but you
need to use double quotes)
- Phil