I'm trying to verify every(!) abandoned railroad bridge in NY with a field trip and a photographic record. It's worth doing, because I found a couple of bridges I thought I could see on the aerials, but which weren't actually there, a few that were reconstructs, not original RR bridges, and a few that had been dismantled (sob!).
Problem: I've already visited a majority but not all. Which ones? Problem: not all my photos are georeferenced. Problem: I don't have a GPS track for them either (otherwise I would and do use exiftool's geosync facility). Solution: I remember where I took every photo (but if I see you walking on the street I won't remember your name; go figure), so it's just a matter of getting a lat/lon and storing it with every photo. So, I look at the photo, and use JOSM to visit that location. I add a node at the location I took a photo, use Ctrl-Alt-C to copy the lat/lon, then Ctrl-Z to remove the node. Then I copy the lat/lon into a shell command called "setgps" (included below), which takes three parameters: lat, long, and the photo. It uses exiftool to stuff the lat/lon and hemisphere into the photo. #!/usr/bin/python """takes three parameters: lat, long, and the photo filename.jpg""" import sys, os lat = sys.argv[1].replace(",", "") lon = sys.argv[2] if float(lat) > 0: latdir = "N" else: latdir = "S" if float(lon) > 0: londir = "E" else: londir = "W" os.system("exiftool -GPSLatitudeRef=%s -GPSLatitude='%s' -GPSLongitudeRef=%s -GPSLongitude=%s '%s'" % (latdir, lat, londir, lon, sys.argv[3])) _______________________________________________ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk