hi martin,
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...). but my naive approach would have been
$lat->setValue("47/1 48/1 1234/100");
hence passing a string that matches the EXIF spec. i don't know if this is any
how compatible with your API...
andré
Martin Geisler wrote:
"André M. Winter - Carto.net" <[EMAIL PROTECTED]> writes:
hi,
i am new to this list and rather new to PHP too so i am a little bit
lost in the techie docs...
i found edit-description.php in the examples folder and work with that
one in order to get/add EXIF GPS information. getting and setting of
already existing GPS info works fine so far with
$gps = $ifd0->getSubIfd(PelIfd::GPS);
$lat = $gps->getEntry(PelTag::GPS_LATITUDE);
$lat->setValue(array(47,1),array(48,1),array(1234,100));
(btw. it took long for me to figure out that the three arrays are
not written as a 2-dimensional array whereas it is stored as such).
Yeah, I guess it's not entirely clear that is supposed to work :-(
I choose to represent rationals as 2-element arrays. All the
setValue() functions take a variable number of arguments since Exif
tags can store more than just one value. So in your case you're
storing three rationals, and thus need three arrays.
When you read the value out again you get a 3-element array back, each
element is then a 2-element array (a rational).
If somebody has an idea for a better API for this, then I'll be very
interested in hearing about it!
--
___________________________________________________________________
andre m. winter,
cartography for internet and multimedia applications
schiessstand 4/1, a6091 goetzens, tyrol, austria
tel.: ++43.5234.32732
email: <[EMAIL PROTECTED]>
<http://www.vectoreal.com/> SVG consulting and development
<http://www.carto.net/> online cartography focusing on SVG
<http://www.carto.at/> print and online touristic map solutions
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PEL-devel mailing list
PEL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel