Re: adding IFD GPS

2006-02-09 Thread Martin Geisler
"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 / 10 >> but those numbers are to

Re: adding IFD GPS

2006-02-09 Thread Andre M. Winter - Carto.net
hi, Aha! I have no clue about how such databases work, so your input is valuable here! PostgreSQL (with PostGIS) and mySQL (with its own spatial extension) store so called simple features (those being points, lines and polygon shapes). a GPS Long/Lat info is basically a point info. coordi

Re: adding IFD GPS

2006-02-09 Thread Martin Geisler
"Andre M. Winter - Carto.net" <[EMAIL PROTECTED]> writes: Hi again >>> 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

Re: adding IFD GPS

2006-02-09 Thread Andre M. Winter - Carto.net
hi, 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? from a programmer's point of view, of course. but isn't

Re: adding IFD GPS

2006-02-08 Thread Martin Geisler
"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 representati

Re: adding IFD GPS

2006-02-08 Thread Andre M. Winter - Carto.net
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

Re: adding IFD GPS

2006-02-07 Thread Martin Geisler
"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 a

Re: adding IFD GPS

2006-02-07 Thread Martin Geisler
"André M. Winter - Carto.net" <[EMAIL PROTECTED]> writes: Hi André (I subscribed your other address to the list before I saw that you had done it yourself, sorry about that... I've unsubscribed it again.) > answering my own question,the problem was the missing PelIfd::GPS > while creating the GP

Re: adding IFD GPS

2006-02-07 Thread André M. Winter - Carto.net
okay, answering my own question,the problem was the missing PelIfd::GPS while creating the GPS IFD: $gps = new PelIfd(PelIfd::GPS); $ifd0->addSubIfd($gps); $lat = new PelEntryRational(PelTag::GPS_LATITUDE, array(11,1),array(22,1),array(33,1)); $gps->addEntry($lat); andré André M. Winte