Martin Desruisseaux created SIS-554:
---------------------------------------

             Summary: Replace GridEvaluator by an interface
                 Key: SIS-554
                 URL: https://issues.apache.org/jira/browse/SIS-554
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Coverage
    Affects Versions: 1.2, 1.1
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
             Fix For: 1.3


{{BandedCoverage.evaluator()}} is a method returning an object which can be 
used for computing or interpolating values of a coverage at arbitrary 
geospatial positions. The evaluator takes care of reprojecting the given 
positions and converting to grid coordinates. The type of this evaluator is the 
{{BandedCoverage.Evaluator}} interface.

{{GridCoverage.evaluator()}} overrides that method for returning a more 
specialized type, which provides additional methods specific to gridded data 
(for example {{setDefaultSlice(…)}}. However the type of the evaluator returned 
by this method is the {{GridEvaluator}} concrete type. It was a mistake, that 
method should have returned an interface. Not doing so make more difficult to 
create for example evaluators that are wrappers around other evaluators.

We propose to add a new {{GridCoverage.Evaluator}} interface and to change the 
return type of {{GridCoverage.evaluator()}} to that interface. The latter 
action would be an incompatible change which will need to be reported in the 
release note. But hopefully this method is not yet too widely used, it should 
be an easy change for users.



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

Reply via email to