[Digikam-devel] GPS Sync: 2 small bugs
Fabien
fabien.ubuntu at gmail.com
Wed Sep 27 16:38:41 BST 2006
Gilles Caulier wrote:
> On Wednesday 27 September 2006 16:18, Fabien wrote:
>
>>Here they are :
>>http://bugs.kde.org/show_bug.cgi?id=134747
>
> If you can give me a patch for this one, i will be happy.
>
> I don't have a GPS device to test indeep here. It's a little bit complicated
> to debug using all conditions.
Well, I don't know C++, so this is a really dirty patch :)
It's not optimum because the whole file is parsed before getting the
best value. But, it seems to work.
It should be possible to stop before by checking when the nbSecs is
increasing instead of decreasing (when trackpoint time > picture time),
but it would mean we assume trackpoints are time ordered (is it always
the case). And parsing seems to be very fast :)
To check the differences: before the patch, gpssync doesn't return the
same values if you change the max gap time.
I added a picture and gpx track file to test the sync.
Hope this helps !
--
Fabien
More information about the Digikam-devel
mailing list