Skip to content

How to add GPS latitude and longitude using Exiftool

GPS Converter

https://www.gps-coordinates.net/gps-coordinates-converter

Wichtige Felder aus EXCEL CSV Datei

  • AF: HA/Lat
  • AG: VA/Long
  • M: Time 10:46:20 ( in Excel als Text Formatieren )
  • N: Date : 2024:10:25 ( in Excel als Text Formatieren )

Anzeigen einzelner GPS Meta-Daten von einem Image ( Windows 10 )

$ exiftool -gpsaltitude -gpslongitude -gpslatitude p.jpg
GPS Altitude                    : 554.3 m Above Sea Level
GPS Longitude                   : 11 deg 14' 29.45" E
GPS Latitude                    : 49 deg 44' 19.95" N

Current Status – 18.2.2025

Deal with high precision GPS Data – Read

https://exiftool.org/forum/index.php?topic=12089.0

$ exiftool -P -overwrite_original_in_place '-GPSLatitude<${coords;s/,.*//}' '-GPSLatitudeRef<${coords;s/,.*//}' '-GPSLongitude<${coords;s/.*,//}' '-GPSLongitudeRef<${coords;s/.*,//}' -userParam coords='49.7655312,10.619350772222223'  Lud_01.jpg
    1 image files updated

$ exiftool -a -G1 -s -n -ee '-gps*'  Lud_01.jpg
[GPS]           GPSVersionID                    : 2 3 0 0
[GPS]           GPSLatitudeRef                  : N
[GPS]           GPSLatitude                     : 49.7655311999
[GPS]           GPSLongitudeRef                 : E
[GPS]           GPSLongitude                    : 10.6193507722206
[GPS]           GPSAltitude                     : 349
[Composite]     GPSLatitude                     : 49.7655311999
[Composite]     GPSLongitude                    : 10.6193507722206
[Composite]     GPSPosition                     : 49.7655311999 10.6193507722206
$ exiftool Lud_01.jpg |grep -i gps
GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Altitude Ref                : Above Sea Level
GPS Altitude                    : 349.6 m Above Sea Level
GPS Latitude                    : 49 deg 45' 55.91" N
GPS Longitude                   : 10 deg 37' 9.66" E
GPS Longitude Ref               : East
GPS Position                    : 49 deg 45' 55.91" N, 10 deg 37' 9.66" E

$ exiftool Lud_01.jpg | grep -i date
File Modification Date/Time     : 2025:02:12 00:00:10+01:00
File Access Date/Time           : 2025:02:12 00:00:10+01:00
File Creation Date/Time         : 2025:02:11 13:26:09+01:00
Modify Date                     : 2024:10:25 20:24:10
Date/Time Original              : 2024:10:25 20:24:10
Create Date                     : 2024:10:25 20:24:10

Google Photos


Version used

D:\Simon>exiftool -ver
13.16

OS: Windows 10

Image with GPS data

D:\Simon>exiftool pict-with-gps.jpg |grep -i gps
File Name                       : pict-with-gps.jpg
GPS Latitude Ref                : North
GPS Altitude Ref                : Above Sea Level
GPS Longitude Ref               : East
GPS Altitude                    : 389 m Above Sea Level
GPS Latitude                    : 49 deg 45' 53.26" N
GPS Longitude                   : 10 deg 37' 8.48" E
GPS Position                    : 49 deg 45' 53.26" N, 10 deg 37' 8.48" E

Image without GPS data

D:\Simon>exiftool pict-without-gps.jpg | grep -i gps
File Name                       : pict-without-gps.jpg

Change GPS data


D:\Simon\test>exiftool  Sch_54-with-gps.jpg |grep -i gps
File Name                       : Sch_54-with-gps.jpg

D:\Simon\test>exiftool -exif:gpslatitude="49 45 53.26" -exif:gpslatituderef=N   Sch_54-with-gps.jpg
    1 image files updated

D:\Simon\test>exiftool -exif:gpslongitude="10 37 8,48" -exif:gpslongituderef=E  Sch_54-with-gps.jpg
    1 image files updated

D:\Simon\test>exiftool -gpsaltituderef="Above Sea Level" Sch_54-with-gps.jpg
    1 image files updated

D:\Simon\test>exiftool -gpsaltitude="389"  Sch_54-with-gps.jpg
    1 image files updated

D:\Simon\test>exiftool  Sch_54-with-gps.jpg |grep -i gps
File Name                       : Sch_54-with-gps.jpg
GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Altitude                    : 389 m Above Sea Level
GPS Latitude                    : 49 deg 45' 53.26" N
GPS Longitude                   : 10 deg 37' 8.00" E
GPS Position                    : 49 deg 45' 53.26" N, 10 deg 37' 8.00" E




Potential Problem

  • File Creation Date/Time
  • File Modification Date/Time
  • File Access Date/Time
D:\Simon>exiftool  p.jpg
ExifTool Version Number         : 13.16
File Name                       : p.jpg
Directory                       : .
File Size                       : 332 kB
File Modification Date/Time     : 2025:01:30 20:06:48+01:00
File Access Date/Time           : 2025:01:30 20:06:48+01:00
File Creation Date/Time         : 2025:01:30 19:42:31+01:00

About Date and time

$ pwd
/cygdrive/d/at_fcw/pv/Bilder/Zaehlerstand

$ exiftool   -alldates="2025:02:24 17:55:32" -GPSDatestamp="2025:02:24" -GPSTimestamp="17:55:32"  Zaehlerstand-FCW-Bezug-24-Feb-2024.jpg
    1 image files updated

$ exiftool  Zaehlerstand-FCW-Bezug-24-Feb-2024.jpg |grep -i date
File Modification Date/Time     : 2025:03:10 21:27:54+01:00
File Access Date/Time           : 2025:03:10 21:27:54+01:00
File Creation Date/Time         : 2025:03:10 20:15:39+01:00
Modify Date                     : 2025:02:24 17:55:32
Date/Time Original              : 2025:02:24 17:55:32
Create Date                     : 2025:02:24 17:55:32
GPS Date Stamp                  : 2025:02:24
Profile Date Time               : 2023:03:09 10:57:00
Create Date                     : 2025:02:24 17:55:32.848+01:00
Date/Time Original              : 2025:02:24 17:55:32.848+01:00
Modify Date                     : 2025:02:24 17:55:32.848+01:00
GPS Date/Time                   : 2025:02:24 17:55:32Z

https://rb.ax/blog/using-exiftool-to-set-dates-based-on-filename

Using a Viewer to locate pitures via Google Maps

https://engelmann.com/de/fotografie/wo-war-ich-aufnahmeort-ihrer-fotos-auf-einer-karte-google-maps-anzeigen

Metadaten bearbeiten mit dem ExifTool

https://www.thorsten-willert.de/optimierung/grafikoptimierung/metadaten-bearbeiten-mit-dem-exiftool

Usefull Links

https://stackoverflow.com/questions/41849691/how-to-add-gps-latitude-and-longitude-using-exiftool-in-mac-how-to-edit-meta-da

https://sitecam.io/how-to-edit-gps-coordinates-on-multiple-photos-in-windows

Published inAllgemein

Be First to Comment

Leave a Reply