[ 
https://issues.apache.org/jira/browse/SIS-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Desruisseaux resolved SIS-595.
-------------------------------------
    Resolution: Fixed

New API is in place, but full context not yet provided. It will be done after 
the deprecated method is removed.

> 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: 0.8, 1.0, 1.1, 1.2, 1.3, 1.4
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Minor
>             Fix For: 1.5
>
>
> 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)

Reply via email to