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). anyway,
the problem i have is with the rather classical case of no
GPS section,
having $ifd0->getSubIfd(PelIfd::GPS) == null. i was
hoping to create one
with
$gps = new PelIfd();
$ifd0->addSubIfd($gps);
$lat = new PelEntryRational(PelTag::GPS_LATITUDE,
array(11,1),array(22,1),array(33,1));
$gps->addEntry($lat);
but that doesn't work. what command am i missing here?
thank you for a helping hand and thanks for the API too!
andré
--
____________________________________________________________
_______
andre m. winter,
cartography for internet and multimedia applications
a6091 goetzens, tyrol, austria
tel.: ++43.5234.32732
email: <winter carto.net>
<http://www.vectoreal.co
m/> SVG consulting and development
<http://www.carto.net/>
a> 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
|