Y.J.Chun a écrit :
> I could not solve the below problem in the end. And creating
> AffineTransform from MathTransform
> is critical part in my program.
I have not yet had a chance to inspect what is going on. But the behavior you
are reporting suggests that the affine transform coefficients are copied in the
wrong order by AffineTransform2D constructor. This is strange because I looked
at the code 2 days ago and saw no obvious error (which is why I didn't replied
-
I had no clue was going on at that time).
There is a choice. You can either:
1) Write a small test case reproducing the problem, so I can
use it for debugging.
or
2) Copies the affine transform coefficients yourself, using
the following approach:
Matrix m = ((LinearTransform) t).getMatrix();
new AffineTransform(m.getElementAt(0,0), m.getElementAt(..etc..);
But before to do that, have you tried to simply cast your t transform to
AffineTransform? I believe it is already an instance of AffineTransform2D.
Martin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users