Clean the various EPS thresholds in MapProjection subclasses
------------------------------------------------------------

                 Key: GEOT-1827
                 URL: http://jira.codehaus.org/browse/GEOT-1827
             Project: GeoTools
          Issue Type: Task
          Components: core referencing
    Affects Versions: 2.5-M0
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
            Priority: Minor
             Fix For: 2.5.0


The {{MapProjection}} subclasses use different EPS thresholds for floating 
point comparaisons. It may be possible to factorize some of them in their 
parent class by using name reflecting their purpose, rather than the vague 
"{{EPS}}" name used everywhere.

Of special interest is the threshold used for detecting when we are close to 0 
or 90°. The {{AffineTransform}} class has an interresting description of this 
problem. We should probably copy their idea and use their threshold value in 
replacement of the arbitrary {{1E-6}} commonly used. See "Handling 90-Degree 
Rotations" at 
http://java.sun.com/javase/6/docs/api/java/awt/geom/AffineTransform.html.


-- 
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: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to