JDBCFeatureCollectionTest.testSubCollection fails because of floating point
arithmetic
--------------------------------------------------------------------------------------
Key: GEOT-1994
URL: http://jira.codehaus.org/browse/GEOT-1994
Project: GeoTools
Issue Type: Bug
Components: data h2
Affects Versions: 2.5-RC0, 2.6-M0
Reporter: Christian Mueller
The line
assertEquals(new ReferencedEnvelope(1, 1, 1, 1, CRS.decode("EPSG:4326")),
sub.getBounds());
is to exact. Testing with db2 spatial extender results in
junit.framework.AssertionFailedError: expected:<ReferencedEnvelope[1.0 : 1.0,
1.0 : 1.0]> but was:<ReferencedEnvelope[0.9999996647238532 :
1.0000003352761468, 0.9999996647238532 : 1.0000003352761468]>
There is a delta at the 7 th position after the decimal point, I some rounding
of "sub.getBounds()" should happen.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel