| org.geotools.coverage.grid.AbstractGridCoverage org.geotools.coverage.grid.GridCoverage2D org.geotools.coverage.grid.Interpolator2D
Interpolator2D | final public class Interpolator2D extends GridCoverage2D (Code) | | A grid coverage using an
for evaluating points. This
interpolator is not used for
(use the plain
GridCoverage2D class for that). It should work for other kinds of
interpolation however.
version: $Id: Interpolator2D.java 22710 2006-11-12 18:04:54Z desruisseaux $ author: Martin Desruisseaux since: 2.2 |
Method Summary | |
public static GridCoverage2D | create(GridCoverage2D coverage) Constructs a new interpolator using default interpolations. | public static GridCoverage2D | create(GridCoverage2D coverage, Interpolation interpolation) Constructs a new interpolator for a single interpolation. | public static GridCoverage2D | create(GridCoverage2D coverage, Interpolation[] interpolations) Constructs a new interpolator for an interpolation and its fallbacks. | protected GridCoverage2D | createGeophysics(boolean geo) Invoked by
Interpolator2D.geophysics(boolean) when the packed or geophysics companion of this
grid coverage need to be created. | public int[] | evaluate(Point2D coord, int[] dest) Returns a sequence of integer values for a given two-dimensional point in the coverage.
Parameters: coord - The coordinate point where to evaluate. Parameters: dest - An array in which to store values, or null . | public float[] | evaluate(Point2D coord, float[] dest) Returns a sequence of float values for a given two-dimensional point in the coverage.
Parameters: coord - The coordinate point where to evaluate. Parameters: dest - An array in which to store values, or null . | public double[] | evaluate(Point2D coord, double[] dest) Returns a sequence of double values for a given two-dimensional point in the coverage.
Parameters: coord - The coordinate point where to evaluate. Parameters: dest - An array in which to store values, or null . | public Interpolation | getInterpolation() Returns the primary interpolation used by this
Interpolator2D . | public Interpolation[] | getInterpolations() Returns interpolations. |
create | public static GridCoverage2D create(GridCoverage2D coverage)(Code) | | Constructs a new interpolator using default interpolations.
Parameters: coverage - The coverage to interpolate. |
create | public static GridCoverage2D create(GridCoverage2D coverage, Interpolation interpolation)(Code) | | Constructs a new interpolator for a single interpolation.
Parameters: coverage - The coverage to interpolate. Parameters: interpolation - The interpolation to use. |
create | public static GridCoverage2D create(GridCoverage2D coverage, Interpolation[] interpolations)(Code) | | Constructs a new interpolator for an interpolation and its fallbacks. The fallbacks
are used if the primary interpolation failed because of
values in the interpolated point neighbor.
Parameters: coverage - The coverage to interpolate. Parameters: interpolations - The interpolation to use and its fallback (if any). |
createGeophysics | protected GridCoverage2D createGeophysics(boolean geo)(Code) | | Invoked by
Interpolator2D.geophysics(boolean) when the packed or geophysics companion of this
grid coverage need to be created. This method apply to the new grid coverage the same
interpolation than this grid coverage.
Parameters: geo - true to get a grid coverage with sample values equals togeophysics values, or false to get the packed version. The newly created grid coverage. |
evaluate | public int[] evaluate(Point2D coord, int[] dest) throws CannotEvaluateException(Code) | | Returns a sequence of integer values for a given two-dimensional point in the coverage.
Parameters: coord - The coordinate point where to evaluate. Parameters: dest - An array in which to store values, or null . An array containing values. throws: CannotEvaluateException - if the values can't be computed at the specified coordinate.More specifically, PointOutsideCoverageException is thrown if the evaluationfailed because the input point has invalid coordinates. |
evaluate | public float[] evaluate(Point2D coord, float[] dest) throws CannotEvaluateException(Code) | | Returns a sequence of float values for a given two-dimensional point in the coverage.
Parameters: coord - The coordinate point where to evaluate. Parameters: dest - An array in which to store values, or null . An array containing values. throws: CannotEvaluateException - if the values can't be computed at the specified coordinate.More specifically, PointOutsideCoverageException is thrown if the evaluationfailed because the input point has invalid coordinates. |
evaluate | public double[] evaluate(Point2D coord, double[] dest) throws CannotEvaluateException(Code) | | Returns a sequence of double values for a given two-dimensional point in the coverage.
Parameters: coord - The coordinate point where to evaluate. Parameters: dest - An array in which to store values, or null . An array containing values. throws: CannotEvaluateException - if the values can't be computed at the specified coordinate.More specifically, PointOutsideCoverageException is thrown if the evaluationfailed because the input point has invalid coordinates. |
getInterpolation | public Interpolation getInterpolation()(Code) | | Returns the primary interpolation used by this
Interpolator2D .
|
getInterpolations | public Interpolation[] getInterpolations()(Code) | | Returns interpolations. The first array's element is the interpolation for
this grid coverage. Other elements (if any) are fallbacks.
|
Methods inherited from org.geotools.coverage.grid.GridCoverage2D | protected GridCoverage2D createGeophysics(boolean geo)(Code)(Java Doc) public synchronized boolean dispose(boolean force)(Code)(Java Doc) public Object evaluate(DirectPosition point) throws CannotEvaluateException(Code)(Java Doc) public byte[] evaluate(DirectPosition coord, byte[] dest) throws CannotEvaluateException(Code)(Java Doc) public int[] evaluate(DirectPosition coord, int[] dest) throws CannotEvaluateException(Code)(Java Doc) public float[] evaluate(DirectPosition coord, float[] dest) throws CannotEvaluateException(Code)(Java Doc) public double[] evaluate(DirectPosition coord, double[] dest) throws CannotEvaluateException(Code)(Java Doc) public int[] evaluate(Point2D coord, int[] dest) throws CannotEvaluateException(Code)(Java Doc) public float[] evaluate(Point2D coord, float[] dest) throws CannotEvaluateException(Code)(Java Doc) public double[] evaluate(Point2D coord, double[] dest) throws CannotEvaluateException(Code)(Java Doc) public GridCoverage2D geophysics(boolean geo)(Code)(Java Doc) public CoordinateReferenceSystem getCoordinateReferenceSystem2D()(Code)(Java Doc) public synchronized String getDebugString(DirectPosition coord)(Code)(Java Doc) public Envelope getEnvelope()(Code)(Java Doc) public Envelope2D getEnvelope2D()(Code)(Java Doc) public GridGeometry getGridGeometry()(Code)(Java Doc) public Interpolation getInterpolation()(Code)(Java Doc) public int getNumSampleDimensions()(Code)(Java Doc) public int[] getOptimalDataBlockSizes()(Code)(Java Doc) public RenderableImage getRenderableImage(int xAxis, int yAxis)(Code)(Java Doc) public RenderedImage getRenderedImage()(Code)(Java Doc) public SampleDimension getSampleDimension(int index)(Code)(Java Doc) public GridSampleDimension[] getSampleDimensions()(Code)(Java Doc) public boolean isDataEditable()(Code)(Java Doc) public void prefetch(Rectangle2D area)(Code)(Java Doc) public void show(String title, int xAxis, int yAxis)(Code)(Java Doc) public void show(String title)(Code)(Java Doc)
|
Fields inherited from org.geotools.coverage.grid.AbstractGridCoverage | final public static Logger LOGGER(Code)(Java Doc)
|
Methods inherited from org.geotools.coverage.grid.AbstractGridCoverage | public boolean[] getDataBlock(GridRange range, boolean[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public byte[] getDataBlock(GridRange range, byte[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public short[] getDataBlock(GridRange range, short[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public int[] getDataBlock(GridRange range, int[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public float[] getDataBlock(GridRange range, float[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public double[] getDataBlock(GridRange range, double[] destination) throws InvalidRangeException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public GridPacking getGridPacking()(Code)(Java Doc) public int getNumOverviews()(Code)(Java Doc) public GridCoverage getOverview(int index) throws IndexOutOfBoundsException(Code)(Java Doc) public GridGeometry getOverviewGridGeometry(int index) throws IndexOutOfBoundsException(Code)(Java Doc) public byte[] getPackedDataBlock(GridRange range) throws InvalidRangeException(Code)(Java Doc) public List getSources()(Code)(Java Doc) public boolean isDataEditable()(Code)(Java Doc) protected String pointOutsideCoverage(Point2D point)(Code)(Java Doc) protected String pointOutsideCoverage(DirectPosition point)(Code)(Java Doc) public void setDataBlock(GridRange gridRange, boolean[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public void setDataBlock(GridRange gridRange, byte[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public void setDataBlock(GridRange gridRange, short[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public void setDataBlock(GridRange gridRange, int[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public void setDataBlock(GridRange gridRange, float[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public void setDataBlock(GridRange gridRange, double[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code)(Java Doc) public void setPackedDataBlock(GridRange gridRange, byte[] values) throws InvalidRangeException, GridNotEditableException, ArrayIndexOutOfBoundsException(Code)(Java Doc) static String toString(Point2D point, Locale locale)(Code)(Java Doc) static String toString(DirectPosition point, Locale locale)(Code)(Java Doc)
|
|
|