#!/bin/bash

# WGS84 coordinates 48.900041 N, 15.167010 E
LATITUDE="48.900041"
LATREF="N"
LONGITUDE="15.167010"
LONGREF="E"
# altitude in meter
ALTITUDE=620

exiftool -q \
  -exif:serialnumber=$SERIAL \
  -comment="$STAMPTEXT $STAMP" \
  -exif:gpslatitude=$LATITUDE -exif:gpslatituderef=$LATREF \
  -exif:gpslongitude=$LONGITUDE -exif:gpslongituderef=$LONGREF \
  -exif:gpsaltitude=$ALTITUDE -exif:gpsaltituderef="Above Sea Level" \
  -xmp:gpslatitude=$LATITUDE -exif:gpslatituderef=$LATREF \
  -xmp:gpslongitude=$LONGITUDE -exif:gpslongituderef=$LONGREF \
  -xmp:gpsaltitude=$ALTITUDE -exif:gpsaltituderef="Above Sea Level" \
  a.jpg

