News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Geotag folder of images

Started by lombardata, March 31, 2022, 06:55:31 AM

Previous topic - Next topic

lombardata

Hello everybody,
First of all I would like to thank M.Harvey for the creation of this fantastic tool.
I'm facing a problem trying to georeference images from data contained in a .txt file.
The images tags are of this type (I've used the command "os.system("exiftool -time:all -s " + DIR)" in order to plot tags):

======== /DIR/DSCI1673.JPG
FileModifyDate                  : 2022:03:31 14:34:50+04:00
FileAccessDate                  : 2022:03:31 14:34:50+04:00
FileInodeChangeDate             : 2022:03:31 14:34:50+04:00
ModifyDate                      : 2020:10:16 17:15:27
DateTimeOriginal                : 2021:06:12 08:28:22
CreateDate                      : 2020:10:16 17:15:27
SubSecTimeOriginal              : 000
GPSTimeStamp                    : 00:00:00
GPSDateStamp                    :  1.1.0000
SubSecDateTimeOriginal          : 2021:06:12 08:28:22.000
GPSDateTime                     :  1.1.0000 00:00:00Z


And the .txt file is organized as follows :


GPSDateStamp,GPSTimeStamp,GPSLatitude,GPSLongitude,elevation,fix,nbsat,sdn,sde,sdu,sdne,sdeu,sdun,age,ratio,GPSDateTime,GPSPosition
2021:06:12,08:28:19.000,-22.343486278,40.339513253,15.6364,5,13,2.4,2.2,3.7,0,0,0,0,0,2021:06:12 08:28:19.000,-22.343486278 40.339513253
2021:06:12,08:28:20.000,-22.343497506,40.339511304,14.4015,5,13,2.1,1.9,3.5,0,0,0,0,0,2021:06:12 08:28:20.000,-22.343497506 40.339511304
2021:06:12,08:28:21.000,-22.343504638,40.33951086,13.537,5,13,2,1.7,3.3,0,0,0,0,0,2021:06:12 08:28:21.000,-22.343504638 40.33951086


I would like to use the command "exiftool -geotag trk.gpx '-geotime<${DateTimeOriginal}+00:00' dir" shown in :
https://exiftool.org/geotag.html
But when I try (I'm launching bash commands with Python) :


write_gps = "exiftool -m  -geotag " + DIR_GPS + "/" + File1 + " '-geotime<${XMP:DateTimeOriginal}+04:00' " + DIR + " -overwrite_original "
os.system(write_gps)


I get the following error :


Warning: Error rebuilding maker notes (may be corrupt) -
/DIR/DSCI1673.JPG
Warning: No writable tags set from /DIR/DSCI1673.JPG


Can anyone please help me?
Thank you very much and have a good day,
Matteo