Hi Milton,

The problem is that the lat and lon source coords are the wrong way
round.  Change your code to this...

    sendAry[0] = lon;  // = x
    sendAry[1] = lat;   // = y

...and it should work.  The destination array will have the same order.

The javadocs for the transform method mention the order of coords...

http://geotools.org/javadocs/org/geotools/referencing/operation/transform/NADCONTransform.html#transform(double[],%20int,%20double[],%20int,%20int)

Hope this helps,

Michael

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to