[Digikam-devel] [Bug 133359] WISH: Google maps support to show satellite images of the photos
Gilles Caulier
caulier.gilles at free.fr
Fri Sep 22 15:39:15 BST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=133359
------- Additional Comments From caulier.gilles free fr 2006-09-22 16:39 -------
SVN commit 587368 by cgilles:
kipi-plugins from trunk : GPSSync tool : interpolate altitude value like latitude and longitude.
CCMAIL: kde-imaging kde org, alexios.beveratos gmail com, gerhard kulzer net
CCBUGS: 133359, 111560
M +3 -1 gpsdataparser.cpp
--- trunk/extragear/libs/kipi-plugins/gpssync/gpsdataparser.cpp #587367:587368
@ -104,9 +104,11 @
GPSDataContainer prevGPSPoint = m_GPSDataMap[prevDateTime];
GPSDataContainer nextGPSPoint = m_GPSDataMap[nextDateTime];
+ double alt1 = prevGPSPoint.altitude();
double lon1 = prevGPSPoint.longitude();
double lat1 = prevGPSPoint.latitude();
uint t1 = prevDateTime.toTime_t();
+ double alt2 = nextGPSPoint.altitude();
double lon2 = nextGPSPoint.longitude();
double lat2 = nextGPSPoint.latitude();
uint t2 = nextDateTime.toTime_t();
@ -114,7 +116,7 @
if (t3-t1 != 0)
{
- alt = 0.0; // We cannot interpolate altitude.
+ alt = alt1 + (alt2-alt1) * (t2-t1)/(t3-t1);
lat = lat1 + (lat2-lat1) * (t2-t1)/(t3-t1);
lon = lon1 + (lon2-lon1) * (t2-t1)/(t3-t1);
isInterpolated = true;
More information about the Digikam-devel
mailing list