public class BufferWriteOnlyIRasterLayer
extends es.unex.sextante.dataObjects.AbstractRasterLayer
Modifier and Type | Field and Description |
---|---|
protected RasterDriver |
m_RasterDriver |
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 |
---|
BufferWriteOnlyIRasterLayer() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method closes the data object, which was opened using the open() method.
|
void |
create(String sName,
String sFilename,
es.unex.sextante.core.AnalysisExtent ae,
int iDataType,
int iNumBands,
Object crs) |
void |
create(String sName,
String sFilename,
es.unex.sextante.core.AnalysisExtent ge,
int iDataType,
Object crs) |
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)
|
Buffer |
getBuffer() |
double |
getCellValueInLayerCoords(int x,
int y,
int band)
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
|
String |
getFilename() |
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 |
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
|
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, setWindowExtent, toString
protected RasterDriver m_RasterDriver
public void create(String sName, String sFilename, es.unex.sextante.core.AnalysisExtent ae, int iDataType, int iNumBands, Object crs)
public void create(String sName, String sFilename, es.unex.sextante.core.AnalysisExtent ge, int iDataType, Object crs)
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 band)
es.unex.sextante.dataObjects.IRasterLayer
x
- the x coordinate(col) of the celly
- the y coordinate(row) of the cellband
- 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 double getLayerCellSize()
es.unex.sextante.dataObjects.IRasterLayer
public String getFilename()
public Object getCRS()
es.unex.sextante.dataObjects.ILayer
public void setName(String name)
es.unex.sextante.dataObjects.IDataObject
name
- the new namepublic Object getBaseDataObject()
es.unex.sextante.dataObjects.IDataObject
public void free()
es.unex.sextante.dataObjects.IDataObject
public es.unex.sextante.outputs.IOutputChannel getOutputChannel()
es.unex.sextante.dataObjects.IDataObject
public Buffer getBuffer()