Patch for custom tolerance in floating point comparisons ready for review

1 message Options
Embed this post
Permalink
aaime

Patch for custom tolerance in floating point comparisons ready for review

Reply Threaded More More options
Print post
Permalink
Hi,
in this jira: http://jira.codehaus.org/browse/GEOT-2750

you can find the patch that will allow the user to set a
non zero tolerance when comparing floating point values
in the referencing subsystem.

As said in the previous thread, it allows to get a match
between random WKT definitions as found in .prj files and
the official EPSG database (and thus allows people interested
in getting better reprojection accuracy to automatically
replace the random WKT with the official definition).

The patch does not change the current behavior, that does
compare doubles bit by bit, but allows the user to setup
a custom tolerance following the well accepted practice that
when comparing doubles one should include a tolerance in
the comparison itself.

Cheers
Andrea


--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel