"Andre M. Winter - Carto.net" <[EMAIL PROTECTED]> writes:

Hi Andre

> i am really not the coder here but elements should be fed with the
> closest original syntax i guess. (btw i don't know what it looks
> like in the HEX version of EXIF...).

What is the HEX version?  The hexadecimal representation in the file?
If so, then rationals are stored simply as two integers after each
other, and several rationals are also just stored one after the other.

> but my naive approach would have been
>
> $lat->setValue("47/1 48/1 1234/100");

Hmm... I think that making a string is cumbersome for a program that
has to manipulate these things. Isn't it easier to have it split up in
nice arrays?

> hence passing a string that matches the EXIF spec. i don't know if
> this is any how compatible with your API...

The Exif specification only defines how a rational is to be stored in
the file, there's no API defined.  The PEL API is based loosly on the
libexif API, but apart from those I know of no other APIs.

-- 
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

Attachment: pgpVobkJ1oAJM.pgp
Description: PGP signature

Reply via email to