ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Raffie77 on May 09, 2020, 07:10:36 AM

Title: change format of GPS in frm file
Post by: Raffie77 on May 09, 2020, 07:10:36 AM
Hello,

I have this format script:

#[HEAD]Filename,FileSize,ImageSize,DateTimeOriginal,Megapixels,Make,Model,Aperture,Shutterspeed,ISO,ExposureCompensation,MeteringMode,WhiteBalance,GPSPosition,Flash,FocalLengthIn35mmFormat,Software
$Filename,$FileSize,$ImageSize,$DateTimeOriginal,$Megapixels,$Make,$Model,f/$Aperture,${Shutterspeed}s,$ISO,$ExposureCompensation,$MeteringMode,$WhiteBalance,$GPSPosition,$Flash,$FocalLengthIn35mmFormat,$Software
#[TAIL]


and the output of the GPSPosition is something like: 00 deg ... N, 6 deg etc
how dow I change this to something like: 52.0000000, 6.000000 notation?
Title: Re: change format of GPS in frm file
Post by: Phil Harvey on May 09, 2020, 07:51:31 AM
Add -c %.7f to the command for something like "52.0000000 W".  Or -c %+.7f for "-52.0000000".

- Phil
Title: Re: change format of GPS in frm file
Post by: Raffie77 on May 09, 2020, 08:31:54 AM
oh great, it looks much better now.
Thanks a lot Phil
Title: Re: change format of GPS in frm file
Post by: benvolio on May 25, 2020, 04:40:17 PM
When I run

exiftool -c %.6f -GPSLatitude=52.300000 -GPSLatitudeRef=52.300000 path\to\image\file

Then right-click on my image->Properties->Details, I get a Latitude with value "52; 17; 60". Instead, I would rather that it show a value of "52.300000". Not sure why this is not working. How can I change this?

Thanks, in advance, for any of your help.
Title: Re: change format of GPS in frm file
Post by: StarGeek on May 25, 2020, 05:02:22 PM
This is just how Windows (I assume) displays the information. It's not something you can change. You would have to alter Windows itself in order to change the display.

The data is stored only one way and it's up to individual programs to decide what format to display it in.
Title: Re: change format of GPS in frm file
Post by: benvolio on May 26, 2020, 12:18:22 PM
Thank you for your help StarGeek!