#------------------------------------------------------------------------------ # File: kml_track.fmt # # Description: Example ExifTool print format file for generating a # track in Google Earth KML format from a collection of # geotagged images or timed GPS from video files # # Usage: From a collection of images: # # exiftool -p kml_track.fmt -r DIR [...] > out.kml # # From video files: # # exiftool -p kml_track.fmt -ee3 FILEorDIR [...] > out.kml # # Requires: ExifTool version 10.41 or later # # Revisions: 2019/10/29 - P. Harvey created # # Notes: 1) Input files must contain GPSLatitude and GPSLongitude. # 2) The -fileOrder option may be used to control the order of the # waypoints when processing multiple still-image files, or the # order of the tracks when processing multiple video files. # 3) The "0" in the BODY line below may be changed to "$gpsaltitude#" # and the altitudeMode may be changed to "absolute" to store # altitude information if it exists in the track log. #------------------------------------------------------------------------------ #[HEAD] #[HEAD] #[HEAD] #[HEAD] My Track #[HEAD] 1 #[SECT] #[SECT] ${main:directory;$_=$self->GetValue('FileName') if $self->Options('ExtractEmbedded')} #[SECT] #[SECT] #[SECT] clampToGround #[SECT] #[BODY]$gpslongitude#,$gpslatitude#,0 #[ENDS] #[ENDS] #[ENDS] #[TAIL] #[TAIL]