Hi,

Thanks for your reply.
I installed JDK 1.5. Update 17 and tried building geotools again.
It failed again on the same test.
Following is a exception details
from TEST-org.geotools.referencing.ScriptTest.xml.

I will try this again with the JDK 1.5 older version may be with no update.
Please note that I am using maven and running it from command prompt.

Will that solve my problem?
Do you have any other suggestion?


<testcase classname="org.geotools.referencing.ScriptTest" time="0.109"
name="testStereographic">
-
<error type="org.opengis.referencing.operation.TransformException"
message="Transformation doesn't produce the expected values.">
org.opengis.referencing.operation.TransformException: Transformation doesn't
produce the expected values.
at org.geotools.referencing.Console.test(Console.java:615)
at org.geotools.referencing.ScriptRunner.test(ScriptRunner.java:61)
at org.geotools.referencing.Console.execute(Console.java:399)
at
org.geotools.referencing.wkt.AbstractConsole.executeAll(AbstractConsole.java:288)
at org.geotools.referencing.ScriptTest.runScript(ScriptTest.java:49)
at
org.geotools.referencing.ScriptTest.testStereographic(ScriptTest.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
</error>
</testcase>
<testcase classname="org.geotools.referencing.ScriptTest" time="0.235"
name="testTransverseMercator"/>
<testcase classname="org.geotools.referencing.ScriptTest" time="0.031"
name="testAbridgedMolodesky"/>
<testcase classname="org.geotools.referencing.ScriptTest" time="0.032"
name="testMolodesky"/>
<testcase classname="org.geotools.referencing.ScriptTest" time="0.062"
name="testSimple"/>
<testcase classname="org.geotools.referencing.ScriptTest" time="0.032"
name="testProjections"/>
<testcase classname="org.geotools.referencing.ScriptTest" time="0.062"
name="testAlbersEqualArea"/>
<testcase classname="org.geotools.referencing.ScriptTest" time="0.157"
name="testLambertAzimuthalEqualArea"/>
<testcase classname="org.geotools.referencing.ScriptTest" time="0.047"
name="testLambertConic"/>
-
<testcase classname="org.geotools.referencing.ScriptTest" time="0.047"
name="testOrthographic">
-
<error
type="org.geotools.referencing.operation.projection.ProjectionException"
message="The transform result may be 1,943,446.412 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 270°00.0'W away from
the central meridian and 40°47.0'S away from the latitude of origin. The
projection is "Orthographic".">
org.geotools.referencing.operation.projection.ProjectionException: The
transform result may be 1,943,446.412 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 270°00.0'W away from the
central meridian and 40°47.0'S away from the latitude of origin. The
projection is "Orthographic".
at
org.geotools.referencing.operation.projection.MapProjection.checkReciprocal(MapProjection.java:630)
at
org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:821)
at
org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:855)
at
org.geotools.referencing.operation.transform.AbstractMathTransform.transform(AbstractMathTransform.java:256)
at org.geotools.referencing.Console.test(Console.java:602)
at org.geotools.referencing.ScriptRunner.test(ScriptRunner.java:61)
at org.geotools.referencing.Console.execute(Console.java:399)
at
org.geotools.referencing.wkt.AbstractConsole.executeAll(AbstractConsole.java:288)
at org.geotools.referencing.ScriptTest.runScript(ScriptTest.java:49)
at org.geotools.referencing.ScriptTest.testOrthographic(ScriptTest.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
</error>
</testcase>

On Fri, Feb 20, 2009 at 8:01 PM, Martin Desruisseaux <
[email protected]> wrote:

> Andrea Aime a écrit :
>
>> GeoTools targets Java 5 at the moment. Due to differences in how
>> Java 5 and Java 6 behave (the way they handle math calculations
>> for example) some tests are failing in Java 6.
>>
>
> Andrea is right. I noticed issues in projection formulas around expressions
> like "atan(v1) / sqrt(v2)" when both v1 and v2 are very small. I get
> different result between Intel and AMD processors, between Java running in
> client and server mode and between 32 and 64 bits machines (not sure which
> one of all the above is the main factor).
>
> In practice it doesn't hurt since (at least in my tests) the projected
> coordinates appear different only in place where it has no signifiance, like
> the longitude at poles. However the test suites have to be modified for
> taking in account those special cases. I have already done this work in an
> other project, pending completion for merge with GeoTools.
>
>        Martin
>



-- 
Thanks & regards,
Nilesh Choure
[email protected]
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to