## gramps-devel

 [Gramps-devel] Rational and GPSLatitude From: Rob Healey - 2010-01-15 05:32:34 ```Greetings All: Can someone help explain this to me? I am not sure how to express this in trying to read/ write the variable... Exif.GPSInfo.GPSLatitude Rational Indicates the latitude. 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. Sincerely yours, Rob G. Healey ```
 Re: [Gramps-devel] Rational and GPSLatitude From: Nick Hall - 2010-01-15 16:00:58 ```Rob, It looks like a string representation of the angle. So 10 degrees, 20 minutes and 30 seconds could be written: "10/1,20/1,30/1" or "10/1,2050/100,0/1" To read, you would need to split out all three parts, check that they contain two integers separated by a "/" and then calculate a decimal value. To write, I suggest you convert to degrees, minutes and seconds and then a string format should easily produce the required output. Regards, Nick. Rob Healey wrote: > Greetings All: > > > Can someone help explain this to me? I am not sure how to express > this in trying to read/ write the variable... > > Exif.GPSInfo.GPSLatitude Rational Indicates the latitude. 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. > > Sincerely yours, > Rob G. Healey > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Gramps-devel mailing list > Gramps-devel@... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > > > ```