I've enabled debug and seems like the problem is here:
class GeocentricTransforn
/**
* Transform the last half if the specified array and returns
* the distance with the first half. Array {@code points}
* must have a length of 6.
*/
private double checkTransform(final double[] points) {
transform(points, 3, points, 3, 1, true);
final double dx = points[0]-points[3];
final double dy = points[1]-points[4];
final double dz = points[2]-points[5];
return Math.sqrt(dx*dx + dy*dy + dz*dz);
}
This method gets array:
[0] = 2860865.0536348354
[1] = 4180870.883628987
[2] = NaN
[3] = 55.61714265815249 /**OK! close to the thing I want to see*/
[4] = NaN /** OOoops... */
[5] = NaN
As you can see one of the coordinates is not transformed. That is why I do
get exception.
Unfotunately, I don't know why it happens. Maybe I do some mistake :(
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Error-while-converting-geometris-tp5034025p5034193.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users