Bug 280058 - No coordinates shown in GPSSync window when using sidecar files
Summary: No coordinates shown in GPSSync window when using sidecar files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-GeolocationEdit (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-14 06:44 UTC by falolaf
Modified: 2016-07-17 04:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description falolaf 2011-08-14 06:44:19 UTC
Version:           2.0.0 (using KDE 4.7.0) 
OS:                Linux

Hi,

Coordinates set for an image through the Geo-location window does not show up in Geo-location window after it has been closed and opened again.

For me it effects only CRW and CR2 files. JPG and PNG files are working alright.

I have enabled:
'Save image tags as "Keywords" tags in metadata embedded in files'
'Write to XMP sidecar only'

Enabling or disabling 'Write metadata to RAW files (exerimental)' does not change the behaviour.

The coordinates are written to the XMP sidecar.

The Geolocation tab to the right shows the correct position on the map.

I have tested with both Marble and Google Maps with same behaviour.

I'm using openSUSE 11.4 x86_64.


Reproducible: Always

Steps to Reproduce:
Open up Geo-location window for an image and set coordinates, then apply and close. 
Open Geo-location window for the same image, now there are no coordinates shown for that image and the map isn't updated.

Open up the Geolocation view to the right I can see that the
coordinates are set for the image though.



Actual Results:  
See above.

Expected Results:  
The coordinates should be shown in the Geo-location window and the map in the window should show the correct location.
Comment 1 Michael G. Hansen 2011-08-14 08:00:38 UTC
Hi Anders,

thanks for putting everything together in a bugreport. I can reproduce your problem here and will try to look into it. This may be related to bug#279710...

Regards,

Michael
Comment 2 caulier.gilles 2011-12-20 10:52:00 UTC
Michael,

This file still valid using kipi-plugins 2.4 ?

Gilles Caulier
Comment 3 falolaf 2011-12-22 04:23:13 UTC
Hi,

For me this is still valid.

kipi-plugins 2.4.1

/Anders
Comment 4 jon33040 2012-01-29 21:00:46 UTC
I see essentially the same behaviour with digikam 2.5.0.

I can use the Image / Geo-location tool to add locations to raw images. Digikam remembers the locations and the locations appear when I bring up the map on the right hand side of the main digikam UI.

If I go back to the Image / Geo-location tool, no location is shown - not in the list of images across the bottom and not in the details tab for the currently selected image.

It's as if digikam has two different ways of storing location information internally - call them A and B. The Image / Geo-location tool writes to A but reads from B and the map on the right hand side of the main digikam UI reads from A.

This internal disconnect persists if I save a raw image with geo-location information as JPG or PNG. The map on the right hand side of the main UI shows the geo-loc information but the Image / Geo-location tool does not. Also there's also no geoloc information in the EXIF in the JPG or PNG.

I've got XMP sidecar support turned on in the "Write to XMP sidecar for read-only image only" mode. Geo-location information doesn't appear in the XMP sidecar. This seems to be different from the original poster's report.

I've tested this with both Canon and Sony raw images (the only ones I can easily access) and the problem is the same.
Comment 5 falolaf 2012-02-14 13:07:31 UTC
I'm now on 2.5.0 and KDE4.8.0. What I can see is that when I have geolocated and image the xmp-file is written with coordinates. But as soon as I write, other, metadata to the xmp, the geolocation metadata is removed. As it is in this bugreport:
https://bugs.kde.org/show_bug.cgi?id=279710
Comment 6 Florian 2014-02-08 13:01:53 UTC
Buggy here too, with digikam 3.5.0. Cf. bugs #256179, #279710?
Comment 7 Michael G. Hansen 2014-02-09 21:36:02 UTC
Hi,

I can also reproduce missing geolocation data if I turn on "Write to sidecar files", but not "Read from sidecar files". Do you have "Read from sidecar files" enabled?

Best regards,

Michael
Comment 8 Michael G. Hansen 2014-02-10 20:49:23 UTC
Git commit 7f93331b99ab803caf3719cf9b9eea0eb003ba06 by Michael Georg Hansen.
Committed on 10/02/2014 at 20:42.
Pushed by mghansen into branch 'master'.

Keep GPS coordinates from database when reading from the file as well.

Do not clear GPS coordinates read from the database before reading the metadata
from the file.

M  +8    -2    gpssync/kipiimageitem.cpp

http://commits.kde.org/kipi-plugins/7f93331b99ab803caf3719cf9b9eea0eb003ba06
Comment 9 Michael G. Hansen 2014-02-10 21:26:57 UTC
Git commit 78dce22ad184f63950491b4ff01f0b545f1ea55c by Michael Georg Hansen.
Committed on 10/02/2014 at 21:26.
Pushed by mghansen into branch 'master'.

Warn about dangerous sidecar settings in the host application.
Related: bug 279710

M  +38   -1    gpssync/plugin_gpssync.cpp
M  +2    -1    gpssync/plugin_gpssync.h

http://commits.kde.org/kipi-plugins/78dce22ad184f63950491b4ff01f0b545f1ea55c
Comment 10 caulier.gilles 2015-05-18 13:09:39 UTC
This file still valid using last kipi-plugins 4.10.0 ?

Gilles Caulier
Comment 11 falolaf 2015-08-09 08:06:21 UTC
(In reply to Gilles Caulier from comment #10)
> This file still valid using last kipi-plugins 4.10.0 ?
> 
> Gilles Caulier

Sorry for late reply. I don't use this feature much these days... 

I have tested now with digiKam/kipi-plugins 4.12 and it seems to be working now, almost. The coordinates are shown and the map shows the image. But not for google map. Marble shows it though!

/Anders
Comment 12 caulier.gilles 2015-08-10 10:07:36 UTC
Can you take screenshots of this problem ?

Gilles
Comment 13 falolaf 2015-08-11 08:26:53 UTC
(In reply to Gilles Caulier from comment #12)
> Can you take screenshots of this problem ?
> 
> Gilles

Well, this is a bit odd. It seems I can't reproduce the problem today... The images location are available also when selecting google maps.

So, everything is working as expected!

/Anders
Comment 14 caulier.gilles 2015-08-11 08:45:06 UTC
ok, i close the file now. Reopen it if necessary...

Gilles Caulier