[josm-dev] Drag-to-sync patch for geoimagelayer

John Bäckstrand sandos at sandos.se
Thu Oct 18 19:52:50 BST 2007


I had a problem wheh trying to photograph for the first time: I could 
not get the images synced up properly, no matter what I did. I tried 
photographing the clock in the computer, to no avail. Seemingly the 
clocks were synced.

Anyway, I proceeded to implement "drag-to.sync": middle-click-drag the 
image icon to where you know it is supposed to be placed (this requires 
a "known location" being photographed, and with ideally only one track 
going there, once). We then find the closest GPS point, and sync the 
images time to that point. The difference for me was -38 minutes for 
some reason, even though I did check my cameras clock when I started: It 
was not off more than +/- 2 minutes!


Anyway, I've supplied a patch here. Note that I do not think this should 
be merged as is:

1) middle-click drag is bad: even I have a laptop with no scroll-wheel 
making it a hassle. Not sure what method would fit best into the rest of 
JOSM
2) It should offer a dialog along the lines of "is this position good?" 
and revert back to the old time delta if not.
3) There should probably be a gui or atleast hint somewhere for it
4) We should probably mark the currently detected closest GPS point in 
real-time?

Anway, comments? Should I keep working on this? Or does someone else 
want to massage this into something generally useful? As a hacker it 
works fine enough as is so I'm not likely to polish a whole lot, being 
generally busy and lazy!

---
John Bäckstrand
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dragsync.diff
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20071018/baa7d1d2/attachment.ksh>


More information about the josm-dev mailing list