Bug 154849 - GPSsync updates first find only, does not match other than GMT camera time
Summary: GPSsync updates first find only, does not match other than GMT camera time
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-Correlator (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-30 11:43 UTC by Gerhard Kulzer
Modified: 2018-03-23 12:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.1.0


Attachments
Iceland.gpx (201.88 KB, text/plain)
2007-12-30 13:53 UTC, Gerhard Kulzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Kulzer 2007-12-30 11:43:50 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          gcc version 4.1.3 i386
OS:                Linux

I tried the correlator plugin with tracks I know they worked before. 

When I load the track file (gpx), the widget correctly reports "...xx data updated...", but only the first one is shown as found, and when pushing the OK button, only the first is updated.

Second problem: The correlation works for GMT only, If I try other time offsets, no correlation is found, although the corresponding data points are there.
Comment 1 caulier.gilles 2007-12-30 11:46:39 UTC
Gerhard,

Please attach GPX file and few JPEG files to test on my computer. Thanks in advance

Gilles
Comment 2 Gerhard Kulzer 2007-12-30 13:53:02 UTC
Created attachment 22773 [details]
Iceland.gpx
Comment 3 Caspar Maessen 2008-01-05 22:40:30 UTC
On the digikam list Gerhard suggested that my earlier problem kind of was the same as the one he is reporting over here. Don't know for sure but for all certainty, here is my original message on the list.

"I just now discovered that geo localisation doesn't work anymore. I was 
using the latest version from svn 0.9.3 svn-serial 752136, which I 
build in one go with libs and with exiv2  0.16_pre1 svn-serial 1350.

It gave me the message that it couldn't find any imagefiles to handle.

Being sure that it worked before I installed the version of my 
distribution 0.9.3rc1-2.1.i586 from the KDE backports repository for 
openSUSE 10.3. This worked fine.

Somewhere in the release period the geo localisation seems to be broken."
Comment 4 caulier.gilles 2008-01-13 05:38:08 UTC
To all,

Take a look to report #155560 and let's me hear if this is the real problem... Thanks in advance

Gilles Caulier
Comment 5 Gerhard Kulzer 2008-01-13 09:43:01 UTC
*** Bug 155560 has been marked as a duplicate of this bug. ***
Comment 6 caulier.gilles 2008-02-02 10:52:33 UTC
SVN commit 769869 by cgilles:

kipi-plugins from KDE3 branch: fix iterator around list of items to matches date against GPX file...
I don't know how this bug have been introduce. Just one line have been changed in gpssyncdialog.cpp... 
Gerhard, it's sound work here with 3 images  from your Iceland collection and your GPX file using this settings:

- no interpolation
- max gap time = 30s
- time zone = GMT+0

If interpolation is on, another one file is set.

Please check indeep and report...

CCBUGS: 154849



 M  +4 -1      gpsdataparser.cpp  
 M  +1 -1      gpssyncdialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=769869
Comment 7 caulier.gilles 2008-02-02 10:58:15 UTC
Caspar,

I would to see your feedback here since i have fixed this problem. 

Thanks in advance

Gilles Caulier
Comment 8 caulier.gilles 2008-02-02 11:04:05 UTC
Gerhard,

I have found when this bug have been introduced (thanks svn log)

http://websvn.kde.org/branches/extragear/kde3/libs/kipi-plugins/gpssync/gpssyncdialog.cpp?revision=747241&view=markup&pathrev=769869

Gilles
Comment 9 Roland 2008-02-03 10:58:26 UTC
Gilles,

The correlation now works fine for GMT with your latest changes.

Nevertheless, using a different time offset (e.g. GMT+01:00) in combination with associated gpx data no correlations are found further on.

Roland
Comment 10 Gerhard Kulzer 2008-02-03 16:41:17 UTC
I havn't found the reason yet, but a strong indicator:
I get this when I launch Geolocator with 2 images and the plugin preconfigured at GMt+2:
digikam: cameraGMTDateTime: Tue Nov 29 16:15:32 2005
digikam: cameraGMTDateTime: Tue Nov 29 16:21:15 2005 which the wrong date.

Then, without leaving the modal window, I set GMT to GMT+0 and I get the correct date
digikam: cameraGMTDateTime: Mon Sep 25 16:15:32 2006
digikam: cameraGMTDateTime: Mon Sep 25 16:21:15 2006

I continue to search
Gerhard
Comment 11 Gerhard Kulzer 2008-02-03 16:49:53 UTC
In fact every GMT offset adds 150 days to the date (or subtracts in case of negative offset)
Comment 12 Gerhard Kulzer 2008-02-03 19:27:03 UTC
*** Bug has been marked as fixed ***.
Comment 13 Roland 2008-02-04 20:39:59 UTC
Gerhard,

Now it's perfect.

Roland