[geotk] [JIRA] Created: (GEOTK-62) CRS.equalsIgnoreMetadata(...) should take an optional "tolerance" argument

Martin Desruisseaux (JIRA) jira at geomatys.com
Wed Nov 11 05:59:34 EST 2009


CRS.equalsIgnoreMetadata(...) should take an optional "tolerance" argument
--------------------------------------------------------------------------

                 Key: GEOTK-62
                 URL: http://jira.geotoolkit.org/browse/GEOTK-62
             Project: Geotoolkit
          Issue Type: New Feature
          Components: Referencing
    Affects Versions: 3.06
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
            Priority: Minor
             Fix For: 3.07


{{CRS.equalsIgnoreMetadata(IdentifiedObject, IdentifiedObject)}} returns {{true}} only if every numerical values declared in the projection parameters and ellipsoid are strictly identical for both Coordinate Reference System. We should allow a tolerance value, probably relative to the greatest numerical value found in both objects for a given parameter.

In order to implement that, we will need to add this tolerance argument to the {{AbstractIdentifiedObject.equals(IdentifiedObject, boolean)}} method. One tricky issue we will face is how to redefine the {{AbstractMathTransform.equivalent(MathTransform, boolean)}} method, keeping in mind that the later does not expect a tolerance as a {{double}} because of the non-linear nature of map projection parameters.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.geotoolkit.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Geotoolkit mailing list