es.unex.sextante.rasterWrappers
Class GridWrapper
java.lang.Object
es.unex.sextante.rasterWrappers.GridWrapper
- Direct Known Subclasses:
- GridWrapperInterpolated, GridWrapperNotInterpolated
public abstract class GridWrapper
- extends java.lang.Object
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
Method Summary |
double |
getCellSize()
|
abstract byte |
getCellValueAsByte(int x,
int y)
|
abstract byte |
getCellValueAsByte(int x,
int y,
int band)
|
abstract double |
getCellValueAsDouble(int x,
int y)
|
abstract double |
getCellValueAsDouble(int x,
int y,
int band)
|
abstract float |
getCellValueAsFloat(int x,
int y)
|
abstract float |
getCellValueAsFloat(int x,
int y,
int band)
|
abstract int |
getCellValueAsInt(int x,
int y)
|
abstract int |
getCellValueAsInt(int x,
int y,
int band)
|
abstract short |
getCellValueAsShort(int x,
int y)
|
abstract short |
getCellValueAsShort(int x,
int y,
int band)
|
GridExtent |
getGridExtent()
|
double |
getNoDataValue()
|
int |
getNX()
|
int |
getNY()
|
double |
getValueAt(double xPosition,
double yPosition,
int band)
|
boolean |
isNoDataValue(double dValue)
|
void |
setInterpolationMethod(int iMethod)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTERPOLATION_NearestNeighbour
public static final int INTERPOLATION_NearestNeighbour
- See Also:
- Constant Field Values
INTERPOLATION_Bilinear
public static final int INTERPOLATION_Bilinear
- See Also:
- Constant Field Values
INTERPOLATION_InverseDistance
public static final int INTERPOLATION_InverseDistance
- See Also:
- Constant Field Values
INTERPOLATION_BicubicSpline
public static final int INTERPOLATION_BicubicSpline
- See Also:
- Constant Field Values
INTERPOLATION_BSpline
public static final int INTERPOLATION_BSpline
- See Also:
- Constant Field Values
GridWrapper
public GridWrapper(IRasterLayer layer,
GridExtent windowExtent)
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)
isNoDataValue
public boolean isNoDataValue(double dValue)
getNoDataValue
public double getNoDataValue()
getNY
public int getNY()
getNX
public int getNX()
getCellSize
public double getCellSize()
getGridExtent
public GridExtent getGridExtent()
getValueAt
public double getValueAt(double xPosition,
double yPosition,
int band)
setInterpolationMethod
public void setInterpolationMethod(int iMethod)