Class GridWrapper
java.lang.Object
org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapper
- Direct Known Subclasses:
GridWrapperInterpolated, GridWrapperNotInterpolated
Abstract class for grip wrappers. Grid wrappers are used
to get an easy way of accessing raster layers so different
layers (i.e. with different extents and cellsizes) can be combined
and analyzed together seamlessly, without having to worry about
resampling or adjusting them.
- Author:
- Victor Olaya
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intprotected intprotected intprotected ISextanteRasterLayerprotected GridExtent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract bytegetCellValueAsByte(int x, int y) abstract bytegetCellValueAsByte(int x, int y, int band) abstract doublegetCellValueAsDouble(int x, int y) abstract doublegetCellValueAsDouble(int x, int y, int band) abstract floatgetCellValueAsFloat(int x, int y) abstract floatgetCellValueAsFloat(int x, int y, int band) abstract intgetCellValueAsInt(int x, int y) abstract intgetCellValueAsInt(int x, int y, int band) abstract shortgetCellValueAsShort(int x, int y) abstract shortgetCellValueAsShort(int x, int y, int band) protected doublegetCellValueInLayerCoords(int x, int y, int band) doubleintgetNX()intgetNY()doublegetValueAt(double xPosition, double yPosition, int band) protected booleanisInLayer(int x, int y, int iBand) booleanisNoDataValue(double dValue) voidsetInterpolationMethod(int iMethod)
-
Field Details
-
INTERPOLATION_NearestNeighbour
public static final int INTERPOLATION_NearestNeighbour- See Also:
-
INTERPOLATION_Bilinear
public static final int INTERPOLATION_Bilinear- See Also:
-
INTERPOLATION_InverseDistance
public static final int INTERPOLATION_InverseDistance- See Also:
-
INTERPOLATION_BicubicSpline
public static final int INTERPOLATION_BicubicSpline- See Also:
-
INTERPOLATION_BSpline
public static final int INTERPOLATION_BSpline- See Also:
-
m_Layer
-
m_iOffsetX
protected int m_iOffsetX -
m_iOffsetY
protected int m_iOffsetY -
m_WindowExtent
-
-
Constructor Details
-
GridWrapper
-
-
Method Details
-
getCellValueAsByte
public abstract byte getCellValueAsByte(int x, int y) -
getCellValueAsByte
public abstract byte getCellValueAsByte(int x, int y, int band) -
getCellValueAsShort
public abstract short getCellValueAsShort(int x, int y) -
getCellValueAsShort
public abstract short getCellValueAsShort(int x, int y, int band) -
getCellValueAsInt
public abstract int getCellValueAsInt(int x, int y) -
getCellValueAsInt
public abstract int getCellValueAsInt(int x, int y, int band) -
getCellValueAsFloat
public abstract float getCellValueAsFloat(int x, int y) -
getCellValueAsFloat
public abstract float getCellValueAsFloat(int x, int y, int band) -
getCellValueAsDouble
public abstract double getCellValueAsDouble(int x, int y) -
getCellValueAsDouble
public abstract double getCellValueAsDouble(int x, int y, int band) -
getCellValueInLayerCoords
protected double getCellValueInLayerCoords(int x, int y, int band) -
isNoDataValue
public boolean isNoDataValue(double dValue) -
getNoDataValue
public double getNoDataValue() -
getNY
public int getNY() -
getNX
public int getNX() -
getCellSize
-
getGridExtent
-
isInLayer
protected boolean isInLayer(int x, int y, int iBand) -
getValueAt
public double getValueAt(double xPosition, double yPosition, int band) -
setInterpolationMethod
public void setInterpolationMethod(int iMethod)
-