public class FLyrRasterIRasterLayer
extends es.unex.sextante.dataObjects.AbstractRasterLayer
INTERPOLATION_BicubicSpline, INTERPOLATION_Bilinear, INTERPOLATION_BSpline, INTERPOLATION_InverseDistance, INTERPOLATION_NearestNeighbour, RASTER_DATA_TYPE_BYTE, RASTER_DATA_TYPE_DOUBLE, RASTER_DATA_TYPE_FLOAT, RASTER_DATA_TYPE_INT, RASTER_DATA_TYPE_SHORT
Constructor and Description |
---|
FLyrRasterIRasterLayer() |
FLyrRasterIRasterLayer(String fName) |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method closes the data object, which was opened using the open() method.
|
void |
create(FLyrRaster lyr) |
void |
free()
This method deallocates memory used by the data object.
|
int |
getBandsCount()
Returns the number of bands of the layer
|
Object |
getBaseDataObject()
Returns the base data object (i.e. the object that this class wraps, which contains the data itself)
|
double |
getCellValueInLayerCoords(int x,
int y,
int iBand)
Returns the value of a cell in the original image coords, that is, not using the query window.
|
Object |
getCRS()
Returns an object with information about the CRS associated to this layer.
|
int |
getDataType()
Returns the data type of the layer
|
Rectangle2D |
getFullExtent()
Returns the extent covered by the layer
|
double |
getLayerCellSize()
Return the original cellsize of the layer.
|
es.unex.sextante.core.AnalysisExtent |
getLayerGridExtent()
Returns the extent of the whole layer
|
String |
getName()
Returns the name of this data object
|
double |
getNoDataValue()
Gets the no-data value of the layer
|
es.unex.sextante.outputs.IOutputChannel |
getOutputChannel()
Returns the channel associated to this data object.
|
void |
open()
This methods initialize the data object, so it is ready to be accessed
|
void |
postProcess()
This method post-processes the object after it has been created.
|
void |
setBaseDataObject(FLyrRaster lyr) |
void |
setBaseDataObject(RasterDataStore store) |
void |
setBaseDataObject(String fileName) |
void |
setCellValue(int x,
int y,
int iBand,
double dValue)
Sets the value at a cell
|
void |
setName(String name)
Sets a new name for this object
|
void |
setNoData(int x,
int y)
Set the value of a cell in the first band of a layer to the no-data value
|
void |
setNoDataValue(double dNoDataValue)
Sets the no-data value of the layer
|
void |
setWindowExtent(es.unex.sextante.core.AnalysisExtent extent)
Sets a new query window extent
|
add, addToCellValue, addToCellValue, assign, assign, assignNoData, calculateHistogram, calculateStatistics, getAccumulatedHistogram, getAccumulatedHistogram, getAspect, getCellValueAsByte, getCellValueAsByte, getCellValueAsDouble, getCellValueAsDouble, getCellValueAsFloat, getCellValueAsFloat, getCellValueAsInt, getCellValueAsInt, getCellValueAsShort, getCellValueAsShort, getDirToNextDownslopeCell, getDirToNextDownslopeCell, getDistToNeighborInDir, getHistogram, getHistogram, getMaxValue, getMaxValue, getMeanValue, getMeanValue, getMinValue, getMinValue, getNX, getNY, getSlope, getSubMatrix3x3, getUnitDistToNeighborInDir, getValueAt, getValueAt, getVariance, getVariance, getWindowCellSize, getWindowGridExtent, isInWindow, isNoDataValue, multiply, setCellValue, setConstants, setFullExtent, setInterpolationMethod, setNoData, setStatisticsHaveToBeCalculated, setWindowExtent, toString
public FLyrRasterIRasterLayer()
public FLyrRasterIRasterLayer(String fName)
public void create(FLyrRaster lyr)
public int getDataType()
es.unex.sextante.dataObjects.IRasterLayer
public void setCellValue(int x, int y, int iBand, double dValue)
es.unex.sextante.dataObjects.IRasterLayer
x
- the x coordinate (cols)y
- the y coordinate (rows)iBand
- the band (zero-based)dValue
- the new valuepublic void setNoDataValue(double dNoDataValue)
es.unex.sextante.dataObjects.IRasterLayer
dNoDataValue
- the new no-data valuepublic void setNoData(int x, int y)
es.unex.sextante.dataObjects.IRasterLayer
setNoData
in interface es.unex.sextante.dataObjects.IRasterLayer
setNoData
in class es.unex.sextante.dataObjects.AbstractRasterLayer
x
- the x coordinate(col) of the cell to set to no-datay
- the y coordinate(row) of the cell to set to no-datapublic double getNoDataValue()
es.unex.sextante.dataObjects.IRasterLayer
public double getCellValueInLayerCoords(int x, int y, int iBand)
es.unex.sextante.dataObjects.IRasterLayer
x
- the x coordinate(col) of the celly
- the y coordinate(row) of the celliBand
- the band to be queriedpublic int getBandsCount()
es.unex.sextante.dataObjects.IRasterLayer
public String getName()
es.unex.sextante.dataObjects.IDataObject
public void postProcess()
es.unex.sextante.dataObjects.IDataObject
public void open()
es.unex.sextante.dataObjects.IDataObject
public void close()
es.unex.sextante.dataObjects.IDataObject
public Rectangle2D getFullExtent()
es.unex.sextante.dataObjects.ILayer
public es.unex.sextante.core.AnalysisExtent getLayerGridExtent()
es.unex.sextante.dataObjects.IRasterLayer
public void setWindowExtent(es.unex.sextante.core.AnalysisExtent extent)
es.unex.sextante.dataObjects.IRasterLayer
setWindowExtent
in interface es.unex.sextante.dataObjects.IRasterLayer
setWindowExtent
in class es.unex.sextante.dataObjects.AbstractRasterLayer
extent
- the new grid extent to set fro this layerpublic double getLayerCellSize()
es.unex.sextante.dataObjects.IRasterLayer
public Object getCRS()
es.unex.sextante.dataObjects.ILayer
public void setName(String name)
es.unex.sextante.dataObjects.IDataObject
name
- the new namepublic void free()
es.unex.sextante.dataObjects.IDataObject
public Object getBaseDataObject()
es.unex.sextante.dataObjects.IDataObject
public void setBaseDataObject(FLyrRaster lyr)
public void setBaseDataObject(RasterDataStore store)
public void setBaseDataObject(String fileName)
public es.unex.sextante.outputs.IOutputChannel getOutputChannel()
es.unex.sextante.dataObjects.IDataObject