What GPS data should be written to a master file so Digikam will recognise it?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

What GPS data should be written to a master file so Digikam will recognise it?

Iain Wood
Hi,

I'm trying to transfer GPS data from my current photo management s/w (Aperture) to make it useable by Digikam. I can get the data into the master files by a combination of applescript and exiftool, and it becomes visible in Digikam in the metadata panel. However it doesn't appear on the map or the geolocation tab. 
I know it is possible to do this, as pictures exported from Aperture do appear correctly in the metadata and geoloction tabs or on the map. Unfortunately this only works for exported versions. Exported masters don't appear in the metadata and geolocation tabs or the Map...

A close examination of the exif data from the different types of file doesn't show me why the one works correctly and the other doesn't. In fact the relevant parts of the exif data appear to be identical.

Here is a typical exiftool command I use:

exiftool -gps:GPSLongitudeRef=E -gps:GPSLongitude=109.3008 -xmp:GPSLongitude=109.3008W  -gps:GPSLatitudeRef=N -gps:GPSLatitude=12.17259 -xmp:GPSLatitude=12.17259N   '/Volumes/BlackBook/Users/iain/Pictures/Photos/2012/05/23-corrupt-card/Soulflyer2.JPG'

and the relevant part of the exif data:

$: exiftool Soulflyer2.JPG | grep GPS
GPS Version ID                  : 2.3.0.0
GPS Map Datum                   : WGS-84
GPS Latitude                    : 12 deg 10' 21.32" N
GPS Latitude Ref                : North
GPS Longitude                   : 109 deg 18' 2.88" E
GPS Longitude Ref               : West
GPS Position                    : 12 deg 10' 21.32" N, 109 deg 18' 2.88" E
$:

Does any one know what is required in the exif gps data to make it recognisable to Digikam? 

Iain

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: What GPS data should be written to a master file so Digikam will recognise it?

Jean-François Rabasse

Hello Iain,


On Mon, 4 Jun 2012, Iain Wood wrote:

> I know it is possible to do this, as pictures exported from Aperture do
> appear correctly in the metadata and geoloction tabs or on the map.
> Unfortunately this only works for exported versions. Exported masters don't
> appear in the metadata and geolocation tabs or the Map...

I'm not sure to know what you call "exported versions" vs. "exported
masters"...

But, I geotag pictures from command line, using exiftool too.
(For me, the reason is silly but my Digikam version has a broken geolocation
dialog that can't use Google maps. And I need Google maps, so no other way
than copy/paste coordinates between a web browser window and a command line
tool.)

My script uses exiftool and sets the following :
  -gps:GPSLatitude=... -gps:GPSLatitudeRef=North
  -gps:GPSLongitude=... -gps:GPSLongitudeRef=East
  -gps:GPSMapDatum=WGS-84

I added the MapDatum (though WGS-84 should be implicit) because with only
coordinates and coordinates refs, it didn't seem to work. Perhaps you
should try...

And images tagged that way are valid under DK, and appear on the map folder.
But after tag, I need to select images and issue a « Reread metadata from
images ».

Don't know if this could help you in your case, but I can assert geotagging
with exiftool works.

Regards,
Jean-François


PS: here is my script
--
#!/bin/bash
# Set GPS position
# This script will be used to geotag an image from a Google Maps
# position, using cut/paste.
# The Google Web service will display position as Latitude,Longitude
# This will be mouse copied, then pasted on a command line using this
# script; e.g.  setgps <pasted-value> <image-file> ...

# Arguments
# ---------
GTAG=$1
shift
if test ! -f "$1"
then
     echo "Usage: $0 <position> <file> ..." >&2
     exit 1
fi

# Split Gmaps position
# --------------------
GLAT=`echo $GTAG | sed 's/,.*$//'`
GLON=`echo $GTAG | sed 's/^.*,//'`

# Update files
# ------------
while test -f "$1"
do
     exiftool -gps:GPSLatitude=${GLAT} -gps:GPSLongitude=${GLON} \
         -gps:GPSLatitudeRef=North -gps:GPSLongitudeRef=East \
         -gps:GPSMapDatum=WGS-84 \
         -overwrite_original $1
     shift
done
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: What GPS data should be written to a master file so Digikam will recognise it?

Iain Wood
Hi Jean_Francois,

On 4 Jun 2012, at 22:46, Jean-François Rabasse wrote:

>
> Hello Iain,
>
>
>
> And images tagged that way are valid under DK, and appear on the map folder.
> But after tag, I need to select images and issue a « Reread metadata from
> images ».
>
> Don't know if this could help you in your case, but I can assert geotagging
> with exiftool works.
>

Thanks for that, I have tried your script and I get the same results as I did before. I can see the GPS using the metadata tab, but they still don't appear on the map. I'm still investigating and I will post here if I find out what is going on

Iain

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users