Sten Nordström a écrit : > I encountered really strange behaviour from the geotools 2-2 library when > using an UTM (transform zone 31 north). With assertions enabled, transforming > a WGS84 geographical coordinate where the longitude is 0 throws the following > exception: > > java.lang.AssertionError: The transform result may be 0.095 meters away from > the expected position. Are you sure that the input coordinates are inside > this map projection area of validity? The point is located 3°00.0'W away from > the central meridian and 63°00.0'N away from the latitude of origin.
A UTM transform is valid only 3° on each side of the central meridian. If we go to far away from the central meridian, the error become importants. This is what the assertion check. However I admit that throwing an exception for a 10 centimeters error on the edge may be a little bit too strict... > The really strange thing is that changing the longitude to 0.01 or -0.01 will > not generate any assertions. This is string. It would be interresting to check if you get the same behavior with Geotools 2.3 or yet better, the code on trunk... 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-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users