#------------------------------------------------------------------------------ # File: gpx.fmt # # Description: Example ExifTool print format file to generate a GPX track log # # Usage: exiftool -p gpx.fmt -ee3 FILE [...] > out.gpx # # Requires: ExifTool version 10.49 or later # # Revisions: 2010/02/05 - P. Harvey created # 2018/01/04 - PH Added IF to be sure position exists # 2018/01/06 - PH Use DateFmt function instead of -d option # 2019/10/24 - PH Preserve sub-seconds in GPSDateTime value # 2024/04/11 - PH Use %f feature in GPSDateTime formatting # # Notes: 1) Input file(s) must contain GPSLatitude and GPSLongitude. # 2) The -ee3 option is to extract the full track from video files. # 3) The -fileOrder option may be used to control the order of the # generated track points when processing multiple files. # 4) Coordinates are written at full resolution. To change this, # remove the "#" from the GPSLatitude/Longitude tag names below # and use the -c option to set the desired precision. #------------------------------------------------------------------------------ #[HEAD] #[HEAD] #[HEAD] #[HEAD]1 #[HEAD] #[IF] $gpslatitude $gpslongitude #[BODY] #[BODY] $gpsaltitude# #[BODY] #[BODY] #[TAIL] #[TAIL] #[TAIL]