Eric Strabala a écrit :
> I'm looking to convert a MathTransform to a matrix.  Can someone point 
> me in the right direction?

You can not convert arbitrary math transform to a matrix. For example the 
following can *not* be converted to a matrix:

* all map projections except "Equidistant Cylindrical" and "Plate Carree".
* Molodenski
* Geocentric to Ellipsoid and the converse.
* Passthrough
* And much more...

Actually it is impossible in the majority of case... However there is a few 
case 
where it is possible, when the transform is only:

* Unit conversion (only for linear unit)
* Axis flipping and swapping
* Dropping a few dimensions
* Scale, rotation, translation.

In such case, you can cast the MathTransform to LinearTransform and invoke the 
getMatrix() method.

        Martin

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to