How to geocode your photos

by Volker Weber

I discovered today that the NavMan iCN530 can write a GPS track. The manual says it should only be done when instructed by Navman service. This is probably a precaution to avoid that people fill up the internal memory with log data. Of course I had to play with this feature. :-)

You go into Preferences/Routing (Einstellungen/Routen). On the third page you will find a button which lets you turn on Track Recording (GPS Protokoll). You can select a name, for example PHOTO. Until you deselect this option, the iCN530 will now record your whereabouts to a logfile. When you mount* the iCN later, you wil find the file in "My Flash Disk/Navman/Lightning":

GPS track on the Navman iCN530

Copy the logfile to your disk and take a look at what's inside:

$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,000000.149,V,,,,,,,070805,,*29
$PTTKT,STAT,0,0,0,0,0*6D
$GPGGA,000001.135,,,,,0,00,,,M,0.0,M,,0000*50
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,3,1,12,20,00,000,,10,00,000,,25,00,000,,27,00,000,*79
$GPGSV,3,2,12,03,00,000,,31,00,000,,24,00,000,,15,00,000,*78
$GPGSV,3,3,12,16,00,000,,05,00,000,,01,00,000,,26,00,000,*7D
$PTTKT,STAT,0,0,0,0,0*6D
$GPRMC,000001.135,V,,,,,,,070805,,*23
$GPGGA,000002.135,,,,,0,00,,,M,0.0,M,,0000*53
$GPGSA,A,1,,,,,,,,,,,,,,,*1E

A quick search on Google revealed that these are NMEA sentences, which is basically what a GPS tells your navigation software. You can translate this information into something more friendly like the GPX format with GPSBabel.

GPSBabel

Now that we have this track, what can we do with it? Well, you can plot your whereabouts on a map. Or as my name for the track log already suggests, you can geocode your photos. GPS Photo Linker reads your track and your photos, and then writes GPS coordinates into the photo metadata:

GPS Photo Linker can be used to save location and GPS position data to a photo. The latitude and longitude recorded by your GPS unit while you were taking photos can be linked, and saved, to the photos. GPSPhotoLinker automatically enters the city, state, and country annotations into the metadata.

So how does the program know which photo was shot where? It matches your recorded track with the date/time information inside the photo. So it is very important that the clock in your camera is set to the correct time. The software lets you define the offset if the clock was not set correctly. The GPS track will be correct, since it operates on the GPS satellite clocks which are very accurate. But how do you find what the time offset in the camera was? The best way is to shoot one picture of an accurate clock, so you can later compare the time in the EXIF header with the time displayed in the photo. If you forget to shoot the clock before the other photos, it does not really matter, since you can also record the difference later.

Once you have set the correct offset and loaded the appropriate track log, everything else is done automatically. GPS Photo Linker will write the location information into the photo metadata. There is actually a standard way of doing this, as you can see in this dialog of Mac OS X Preview:

Geocoded picture

If you click through to the original file (Flickr login required) and download it, you can look at the metadata yourself. The benefit of geocoded photos is obvious. You will always be able to tell where those photos were shot. But there will be additional benefits. The Navman iCN720 and iCN750 were the first navigation units that could navigate to a waypoint described in a geocoded photo. I expect many more to follow this idea.

Update: GPSBabel is one cool program. It also lets you translate the GPS track into Keyhole Markup Language (KML) format, which Google Earth (originally developed by Keyhole) reads:

Track imported into Google Earth

And, as Hajo correctly points out, Google Earth can also read GPX files. You just have to enable "Gps" or "All files" when opening the file:

Google Earth reading GPX files

*) This is easy with ActiveSync on Windows. On the Mac you need something like MissingSync.

Comments

This is the correct link to GPS Photo Linker:
http://oregonstate.edu/~earlyj/gpsphotolinker/

Frank Koehntopp, 2006-08-16 19:24

Thanks, Frank. Corrected.

BTW: GPSBabel runs on a lot of operating systems. If you know a Windows program that does what GPS Photo Linker does, please point it out.

Volker Weber, 2006-08-16 19:45

* EXIF "stamping" software, that embeds the geo coordinate information directly into the images themselves. Very useful if you have a GPS device. Examples include RoboGEO, WMMX Stamper and Importr (seems to be dead)

from the flickr Geotagging group which is full with related stuff and tips.

Oliver Regelmann, 2006-08-16 20:18

You can also use Smartphones, Pocket PC's or GPS enabled watches (like Garmin Forerunner) to track GPS data and geocode photos. An (german) article about this is here:
Geocoding with Pocket PC, Smartphone, Bluetooth or Garmin GPS

Mathias Pohl, 2006-08-17 20:47

Gibt es auch eine Moeglichkeit, die (ungefaehren/geschaetzten/aus googleEarth gelesenen) latitude/longitude daten fuer einzelne Fotos manuell zu EXIF hinzuzufuegen, um dann iPhotoToGoogleEarth zu benutzen?

Claus Haslauer, 2006-08-20 23:46

Na klar. Mit GPS Photo Linker kannst Du die Koordinaten auch von Hand eingeben.

Volker Weber, 2006-08-20 23:52

Recent comments

Andrew Magerman on Apple CEO Tim Cook on equality at 15:58
Dirk Steins on Drucker gesucht at 15:47
Volker Weber on Apple CEO Tim Cook on equality at 15:37
mark myers on Apple CEO Tim Cook on equality at 15:33
Ben Poole on Apple CEO Tim Cook on equality at 15:30
Alfons Berger on Drucker gesucht at 15:29
Chris Frei on Apple CEO Tim Cook on equality at 15:13
Haiko Hebig on Drucker gesucht at 14:22
Volker Weber on Apple CEO Tim Cook on equality at 14:03
Martin Kautz on Apple CEO Tim Cook on equality at 13:59
Per Henrik Lausten on ConnectED 2015 at 13:45
Martin Kautz on Drucker gesucht at 13:44
Hubert Stettner on Drucker gesucht at 13:41
Andy Brunner on Apple CEO Tim Cook on equality at 13:38
Frank van Rijt on Drucker gesucht at 13:32
Markus Dierker on Drucker gesucht at 13:29
Ursus Schneider on ConnectED 2015 at 13:11
Hubert Stettner on Katryna Dow :: Shift Happens at 12:54
Andreas Imnitzer on ConnectED 2015 at 12:49
Otto Foerg on ConnectED 2015 at 12:32
Hubert Stettner on Microsoft Band at 12:16
Matt White on ConnectED 2015 at 11:48
Thomas Lang on ConnectED 2015 at 11:34
Andy Brunner on ConnectED 2015 at 11:34
Volker Weber on Microsoft Band at 11:14

Ceci n'est pas un blog

vowe.net is a personal website published by Volker Weber a.k.a. vowe. I am an author, consultant and systems architect based in Darmstadt, Germany.

rss Click here to subscribe

Hello

About me
Contact
Publications
Certificates
Amazon Wish List
Frequently Asked Questions
Follow @vowe on Twitter

Local time is 16:11

visitors.gif

Tip jar

Archives

As most of my articles roll off the front page rather quickly, I am making an archive of previous posts available here. You can also use the handy search box at the top of the page if you are looking for something particular.

Last 30 days
More archives

Mobile tag for this page

© 1992-2014 Volker Weber.
All Rights Reserved.

Impressum