incubator-sanselan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Matthew Chen" <>
Subject Re: Small bug in Sanselan
Date Wed, 23 Apr 2008 09:01:40 GMT
Hi Jon,

   Thanks so much for the patch.  I'm aiming to do a new build soon
and I'll be sure to include it.


ps. I've cc'd the sanselan-dev mailing list.

On Tue, Apr 22, 2008 at 5:41 PM, Jon Anders Amundsen
<> wrote:
> Hi!
> I want to report a small bug in Sanselan in the convenience functions to
> read GPS data.
> In the class org.cmc.sanselan.formats.tiff.TiffImageMetadata.GPSInfo there
> are two functions called getLongitudeAsDegreesEast() and
> getLatitudeAsDegreesNorth() which is affected by the bug.
>  These functions will return a position that may be several kilometers wrong
> because of a small calculation error. These two functions assume that there
> are 360 seconds in one degree, while the correct number is 3600. This is on
> line number 369 and 384 (according to the file in release 0.91).
> I have attached a .diff-file that will fix the bug.
> --
> Jon Anders Amundsen
> MSc Student at the Norwegian University of Science and Technology
> Department of Computer and Information Science

View raw message