There should something like
ProjectiveTransform.create(AffineTransform.getRotateInstance(0));

Simone.

On 8/8/06, Martin Desruisseaux <[EMAIL PROTECTED]> wrote:
> Adrian Custer a écrit :
> > The code block below throws the following error. Could someone advise me
> > on how to make the right transform?
> >
> > ******************************************************************
> > SEVERE: Can't create pixel to world transform
> > Caused by: java.awt.geom.NoninvertibleTransformException: Determinant is 0.0
> >
> > (...snip...)
> >
> > //TODO: HACK HACK HACK  need a real pixel to world transform
> > AffineTransform trsf = new AffineTransform(
> >                              new double[]{1.0,1.0,1.0,1.0});
>
> This affine transform is not a valid one - we usually never put all 
> coefficients to 1. It is
> probably not invertible, which would explain the error message. Try "new 
> AffineTransform()" instead.
> The default constructor will create an identity transform.
>
> Note that you will probably need a more elaborated transform than an identity 
> one. Note sure if we
> wrote convenience method for that...
>
>        Martin.
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>


-- 
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions

http://www.geo-solutions.it

-------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to