Added function which converts decimal position value to WGS-84 notation.

This commit is contained in:
2020-03-12 20:35:49 +01:00
parent f07eb0c691
commit cafda4cf35
2 changed files with 43 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ import csv
import argparse
import pytz
import gpxpy
from functions import Radiation, Photo
from functions import Radiation, Photo, Exif
# SIFACTOR for GQ Geiger counters
@@ -93,12 +93,14 @@ for src_photo in args.photos:
print(photo.get_target_photo, photo.get_date)
# Here the matching magic has to happen
latitude = '51.0234024'
longitude = '7.248347'
latitude = 51.0234024
longitude = 7.248347
radiation = '9001'
elevation = '55'
# Write exif data
#exif_tags = Photo.write_exif(photo.get_target_photo, radiation, latitude, longitude, args.dry)
#print(exif_tags)
exif_tags = Exif(photo.get_target_photo, radiation, latitude, longitude, elevation, args.dry)
print(exif_tags)
# Print table header
print('{:<15} {:<25} {:<22}'.format('filename', 'date / time', 'Exif UserComment'))