org.geotools.coverage.grid
Class Calculator2D
Object
PropertySourceImpl
AbstractCoverage
AbstractGridCoverage
GridCoverage2D
Calculator2D
- All Implemented Interfaces:
- Serializable, PropertySource, Coverage, GridCoverage
- Direct Known Subclasses:
- Interpolator2D
public abstract class Calculator2D
- extends GridCoverage2D
A grid coverage backed by the same image, grid
geometry and sample dimension than an other coverage, but
performing some additional calculation in its evaluate
methods.
- Since:
- 2.5
- Author:
- Martin Desruisseaux (IRD)
- See Also:
- Serialized Form
Field Summary |
protected GridCoverage2D |
source
The source grid coverage which was specified at construction time (never null ). |
Methods inherited from class GridCoverage2D |
dispose, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, geophysics, getCoordinateReferenceSystem2D, getDebugString, getEnvelope, getEnvelope2D, getGridGeometry, getInterpolation, getNumSampleDimensions, getOptimalDataBlockSizes, getRenderableImage, getRenderedImage, getSampleDimension, getSampleDimensions, getViewTypes, isDataEditable, prefetch, show, show, toString, view |
source
protected final GridCoverage2D source
- The source grid coverage which was specified at construction time (never
null
).
Calculator2D
protected Calculator2D(CharSequence name,
GridCoverage2D coverage)
- Constructs a new grid coverage with the same parameter than the specified coverage.
- Parameters:
name
- The name for this coverage, or null
for the same than coverage
.coverage
- The source grid coverage.
specialize
protected abstract GridCoverage2D specialize(GridCoverage2D view)
- Invoked by
view(type)
when the packed, geophysics or photographic view of this grid coverage needs to be created. The view
method
first gets the desired view from the source coverage, then passes it as the
argument to this method. Subclasses should define this method as below:
return new MyCalculator2D(view, <
any configuration to copy>);
- Parameters:
view
- A view derived from the source coverage.
- Returns:
- The grid coverage to be returned by
view
, typically of the same
class than this
(but this is not a strong requirement).
Copyright © 1996-2014 Geotools. All Rights Reserved.