ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: fricco1983 on June 05, 2023, 06:54:10 PM

Title: Geotagging issue
Post by: fricco1983 on June 05, 2023, 06:54:10 PM
Dear Phil/all
first of all, thank you for your exif tool, very helpful!
I have one issue. Windows 11. I have some pics w/ & some others w/o geotagging infos.
1- I divided pics in 2 separate folders (YES & MANCANTI);
2- I created out.gpx file from pics w/ info w/ this script (file gpx in attach):

exiftool -fileOrder gpsdatetime -p gpx.fmt /Users/Windows/Desktop/TEST_GEO/YES > out.gpx

3- I copied the file in missing info folder & tried to associate geotagging info to pics w/o info: it doesnt works, here below the error:

PS C:\Users\Windows\Desktop\TEST_GEO\YES> exiftool -geotag out.gpx /Users/Windows/Desktop/TEST_GEO/MANCANTI
Warning: No track points found in GPS file 'out.gpx' in File:Geotag (ValueConvInv)
Warning: GPS track is empty in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_075802184.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_075802184.jpg

what can I do? Please, can you help me? Thanks a lot,
Vit
Title: Re: Geotagging issue
Post by: Phil Harvey on June 06, 2023, 03:14:23 PM
Are you sure the files contain GPSDateTime?

What is the output of exiftool "-gps*" FILE for one of the files?

- Phil
Title: Re: Geotagging issue
Post by: Phil Harvey on June 08, 2023, 11:36:09 AM
I just checked my mail and I think I found the sample track log (passed on my Oliver Betz).  The problem with this file is that it is UTF16-encoded.  Change this to UTF8 and it should work.

- Phil
Title: Re: Geotagging issue
Post by: fricco1983 on June 09, 2023, 02:03:41 PM
Thank you for your kind replay! How can I change out.gpx file to UTF8?
Title: Re: Geotagging issue
Post by: StarGeek on June 09, 2023, 11:47:46 PM
If you use Notepad++ (https://notepad-plus-plus.org/), there's a menu to change the encoding

(https://i.imgur.com/YeQfP0l.png)

I also found this Superuser answer (https://superuser.com/a/1163765/314998) which uses PowerShell.
Title: Re: Geotagging issue
Post by: fricco1983 on June 10, 2023, 04:35:17 AM
Thank you all!!!!
it almost works!
...almost because 30/40 pics didn't accepted gps information...how could I do? here the output:


PS C:\Users\Windows\Desktop\TEST_GEO\MANCANTI> Get-Content .\out.gpx | Set-Content -Encoding utf8 out-utf8.gpx
PS C:\Users\Windows\Desktop\TEST_GEO\MANCANTI> exiftool -geotag out8.gpx /Users/Windows/Desktop/TEST_GEO/MANCANTI
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_075802184.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_075802184.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_144924804~2.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_144924804~2.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_151733912.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_151733912.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_151805829.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_151805829.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_152211653.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230422_152211653.jpg
Warning: Time is too far before track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_004056275.NIGHT.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_004056275.NIGHT.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_115533957.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_115533957.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_115924264.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_115924264.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_120005455.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_120005455.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_121149948.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_121149948.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_125209973.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_125209973.jpg
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230423_174248309.PANO.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_105410954.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_105410954.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_110122566.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_110122566.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_125946213.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230424_125946213.jpg
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_001511752.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_115814903.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_115814903.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_115902922.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230425_115902922.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230426_111520849.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230426_111520849.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230427_110454828.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230427_110454828.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230428_004903038.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230428_004903038.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230428_115338237~2.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230428_115338237~2.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_000039811.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_000039811.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_104537044.PORTRAIT.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_104537044.PORTRAIT.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_191403183.PORTRAIT.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_191403183.PORTRAIT.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_192317108.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230429_192317108.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_112316050.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_112316050.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_144820017.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_144820017.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_150036943.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_150036943.jpg
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_151315469.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230430_151315469.jpg
Warning: Time is too far beyond track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230501_122700479.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230501_122700479.jpg
Warning: Time is too far beyond track in File:Geotime (ValueConvInv) - /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230501_160350436.jpg
Warning: No writable tags set from /Users/Windows/Desktop/TEST_GEO/MANCANTI/PXL_20230501_160350436.jpg
    1 directories scanned
  10 image files updated
  30 image files unchanged
Title: Re: Geotagging issue
Post by: StarGeek on June 10, 2023, 06:21:54 PM
QuoteTime is too far from nearest GPS fix

Check the time stamps for these files.  Exiftool is telling you that the time stamps in the files are too far away from the time stamps in the GPX file.  This could be a time zone issue or it could be that the GPX file doesn't have data for that time.

See this troubleshooting tip (https://exiftool.org/geotag.html#TR3) on how to read the results when you add the -v2 (-verbose2) option (https://exiftool.org/exiftool_pod.html#v-NUM--verbose)  to your command.