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.
Before we jump in, make sure you have exiftool software installed on your computer. If you don’t, you can download it here.
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.
Should file names not be included the extension, it’s easy to add yourself in a program like Excel. Here’s how:
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.
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.
If you’d like more info on the specifics of this process, the software provides help text while you run it.