Creating nodes from EXIF data in JPEG images

Posted by mwbg on 28 July 2011 in English (English)

I tend to be the sort of persun who works with nodes rather than ways. Does anyone know if there're any tools out there to create "nodes" based on JPEG/EXIF files ? I know I can do this with a load of photographs and a GPX trace, but I want to do it without the GPX trace, just relying on the GPS data within the images.

Comment from jynus on 28 July 2011 at 11:13

GPSBabel is the canonical software for trace conversions. And it's free. As I can see here it can read EXIF info from jpegs and export to gpx or even OSM format. If you want more automatic stuff, you will probably have to combine it with a bit of programming.


Comment from c2r on 28 July 2011 at 11:15

OSM tracker creates *-wp.GPX files in the following format:

174La Nuca Rotonda 7

You could presumably run a script on the jpg files to extract the extinf data and build a similarly formatted file.

That said, the above will import successfully into memory map for example, but when I last tried, it didn't import into OSM.

Hope that helps some,

Comment from c2r on 28 July 2011 at 11:16

ah, that didn't work.

Let's try again:

<?xml version="1.0" standalone="yes"?>
<gpx version="1.1" creator="OSMtracker" xmlns:xsi="" xmlns="" xsi:schemaLocation="">
<wpt lat="38.6070550" lon="-0.0898283"><ele>174</ele><time>2011-07-27T15:04:56Z</time><name>La Nuca Rotonda 7</name></wpt>

Comment from TomH on 28 July 2011 at 11:30

I'm not quite sure why you would want to do this? It seems unlikely that the location recorded by your camera will actually match the location of any real world object that you would want to add to the map - rather it would record the location where you stood to take the photo of the object.

Comment from c2r on 28 July 2011 at 11:42

I can think of a definite use for it- standing right next to objects such as postboxes which have a visible reference number...

Comment from mwbg on 28 July 2011 at 11:54

@TomH So it would record a location ooh a whole 40cm away from the actual object !
I normally take several shots of a postbox, so that I can correlate it with other objects, post some to flickr, and read the ref data of the CP. I would, of course, see several nodes for one real object, but I think I can work out which is the real one.
Also, even if I stand say 60m from a public house, to get the name, operator, it would still be obvious which PH it is: you are unlikely to get two PHs within 60m !

Comment from Sanderd17 on 28 July 2011 at 15:27

@mwbg: I think TomH means that you can't just take pictures, convert them to a .osm file and upload the thing. You do need to do some postprocessing. There are alsways some pictures wrong.

And if you do post processing anyway, I see no advantage in converting the pictures to nodes. When you use an editor like JOSM, you see the pictures placed on the map anyway, you just need to create a node where the feature is and tag it. That's just the same amount of work as checking if the node is at the right position and tagging.

Comment from mwbg on 28 July 2011 at 15:43

@Sander17 Yes, of course there are going to be loads of pictures that are wrong/bad/unhelpful. Of course I am going to have to do lots of postprocessing.

Your second paragraph suggests that JOSM already does that. If that's the case, then would you mind showing me how to do it ?

I want to upload a load of pictures *to JOSM (or similar)*, perform the necessary postprocessing there, tidy up all the nodes and then upload that to OSM. If I can already do this, then show me how.

Comment from Vclaw on 28 July 2011 at 18:16

Just start JOSM then do File->Open and pick your JPEG files. Or you can drag and drop the photos onto the JOSM window.
Then (assuming the photos have EXIF location data) JOSM will show a little camera icon for each photo.

Comment from mwbg on 28 July 2011 at 19:20

@vclaw Great. I didn't realise you could do that from something as obvious as File|Open. Ih also hadn't occed to me to use d&d. Thank you again.

Login to leave a comment