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(java.lang.String sName,
java.lang.String sFilename,
es.unex.sextante.core.AnalysisExtent ae,
int iDataType,
int iNumBands,
java.lang.Object crs) |
void |
create(java.lang.String sName,
java.lang.String sFilename,
es.unex.sextante.core.AnalysisExtent ge,
int iDataType,
java.lang.Object crs) |
void |
free()
This method deallocates memory used by the data object.
|
int |
getBandsCount()
Returns the number of bands of the layer
|
java.lang.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.
|
java.lang.Object |
getCRS()
Returns an object with information about the CRS associated to this layer.
|
int |
getDataType()
Returns the data type of the layer
|
java.lang.String |
getFilename() |
java.awt.geom.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
|
java.lang.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(java.lang.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, getContextName, 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, setViewName, setWindowExtent, setWindowExtent, toStringprotected RasterDriver m_RasterDriver
public void create(java.lang.String sName,
java.lang.String sFilename,
es.unex.sextante.core.AnalysisExtent ae,
int iDataType,
int iNumBands,
java.lang.Object crs)
public void create(java.lang.String sName,
java.lang.String sFilename,
es.unex.sextante.core.AnalysisExtent ge,
int iDataType,
java.lang.Object crs)
public int getDataType()
es.unex.sextante.dataObjects.IRasterLayerpublic void setCellValue(int x,
int y,
int iBand,
double dValue)
es.unex.sextante.dataObjects.IRasterLayerx - 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.IRasterLayerdNoDataValue - the new no-data valuepublic void setNoData(int x,
int y)
es.unex.sextante.dataObjects.IRasterLayersetNoData in interface es.unex.sextante.dataObjects.IRasterLayersetNoData in class es.unex.sextante.dataObjects.AbstractRasterLayerx - 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.IRasterLayerpublic double getCellValueInLayerCoords(int x,
int y,
int band)
es.unex.sextante.dataObjects.IRasterLayerx - 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.IRasterLayerpublic java.lang.String getName()
es.unex.sextante.dataObjects.IDataObjectpublic void postProcess()
es.unex.sextante.dataObjects.IDataObjectpublic void open()
es.unex.sextante.dataObjects.IDataObjectpublic void close()
es.unex.sextante.dataObjects.IDataObjectpublic java.awt.geom.Rectangle2D getFullExtent()
es.unex.sextante.dataObjects.ILayerpublic es.unex.sextante.core.AnalysisExtent getLayerGridExtent()
es.unex.sextante.dataObjects.IRasterLayerpublic double getLayerCellSize()
es.unex.sextante.dataObjects.IRasterLayerpublic java.lang.String getFilename()
public java.lang.Object getCRS()
es.unex.sextante.dataObjects.ILayerpublic void setName(java.lang.String name)
es.unex.sextante.dataObjects.IDataObjectname - the new namepublic java.lang.Object getBaseDataObject()
es.unex.sextante.dataObjects.IDataObjectpublic void free()
es.unex.sextante.dataObjects.IDataObjectpublic es.unex.sextante.outputs.IOutputChannel getOutputChannel()
es.unex.sextante.dataObjects.IDataObjectpublic Buffer getBuffer()