gpx_wpt.fmt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #------------------------------------------------------------------------------
  2. # File: gpx_wpt.fmt
  3. #
  4. # Description: Example ExifTool print format file to generate GPX waypoints
  5. # with pictures
  6. #
  7. # Usage: exiftool -p gpx_wpt.fmt -d %Y-%m-%dT%H:%M:%SZ FILE [...] > out.gpx
  8. #
  9. # Requires: ExifTool version 8.10 or later
  10. #
  11. # Revisons: 2010/03/13 - Peter Grimm created
  12. #
  13. # Notes: 1) All input files must contain GPSLatitude and GPSLongitude.
  14. # 2) The -fileOrder option may be used to control the order of the
  15. # generated track points.
  16. #------------------------------------------------------------------------------
  17. #[HEAD]<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  18. #[HEAD]<gpx version="1.1"
  19. #[HEAD] creator="ExifTool $ExifToolVersion"
  20. #[HEAD] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. #[HEAD] xmlns="http://www.topografix.com/GPX/1/1"
  22. #[HEAD] xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
  23. #[BODY]<wpt lat="$gpslatitude#" lon="$gpslongitude#">
  24. #[BODY] <ele>$gpsaltitude#</ele>
  25. #[BODY] <time>$gpsdatetime</time>
  26. #[BODY] <name>$filename</name>
  27. #[BODY] <link href="$directory/$filename"/>
  28. #[BODY] <sym>Scenic Area</sym>
  29. #[BODY] <extensions>
  30. #[BODY] <gpxx:WaypointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
  31. #[BODY] <gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
  32. #[BODY] </gpxx:WaypointExtension>
  33. #[BODY] </extensions>
  34. #[BODY]</wpt>
  35. #[TAIL]</gpx>