Class GridWrapperInterpolated
- java.lang.Object
-
- org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapper
-
- org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapperInterpolated
-
public class GridWrapperInterpolated extends GridWrapper
A grid wrapper that performs interpolation to calculate cell values. This should be used when the window extent does not 'fit' into the structure (coordinates and cellsize) of the grid.- Author:
- Victor Olaya
-
-
Field Summary
-
Fields inherited from class org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapper
INTERPOLATION_BicubicSpline, INTERPOLATION_Bilinear, INTERPOLATION_BSpline, INTERPOLATION_InverseDistance, INTERPOLATION_NearestNeighbour, m_iOffsetX, m_iOffsetY, m_Layer, m_WindowExtent
-
-
Constructor Summary
Constructors Constructor Description GridWrapperInterpolated(ISextanteRasterLayer layer, GridExtent windowExtent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetCellValueAsByte(int x, int y)bytegetCellValueAsByte(int x, int y, int band)doublegetCellValueAsDouble(int x, int y)doublegetCellValueAsDouble(int x, int y, int band)floatgetCellValueAsFloat(int x, int y)floatgetCellValueAsFloat(int x, int y, int band)intgetCellValueAsInt(int x, int y)intgetCellValueAsInt(int x, int y, int band)shortgetCellValueAsShort(int x, int y)shortgetCellValueAsShort(int x, int y, int band)-
Methods inherited from class org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapper
getCellSize, getCellValueInLayerCoords, getGridExtent, getNoDataValue, getNX, getNY, getValueAt, isInLayer, isNoDataValue, setInterpolationMethod
-
-
-
-
Constructor Detail
-
GridWrapperInterpolated
public GridWrapperInterpolated(ISextanteRasterLayer layer, GridExtent windowExtent)
-
-
Method Detail
-
getCellValueAsByte
public byte getCellValueAsByte(int x, int y)- Specified by:
getCellValueAsBytein classGridWrapper
-
getCellValueAsByte
public byte getCellValueAsByte(int x, int y, int band)- Specified by:
getCellValueAsBytein classGridWrapper
-
getCellValueAsShort
public short getCellValueAsShort(int x, int y)- Specified by:
getCellValueAsShortin classGridWrapper
-
getCellValueAsShort
public short getCellValueAsShort(int x, int y, int band)- Specified by:
getCellValueAsShortin classGridWrapper
-
getCellValueAsInt
public int getCellValueAsInt(int x, int y)- Specified by:
getCellValueAsIntin classGridWrapper
-
getCellValueAsInt
public int getCellValueAsInt(int x, int y, int band)- Specified by:
getCellValueAsIntin classGridWrapper
-
getCellValueAsFloat
public float getCellValueAsFloat(int x, int y)- Specified by:
getCellValueAsFloatin classGridWrapper
-
getCellValueAsFloat
public float getCellValueAsFloat(int x, int y, int band)- Specified by:
getCellValueAsFloatin classGridWrapper
-
getCellValueAsDouble
public double getCellValueAsDouble(int x, int y)- Specified by:
getCellValueAsDoublein classGridWrapper
-
getCellValueAsDouble
public double getCellValueAsDouble(int x, int y, int band)- Specified by:
getCellValueAsDoublein classGridWrapper
-
-