EXIF - GPS

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

Post Reply
User avatar
madiazg
Posts: 82
Joined: Wed Jul 18, 2007 8:00 pm
Location: Tenerife - Islas Canarias
Contact:

EXIF - GPS

Post by madiazg »

Hello,
I have a problem to store in a photo the GPS data.
Reference Latitude (North / South) or the length of reference (East / West) I do not have problems because they are datas the ASCII type:

Code: Select all

gflBitmapSetEXIFValueString2(EXIF2, 16, 1,PChar(LatitudeRef));
I have problem with the latitude and longitude which, according to information I found on the Internet, are data type Rational:


The latitude is expressed as three RATIONAL values giving the degrees, minutes, and seconds, respectively. When degrees, minutes and seconds are expressed, the format is dd/1,mm/1,ss/1. When degrees and minutes are used and, for example, fractions of minutes are given up to two decimal places, the format is dd/1,mmmm/100,0/1.
Tag = 2 (2.H)
Type = RATIONAL
Count = 3
Default = none


For example, the latitude 28º 26' 59.55", Can you tell me how to be added to the EXIF information of the picture?

Regards...
Miguel Angel
http://imagen3d.site88.net
User avatar
xnview
Author of XnView
Posts: 43603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: EXIF - GPS

Post by xnview »

Sorry currently you can't add GPS values to EXIF
Pierre.
User avatar
madiazg
Posts: 82
Joined: Wed Jul 18, 2007 8:00 pm
Location: Tenerife - Islas Canarias
Contact:

Post by madiazg »

Hello Pierre,
Do you have intentions to add this feature in future version of GLF SDK?
Regards...
Miguel Angel
User avatar
xnview
Author of XnView
Posts: 43603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

madiazg wrote: Do you have intentions to add this feature in future version of GLF SDK?
Yes, i can add the support
Pierre.
User avatar
madiazg
Posts: 82
Joined: Wed Jul 18, 2007 8:00 pm
Location: Tenerife - Islas Canarias
Contact:

Post by madiazg »

Thank you very much.
Post Reply