gpx.fmt 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. #------------------------------------------------------------------------------
  2. # File: gpx.fmt
  3. #
  4. # Description: Example ExifTool print format file to generate a GPX track log
  5. #
  6. # Usage: exiftool -p gpx.fmt -d %Y-%m-%dT%H:%M:%SZ FILE [...] > out.gpx
  7. #
  8. # Requires: ExifTool version 8.10 or later
  9. #
  10. # Revisions: 2010/02/05 - P. Harvey created
  11. #
  12. # Notes: 1) All input files must contain GPSLatitude and GPSLongitude.
  13. # 2) The -fileOrder option may be used to control the order of the
  14. # generated track points.
  15. #------------------------------------------------------------------------------
  16. #[HEAD]<?xml version="1.0" encoding="utf-8"?>
  17. #[HEAD]<gpx version="1.0"
  18. #[HEAD] creator="ExifTool $ExifToolVersion"
  19. #[HEAD] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. #[HEAD] xmlns="http://www.topografix.com/GPX/1/0"
  21. #[HEAD] xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
  22. #[HEAD]<trk>
  23. #[HEAD]<number>1</number>
  24. #[HEAD]<trkseg>
  25. #[BODY]<trkpt lat="$gpslatitude#" lon="$gpslongitude#">
  26. #[BODY] <ele>$gpsaltitude#</ele>
  27. #[BODY] <time>$gpsdatetime</time>
  28. #[BODY]</trkpt>
  29. #[TAIL]</trkseg>
  30. #[TAIL]</trk>
  31. #[TAIL]</gpx>