https://bugs.kde.org/show_bug.cgi?id=382646
--- Comment #5 from Mark F <mfseas...@gmail.com> --- Thanks Maik and Gilles for looking into this so fast! Weird that it doesn't happen for you. I was using the AppBundle (digikam-6.0.0-x86-64.appimage), and am on Ubuntu 18.04.2. I originally had the 'write metadata to RAW files' option turned off in digiKam (having followed the recommendation in the setup wizard), but then after I hit 'apply' in the correlator tool and getting an error saying it hadn't written any information, I adjusted the settings to write to XMP sidecars and tried the 'write metadata' menu option (which produced the XMP file attached earlier). I worked around this by reading the location details from the SQLite db, and then using exiftool (v10.80) to write the values directly to my NEF files: sqlite3 digikam4.db sqlite> .headers on sqlite> .mode csv sqlite> .output geotags.csv sqlite> SELECT name, latitudeNumber, longitudeNumber, altitude FROM ImagePositions JOIN Images WHERE Images.id = ImagePositions.imageId; """ #!/usr/bin/env python3 import csv import os import subprocess PHOTO_DIR = os.path.join('my', 'photos') with open('geotags.csv') as geotags_file: geotags_reader = csv.DictReader(geotags_file) for row in geotags_reader: name = row['name'] lat, lng = float(row['latitudeNumber']), float(row['longitudeNumber']) alt = row['altitude'] print('%s: %s,%s %s' % (name, lat, lng, alt)) subprocess.check_call([ 'exiftool', # https://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/GPS.html '-GPSLongitude=%s' % abs(lng), '-GPSLatitude=%s' % abs(lat), '-GPSLongitudeRef=%s' % ('East' if lng > 0 else 'West'), '-GPSLatitudeRef=%s' % ('North' if lat > 0 else 'South'), '-GPSAltitude=%s' % alt, '-GPSAltitudeRef=+', os.path.join(PHOTO_DIR, name), ]) """ -- You are receiving this mail because: You are watching all bug changes.