[gdal-dev] [gdal-java-1.8.0]TransformPoint() - different values for same inputs, why?

Jean-Claude Repetto jrepetto at free.fr
Wed Jul 6 16:16:25 EDT 2011


On 07/06/11 21:43, mett wrote:
> Hello everybody,
> I'm using GDAL 1.8.0 with Java, and I do not why but I got different results
> with TransformPoint with same inputs. Maybe I'm wrong, anyway see this:
>
> Upper Left = (/258321.25943477/, 655225.28062628)
> Abs: *-24.39163021771631*, 66.2996405709653
>
> Lower Left = (/258321.25943477/, 574605.28062628)
> Abs: *-24.24282066963955*, 65.5792295908428
>
> Upper Right = (/339151.25943477,/ 655225.28062628)
> Abs: *-22.593238696114604*, 66.35110363848813
>
> Lower Right = (/339151.25943477,/ 574605.28062628)
> Abs: *-22.493807890469444*, 65.62928831950212
>
> Those are the corners of my image, and as you can see when I try to convert
> with TransformPoint(X,Y), I got different value for example with static X
> and variable X.
>


Hi,
All your inputs are different, so it is normal that you get different 
results.
Jean-Claude


More information about the gdal-dev mailing list