[Tickets #9180] Re: georeferenced photo upload has wrong decimal separator in longitude

bugs at horde.org bugs at horde.org
Wed Aug 18 07:15:08 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9180
------------------------------------------------------------------------------
  Ticket             | 9180
  Updated By         | mmartin at mnet-online.de
  Summary            | georeferenced photo upload has wrong decimal separator
                     | in longitude
  Queue              | Ansel
  Version            | 1.1.1
  Type               | Bug
  State              | Assigned
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Rubinsky
------------------------------------------------------------------------------


mmartin at mnet-online.de (2010-08-18 03:15) wrote:

> In Ansel/lib/Exif.php, in the function _parseGPSData (should be  
> around line 131) - can you find out the value of $data, $min,  and  
> $sec?
>
> something like var_dump($data) etc... right before the return on line 152.
>
my local should be german, i did some debug logging:
Aug 18 08:54:21 HORDE [debug] [ansel] degtodecimal(56/1,48,29,3 is  
56,808139. [pid 21431 on line 158 of  
"/usr/share/psa-horde/ansel/lib/Exif.php"]
Aug 18 08:54:21 HORDE [debug] [ansel]  
parsegpsdate(GPSLatitude,Array)=56,808139 [pid 21431 on line 101 of  
"/usr/share/psa-horde/ansel/lib/Exif.php"]
Aug 18 08:54:21 HORDE [debug] [ansel] degtodecimal(6/1,10,46,91 is  
6,179697. [pid 21431 on line 158 of  
"/usr/share/psa-horde/ansel/lib/Exif.php"]
Aug 18 08:54:21 HORDE [debug] [ansel]  
parsegpsdate(GPSLongitude,Array)=6,179697 [pid 21431 on line 101 of  
"/usr/share/psa-horde/ansel/lib/Exif.php"]
Aug 18 08:54:21 HORDE [debug] [ansel] GPSLongitudeRef=W=-6,179697 [pid  
21431 on line 105 of "/usr/share/psa-horde/ansel/lib/Exif.php"]

so i seem to have , as the decimal separator, but in the Lattitude  
case that's correctly convertet to . whereas in the longitude case,  
it's not ?!
Moreover both the attributes in ansel_image_attributes and the  
image_longitude  in ansel_image show the same behavior (lattitude ok,  
longitude wrong)








More information about the bugs mailing list