How to Batch Geotag Drone Survey Photos with Exiftool

Read Time: 3 mins
Quick links
    Aerial drone survey photo with Exiftool.

    Many of our users have advanced knowledge of surveying software and supporting programs. But even if you don’t, you’ve likely had to do some sort of manual computer work with your drone images and data in the course of your job. So, Propeller is putting together a few how-to write-ups on our most popular data queries.

    Today, we’ll be covering how you can batch geotag drone images with exiftool. This how-to is for users who are familiar with executing applications via the command line.

    Download the exiftool conversion software

    Before we jump in, make sure you have exiftool software installed on your computer. If you don’t, you can download it here.

    Before you run the program, format your data

    To begin this batch geotagging process, you need a file formatted with the same headings and information as the table below. Once that’s set up, save it as a CSV file. (Make sure your latitude and longitude have eight decimal places of precision. This allows your geotagged photos to be located accurately.)

    In you CSV, name a column “SourceFile,” and include the names of the images and their file extension in that column.

    Adding file names to the extension

    Should file names not be included the extension, it’s easy to add yourself in a program like Excel. Here’s how:

    1. With your file names listed in column A, insert two new columns next to A with all the original file names.
    2. In column B, enter “.JPG” (if it’s a JPEG).
    3. In column C, enter “=CONCAT(A1, A2)”.
    4. Copy all of column C.
    5. Then “Paste Special” into column C, while selecting the Text Only option. This will rewrite the formulas in column C with the concatenated text.
    6. Once that’s finished, rename column C as “SourceFile”
    7. Then you can delete the original column A and column B.
    8. Save the file as a CSV, and you’re done.

    What your final CSV file should look like

    Once you’ve got your CSV file ready and have got that column named “SourceFile”, make sure the other columns have the same names as in the example below. The conversion software requires this specific formatting in order to match its command line arguments.

    Batch Geotag Drone Survey Photos with Exiftool

    Run the command line program

    Now that you have your CSV file formatting, you’re ready to run the program and batch geotag your images. To begin, the command line argument to run is:

    exiftool -GPSLatitude -GPSLongitude -GPSAltitude -GPSLatitudeRef -GPSLongitudeRef -GPSAltitudeRef -csv=”path-to-the-csv.csv” -o output/ path-to-images/

    Once that is run, you’re all set. But what exactly is happening with this complicated argument? Let’s unpack what a few elements actually mean.

    • Each -GPS* flag in the line tells the software to read a column by the same name from your CSV file and to add that info to each image’s exiftool data.
    • The “-o geotag_output” flag and argument creates a new directory named “geotag_output”. It then puts all the newly geotagged photos inside that directory, which preserves your original photographs.

    If you’d like more info on the specifics of this process, the software provides help text while you run it.

    Quick links

      Related articles

      The Value of Interoperability and Partnerships

      As projects in the construction industry become more diverse and complex, technology is playing a…

      How AirBorn Insight is Using Drone Survey Data on Large, High-value Solar Farm Developments

      Beyond the well-known industries of mining, aggregates, waste management, and construction, there are a number…

      AeroPoints Help NOAR Technologies Bring Accurate Ground Control to AEC

      NOAR Technologies is an AEC (architectural, engineering, and construction) tech solutions provider from Detroit, Michigan.…

      Ready to learn how Propeller can power up your worksite?

      We’re happy to show you how Propeller can power your worksite, and boost productivity.

      Related articles

      Drone pilot in hi-vis flying a drone next to a crane, with an AeroPoint on the floor.

      Things To Know About Ground Control in Drone Surveying

      Ground control is the go-to option for turning drone data into highly accurate, survey-grade models.…

      Telecom Tower Inspection using DJI Phantom 4 Pro: Step-by-Step Guide

      A few weeks ago a new DJI Phantom 4 Pro was delivered to our office.…
      A surveyor laying an AeroPoint on the ground stood next to a car.

      5 Ways to Use Your AeroPoints Sets

      AeroPoints™, Propeller’s smart ground control points, were designed to be used in five different ways.…