"Andre M. Winter - Carto.net" <[EMAIL PROTECTED]> writes: >> A slight problem with this is that the floating point value has to >> be converted to a rational value since that is what is used in the >> Exif data. So your example becomes >> >> 476871293122 / 1000000000 >> but those numbers are too big for 32-bit signed integers. > > yes, i saw that. there must be methods to overcome this here. take a > look at this geo-tagged photograph: > > GPSLatitude: 47/1 20/1 59374/1009 > GPSLongitiude: 8/1 20/1 66921/2500
Right, I sorry I confusing myself and you before: the GPSLongitude entry consists of three rationals indicating the degrees, minutes, and seconds. Each rational is expressed as two integers, just as you see it in the output from exiftool. So with three Exif rationals available (32 bit signed integers as both numerator and denominator) I think you'll find all the accuracy you'll ever want. > and the seconds ratio seems to be the trick here. i looked intp the > exif spec and this seems to be allowed... as i don't know how this > is handled, i asked the author of the photos. they are tagged with > the perl based exiftool > (<http://www.sno.phy.queensu.ca/~phil/exiftool/>). maybe it is worth > having a look in there. Definitely! I've stumbled upon this program before and from reading the homepage it seems much more complete and ambitious than PEL. Which is probably good since there should be lots of things PEL can benifit from. The homepage says that exiftool is licensed under the same license as Perl... looking up the Perl license tells us that Perl is licensed under either the GNU GPL or the Artistic License. So we should be allowed to incorporate code from exiftool into PEL. -- Martin Geisler GnuPG Key: 0x7E45DD38 PHP Exif Library | PHP Weather | PHP Shell http://pel.sf.net/ | http://phpweather.net/ | http://mgeisler.net/ Read/write Exif data | Show current weather | A shell in a browser
pgpcsqdPYzhQG.pgp
Description: PGP signature