ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: osakahk2009 on June 06, 2021, 04:12:04 AM

Title: Tag Only Those Raw Files That Do Not Have GPS Tag By GPX Log File
Post by: osakahk2009 on June 06, 2021, 04:12:04 AM
Hi Phil,
I would like to add GPS tag to those raw files that do not have GPS tags and exclude those that already have the tags.
Or if there is a way to differentiate raw files that have and do not have GPS tags.

Thanks.
Title: Re: Tag Only Those Raw Files That Do Not Have GPS Tag By GPX Log File
Post by: Phil Harvey on June 06, 2021, 07:38:32 PM
Try adding this to your command:

-if "not $gpslatitude"

This should avoid processing files that already contain GPSLatitude.

- Phil
Title: Re: Tag Only Those Raw Files That Do Not Have GPS Tag By GPX Log File
Post by: osakahk2009 on June 07, 2021, 10:48:28 AM
Hi Phil,
That works fine.

Thanks.