Geo tagging EXIF data?

Discussion in 'Perl Misc' started by Tuxedo, Apr 14, 2014.

  1. Tuxedo

    Tuxedo Guest


    I'm in search of a fairly lightweight GPS device to carry around and use in
    combination with a Sony NEX camera.

    Are there are some command line Perl utilities that append geo-coordinates
    onto Exif data of a set of images?

    I've not used any GPS device before but I imagine the device would collect
    GPS data once a minute or every few seconds. The data should thereafter
    easily be exported into some standard format and merged with a collection
    Jpegs in a directory where a 'merge' command can run.

    I imagine it could be done by synchronizing the time settings of the camera
    and the GPS device and after having saved a collection of Jpegs and GPS
    data in a directory, running the procedure against the two data sets would
    write the closest by-time geo-coordinate into an Exif field of each Jpeg.

    Can anyone recommend some perl applications or modules for this?

    Many thanks,

    PS: I would like to avoid any Windows-only applications or other
    proprietary GUI solutions etc. Also, any recommendations on actual GPS
    hardware would be much appreciated.
    Tuxedo, Apr 14, 2014
    1. Advertisements

  2. Tuxedo

    John Bokma Guest

    Exporting it do a standard format can be done with GPSBabel:
    It seems that GPSBabel can do that as well:

    GPSBabel is open source and runs from the command line. No idea if there
    is a Perl solution.
    John Bokma, Apr 14, 2014
    1. Advertisements

  3. Tuxedo

    Jim Gibson Guest

    You can check out this Perl-based one:


    I have not tried it.
    Devices differ on when and where they save "track" points (as opposed
    to "waypoints" and "routes"). Some can be configured to record points
    at time or distance intervals. Formats also vary widely, but most
    devices support the standard GPX format. As John mentioned, GPSBabel
    can translate many different formats into GPX, and also extract the
    track logs from the device.
    I just bought the Holux M-241 device and tried it out over the weekend:


    Finding an application to extract the track logs proved to be
    difficult. The only thing I have gotten to work so far is BT747, a Java
    program: <>

    mtkbabel is a Perl program that is supposed to be able to extract track
    logs from some GPS devices, including the Holux M-241, but it did not
    work on the first try, I think because the device name was incorrect. I
    haven't had a chance to try it again:

    Jim Gibson, Apr 14, 2014
  4. Tuxedo

    John Bokma Guest

    I have an Amod AGL3080. Has been on many hikes for years and still
    works. No display, though.

    The Holux looks nice, I like the display, thanks for mentioning it.
    John Bokma, Apr 14, 2014
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.