From: Charles K. <Cha...@no...> - 2004-05-11 03:48:59
|
Hello, I think there is a bug in the org.geotools.renderer.geom.Point class, at line 355. More precisely it is located in the setCoordinateSystem method. The original line is ct.getMathTransform().transform(src, 0, transformedPoint, 0, 2); and needs to be replaced by ct.getMathTransform().transform(src, 0, transformedPoint, 0, 1); The last parameter seems to be the coordinates number, not the x and y values number. Otherwise an *ArrayIndexOutOfBoundsException is thrown : java.lang.ArrayIndexOutOfBoundsException: 2 at org.geotools.ct.proj.MapProjection$Inverse.transform(MapProjection.java:774) at org.geotools.ct.ConcatenatedTransform.transform(ConcatenatedTransform.java:244) at org.geotools.ct.ConcatenatedTransform.transform(ConcatenatedTransform.java:244) at org.geotools.ct.ConcatenatedTransform.transform(ConcatenatedTransform.java:244) at org.geotools.ct.ConcatenatedTransformDirect.transform(ConcatenatedTransformDirect.java:111) at org.geotools.renderer.geom.Point.setCoordinateSystem(Point.java:355) Best regards Charles * |