pyinat/naturtag

Add geotagging features?

Closed this issue · 1 comments

Geotagging based on GPX tracks would be a useful feature to add. There are more fully-featured geotagging tools out there (GeoSetter is the one I use personally) for advanced use cases. But for simple use cases, it would be very convenient to do this at the same time as observtion/taxon metadata tagging, and remove an extra step in your workflow.

It would look something like:

  • Point to a directory containing .gpx files
  • For each image:
    • Get the timestamp (Exif.Photo.DateTimeOriginal or similar)
    • Find a matching GPX track, if any (photo timestamp is between track start and end timestamp)
    • Interpolate coordinates between two nearest points
    • Write coordinates:
      • Write to Xmp.dwc.decimalLatitude/decimalLongitude (decimal degrees)
      • Convert and write to Xmp.exif.GPSLatitude/GPSLongitude (DDM)
      • Convert and write to Exif.GPSInfo.GPSLatitude/GPSLongitude (DMS)

Moved to #227