You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sis.apache.org by "Martin Desruisseaux (Jira)" <ji...@apache.org> on 2024/01/18 10:56:00 UTC

[jira] [Created] (SIS-595) AbstractMathTransform.tryConcatenate(…) needs more context

Martin Desruisseaux created SIS-595:
---------------------------------------

             Summary: AbstractMathTransform.tryConcatenate(…) needs more context
                 Key: SIS-595
                 URL: https://issues.apache.org/jira/browse/SIS-595
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Referencing
    Affects Versions: 1.4, 1.3, 1.2, 1.1, 1.0, 0.8
            Reporter: Martin Desruisseaux


The {{AbstractMathTransform}} class has a protected {{tryConcatenate(…)}} method that subclasses can override for optimizing the way that two consecutive {{MathTransform}} instances are concatenated. However, its method signature allows the implementer to know only one contextual {{MathTransform}}: the one just before, or the one just after, the {{MathTransform}} to concatenate. Sometime this is not sufficient.

A more extensible approach would be to replace the current signature by a single {{Joiner}} argument (that class name may be revisited) with methods such as:

* {{getTransform(int relativeOffset)}} where argument -1 gives the transform before and +1 gives the transform after.
* {{replacePrevious(MathTransform concatenation)}} replaces the previous transform and this transform by the given concatenation result.
* {{replaceNext(MathTransform concatenation)}} replaces this transform and the next transform by the given concatenation result.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)