public final class Interpolator2D extends GridCoverage2D
GridCoverage2D
class for that). It should work for other kinds of
interpolation however.GridCoverage2D.Renderable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BORDER_EXTENDER_TYPE
Default
BorderExtender is BorderExtenderCopy . |
protected GridCoverage2D |
source
The source grid coverage which was specified at construction time (never
null ). |
gridGeometry, image
LOGGER
crs
Modifier and Type | Method and Description |
---|---|
static GridCoverage2D |
create(GridCoverage2D coverage)
Constructs a new interpolator using default interpolations.
|
static GridCoverage2D |
create(GridCoverage2D coverage,
Interpolation interpolation)
Constructs a new interpolator for a single interpolation.
|
static GridCoverage2D |
create(GridCoverage2D coverage,
Interpolation[] interpolations)
Constructs a new interpolator for an interpolation and its fallbacks.
|
static GridCoverage2D |
create(GridCoverage2D coverage,
Interpolation[] interpolations,
BorderExtender be)
Constructs a new interpolator for an interpolation and its fallbacks.
|
double[] |
evaluate(Point2D coord,
double[] dest)
Returns a sequence of double values for a given two-dimensional point in the coverage.
|
float[] |
evaluate(Point2D coord,
float[] dest)
Returns a sequence of float values for a given two-dimensional point in the coverage.
|
int[] |
evaluate(Point2D coord,
int[] dest)
Returns a sequence of integer values for a given two-dimensional point in the coverage.
|
Interpolation |
getInterpolation()
Returns the primary interpolation used by this
Interpolator2D . |
Interpolation[] |
getInterpolations()
Returns interpolations.
|
dispose, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, getCoordinateReferenceSystem2D, getDebugString, getEnvelope, getEnvelope2D, getGridGeometry, getNumSampleDimensions, getOptimalDataBlockSizes, getRenderableImage, getRenderedImage, getSampleDimension, getSampleDimensions, isDataEditable, prefetch, show, show, toString
formatEvaluateError, formatEvaluateError, getNumOverviews, getOverview, getOverviewGridGeometry, getSources
evaluate, evaluate, getCoordinateReferenceSystem, getDimension, getLocale, getName, getRangeType, show
getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
evaluate, evaluate, getCoordinateReferenceSystem, getRangeType
protected final GridCoverage2D source
null
).public static int DEFAULT_BORDER_EXTENDER_TYPE
BorderExtender
is BorderExtenderCopy
.public static GridCoverage2D create(GridCoverage2D coverage)
coverage
- The coverage to interpolate.public static GridCoverage2D create(GridCoverage2D coverage, Interpolation interpolation)
coverage
- The coverage to interpolate.interpolation
- The interpolation to use.public static GridCoverage2D create(GridCoverage2D coverage, Interpolation[] interpolations)
coverage
- The coverage to interpolate.interpolations
- The interpolation to use and its fallback (if any).public static GridCoverage2D create(GridCoverage2D coverage, Interpolation[] interpolations, BorderExtender be)
coverage
- The coverage to interpolate.interpolations
- The interpolation to use and its fallback (if any).public Interpolation[] getInterpolations()
public Interpolation getInterpolation()
Interpolator2D
.getInterpolation
in class GridCoverage2D
public int[] evaluate(Point2D coord, int[] dest) throws CannotEvaluateException
evaluate
in class GridCoverage2D
coord
- The coordinate point where to evaluate.dest
- An array in which to store values, or null
.CannotEvaluateException
- if the values can't be computed at the specified coordinate.
More specifically, PointOutsideCoverageException
is thrown if the evaluation
failed because the input point has invalid coordinates.public float[] evaluate(Point2D coord, float[] dest) throws CannotEvaluateException
evaluate
in class GridCoverage2D
coord
- The coordinate point where to evaluate.dest
- An array in which to store values, or null
.CannotEvaluateException
- if the values can't be computed at the specified coordinate.
More specifically, PointOutsideCoverageException
is thrown if the evaluation
failed because the input point has invalid coordinates.public double[] evaluate(Point2D coord, double[] dest) throws CannotEvaluateException
evaluate
in class GridCoverage2D
coord
- The coordinate point where to evaluate.dest
- An array in which to store values, or null
.CannotEvaluateException
- if the values can't be computed at the specified coordinate.
More specifically, PointOutsideCoverageException
is thrown if the evaluation
failed because the input point has invalid coordinates.Copyright © 1996–2019 Geotools. All rights reserved.