[OSM-talk] Georeferencing lots of photos using JOSM

Jorge López nokutu at openmailbox.org
Sat Feb 13 23:09:04 UTC 2016



El 13/02/2016 a las 21:41, Russ Nelson escribió:
> 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.
I made last summer a plugin for JOSM called Mapillary plugin. It would 
allow you to import all the pictures, drag them into the correct 
lat/lon, make sequences out of them and then export them to a local 
directory or upload them to Mapillary service.
>
> #!/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 at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk


---
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus




More information about the talk mailing list