File: kml_track.fmt

package info (click to toggle)
libimage-exiftool-perl 12.57%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 27,740 kB
  • sloc: perl: 280,930; xml: 120; makefile: 13
file content (49 lines) | stat: -rw-r--r-- 1,999 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#------------------------------------------------------------------------------
# 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]<?xml version="1.0" encoding="UTF-8"?>
#[HEAD]<kml xmlns="http://earth.google.com/kml/2.0">
#[HEAD]  <Document>
#[HEAD]    <name>My Track</name>
#[HEAD]    <open>1</open>
#[SECT]    <Placemark>
#[SECT]    <name>${main:directory;$_=$self->GetValue('FileName') if $self->Options('ExtractEmbedded')}</name>
#[SECT]      <Style>
#[SECT]        <LineStyle>
#[SECT]          <color>#ff4499ff</color>
#[SECT]          <width>3</width>
#[SECT]        </LineStyle>
#[SECT]      </Style>
#[SECT]      <LineString>
#[SECT]        <altitudeMode>clampToGround</altitudeMode>
#[SECT]        <coordinates>
#[BODY]$gpslongitude#,$gpslatitude#,0
#[ENDS]        </coordinates>
#[ENDS]      </LineString>
#[ENDS]    </Placemark>
#[TAIL]  </Document>
#[TAIL]</kml>