Saturday, 5 September 2015

lightroom - How can I copy location info from geotagged phone images to images taken with my other camera around the same time?


So i did quite a big trip recently, and took lots of pictures with my DSLR and occasionally Android phone. Only after coming back did i read about the whole GPX file, tracklog options in Lightroom. meaning i don't have such a tracklog file.


The android phone did geotag most photos it took. (at least, when it got a gps fix i guess)


So my question is, is there some software or way that will automatically copy the geotag from the android's photos to photos taken on the same time with my DSLR?


Or alternatively, generate a tracklog from the geotagged data in the android pictures?



Answer






  1. It seems that there is no way to create a tracklog from within Lightroom. I just did a Google search on that and looked in Lightroom 4 for options.




  2. You can create a tracklog from your geotagged pictures using exiftools.


    Save the following print configuration to a file named gpx.fmt in your working directory.


    #------------------------------------------------------------------------------
    # File: gpx.fmt
    #
    # Description: Example ExifTool print format file for generating GPX track log
    #

    # Usage: exiftool -p gpx.fmt FILE [...] > out.gpx
    #
    # Requires: ExifTool version 10.49 or later
    #
    # Revisions: 2010/02/05 - P. Harvey created
    # 2018/01/03 - PH Added IF to be sure position exists
    # 2018/01/06 - PH Use DateFmt function instead of -d option
    #
    # Notes: 1) Input files must contain GPSLatitude and GPSLongitude.
    # 2) Add the -ee option to extract the full track from video files.

    # 3) The -fileOrder option may be used to control the order of the
    # generated track points when processing multiple files.
    #------------------------------------------------------------------------------
    #[HEAD]
    #[HEAD]#[HEAD] creator="ExifTool $ExifToolVersion"
    #[HEAD] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    #[HEAD] xmlns="http://www.topografix.com/GPX/1/0"
    #[HEAD] xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
    #[HEAD]

    #[HEAD]1
    #[HEAD]
    #[IF] $gpslatitude $gpslongitude
    #[BODY]
    #[BODY] $gpsaltitude#
    #[BODY]
    #[BODY]

    #[TAIL]

    #[TAIL]

    #[TAIL]



    Run the following command. It will read all the geo information out of the exif data from the android pictures and create a XML document formatted in the GPX way.


    exiftool -fileOrder gpsdatetime -p gpx.fmt -ext jpg . > out.gpx


No comments:

Post a Comment

Why is the front element of a telephoto lens larger than a wide angle lens?

A wide angle lens has a wide angle of view, therefore it would make sense that the front of the lens would also be wide. A telephoto lens ha...