Class GridWrapperNotInterpolated
- java.lang.Object
-
- org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapper
-
- org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapperNotInterpolated
-
public class GridWrapperNotInterpolated extends GridWrapper
A grid wrapper that does not perform interpolation to calculate cell values. This should be used when the window extent 'fits' into the structure (coordinates and cellsize) of the grid, so it is faster than using a grid wrapper with interpolation Upon construction, cellsizes are not checked, so they are assumed to be equal. Use a QueryableGridWindow to safely create a GridWrapper better than instantiating this class directly.- 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 GridWrapperNotInterpolated(ISextanteRasterLayer layer, GridExtent windowExtent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateOffsets()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
-
GridWrapperNotInterpolated
public GridWrapperNotInterpolated(ISextanteRasterLayer layer, GridExtent windowExtent)
-
-
Method Detail
-
calculateOffsets
protected void calculateOffsets()
-
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
-
-