Author Topic: How to extract GPS coordinates from TIFF image file  (Read 134 times)

shailaja.vemula

  • Newbie
  • *
  • Posts: 4
How to extract GPS coordinates from TIFF image file
« on: April 25, 2019, 02:04:20 PM »
Hi,

I am trying to find GPS coordinates information from TIFF image files using ExifTool but I am unable to find them. Can you please guide me?


Thanks.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14438
    • ExifTool Home Page
Re: How to extract GPS coordinates from TIFF image file
« Reply #1 on: April 25, 2019, 02:05:37 PM »
exiftool "-gps*" SOME_FILE.tiff

If this produces no output, then the file probably doesn't contain GPS information.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

shailaja.vemula

  • Newbie
  • *
  • Posts: 4
Re: How to extract GPS coordinates from TIFF image file
« Reply #2 on: April 25, 2019, 02:16:50 PM »
Sorry, I am new to this.  SOME_FILE.tiff - is this should be a file name?

Thanks.

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2372
Re: How to extract GPS coordinates from TIFF image file
« Reply #3 on: April 25, 2019, 02:43:55 PM »
Yes.

If your current directory is the one that has the image, then all you need is the image name.  Otherwise you'll need to provide the full path.  For single files, you can drag the file from the desktop into the command/terminal window.  If you have more files, Linux/Mac supports dragging multiple files, but Windows doesn't.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

shailaja.vemula

  • Newbie
  • *
  • Posts: 4
Re: How to extract GPS coordinates from TIFF image file
« Reply #4 on: April 25, 2019, 05:05:45 PM »
Hi,

I attached a screenshot which is showing an error, can you please look at this?


Thanks.



SG edit: inlined image
« Last Edit: April 25, 2019, 05:14:00 PM by StarGeek »

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2372
Re: How to extract GPS coordinates from TIFF image file
« Reply #5 on: April 25, 2019, 05:12:54 PM »
You need a space after "-gps*" otherwise the filename gets connected to the tag name.

My apologies for not mentioning it if you're dragging/dropping like I suggested.

The second error seems to be an incorrect file name.  I'm assuming the .tiff was added afterwards.  Otherwise, if the file exists, it should have worked.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

shailaja.vemula

  • Newbie
  • *
  • Posts: 4
Re: How to extract GPS coordinates from TIFF image file
« Reply #6 on: April 26, 2019, 10:59:07 AM »
Hi,

Amazing, it worked. Thank you very much for your help.