> time for a new release. I spent a bit of time playing with georeferenced > pictures. As some might know you can select a directory with pictures > having the position stored in the EXIF header. QLGT will read that > information and add the picture as waypoint and a link to the file. > Hi Oliver, I have never noticed before that neat feature of QLGT, and only after your comment (and installing the EXIF library development package) I was able to enable this feature.
Thanks to this I have noticed what seems to be a bug when dealing with EXIF
coordinates not in the northern - eastern quadrant of the Earth (according
to latitude and longitude values). As seen in the following patch below,
you have to consider both exif.lon_sign and exif.lat_sign when creating a
waypoint from EXIF information, or else anything west of longitude 0º or
souther of latitude 0º will be shifted to the opposite side of the meridian
/ meridian.
The patch works at least for me, making waypoints created from EXIF-tagged
pictures taken at about 40 ºN 3º W, appear where they should, and not at
40 ºN 3º E, in the middle of the Mediterranean Sea :-)
Kind regards,
--- src/CWptDB.cpp (revision 3486)
+++ src/CWptDB.cpp (working copy)
@@ -1396,8 +1396,8 @@
void CWptDB::addWptFromExif(const exifGPS_t& exif, exifMode_e mode, const
QString& filename)
{
CWpt * wpt = new CWpt(this);
- wpt->lon = exif.lon;
- wpt->lat = exif.lat;
+ wpt->lon = exif.lon * exif.lon_sign;
+ wpt->lat = exif.lat * exif.lat_sign;
wpt->timestamp = exif.timestamp;
wpt->ele = exif.ele;
wpt->dir = exif.dir;
--
Jose Luis Domingo Lopez
Linux Registered User #189436, Linux Ubuntu 12.04.1 LTS (3.2.0-32-generic-pae)
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
