Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-485

Replace GridCoverage.evaluate(DirectPosition, …) method

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • Features
    • None

    Description

      The following method has been added in the GridCoverage class in the development branch:

      public double[] evaluate(final DirectPosition point, double[] buffer) throws CannotEvaluateException;
      

      However this method is inefficient if invoked for more than one point (which is a typical scenario). It may trig many readings of small areas, construct many times the same CoordinateOperation, etc. Furthermore it does not allow users to control the interpolatipn method.

      An alternative approach could be to define a separated Evaluator class with methods for setting the interpolation types among other. All coordinates to evaluate could be specified in advance, allowing Evaluator to perform only one larger read operation instead than many small operations.

      We may keep GridCoverage.evaluate as a convenience method when there is really only one point to evaluate. But we would need to clarify at least the policy regarding interpolation method.

      Attachments

        Issue Links

          Activity

            People

              desruisseaux Martin Desruisseaux
              desruisseaux Martin Desruisseaux
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: