public class OpenJUMPSextanteRasterLayer extends AbstractSextanteRasterLayer
m_BaseDataObject
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 |
---|
OpenJUMPSextanteRasterLayer() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method closes the data object, which was opened using the
open() method.
|
void |
create(RasterImageLayer layer) |
void |
create(RasterImageLayer layer,
boolean loadFromFile) |
void |
create(java.lang.String name,
java.lang.String filename,
GridExtent ge,
int dataType,
int numBands,
java.lang.Object crs,
LayerManager layerManager) |
void |
fitToGridExtent(GridExtent ge,
LayerManager layerManager)
Resamples the layer so the new full extent is the same as a given gridExtent
|
int |
getBandsCount()
Returns the number of bands of the layer
|
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()
Returns the filename associated to this data object.
|
java.awt.geom.Rectangle2D |
getFullExtent()
Returns the extent covered by the layer
|
double |
getLayerCellSize()
Return the original cellsize of the layer.
|
GridExtent |
getLayerGridExtent()
Returns the grid extent of the layer
|
java.lang.String |
getName()
Returns the name of this data object
|
double |
getNoDataValue()
Gets the no-data value of the layer
|
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 band,
double value)
Sets the value at a cell
|
void |
setName(java.lang.String sName)
Sets a new name for this object
|
void |
setNoDataValue(double noDataValue)
Sets the no-data value of the layer
|
add, addToCellValue, addToCellValue, assign, assign, assignNoData, getAccumulatedHistogram, getAccumulatedHistogram, getAspect, getBaseDataObject, getCellValueAsByte, getCellValueAsByte, getCellValueAsDouble, getCellValueAsDouble, getCellValueAsFloat, getCellValueAsFloat, getCellValueAsInt, getCellValueAsInt, getCellValueAsShort, getCellValueAsShort, getDirToNextDownslopeCell, getDirToNextDownslopeCell, getDistToNeighborInDir, getHistogram, getHistogram, getMaxValue, getMaxValue, getMeanValue, getMeanValue, getMinValue, getMinValue, getNX, getNY, getSlope, getUnitDistToNeighborInDir, getValueAt, getValueAt, getVariance, getVariance, getWindowCellSize, getWindowGridExtent, isInWindow, isNoDataValue, multiply, setCellValue, setFullExtent, setInterpolationMethod, setNoData, setNoData, setWindowExtent, setWindowExtent, toString
public void create(RasterImageLayer layer)
public void create(RasterImageLayer layer, boolean loadFromFile)
public void create(java.lang.String name, java.lang.String filename, GridExtent ge, int dataType, int numBands, java.lang.Object crs, LayerManager layerManager)
public void fitToGridExtent(GridExtent ge, LayerManager layerManager)
ISextanteRasterLayer
ge
- the reference gridExtentpublic int getBandsCount()
ISextanteRasterLayer
public double getCellValueInLayerCoords(int x, int y, int band)
ISextanteRasterLayer
x
- the x coordinate(col) of the celly
- the y coordinate(row) of the cellband
- the band to be queriedpublic int getDataType()
ISextanteRasterLayer
public double getLayerCellSize()
ISextanteRasterLayer
public GridExtent getLayerGridExtent()
ISextanteRasterLayer
public double getNoDataValue()
ISextanteRasterLayer
public void setCellValue(int x, int y, int band, double value)
ISextanteRasterLayer
x
- the x coordinate (cols)y
- the y coordinate (rows)band
- the band (zero-based)value
- the new valuepublic void setNoDataValue(double noDataValue)
ISextanteRasterLayer
noDataValue
- the new no-data valuepublic java.lang.Object getCRS()
ISextanteLayer
public java.awt.geom.Rectangle2D getFullExtent()
public void open()
ISextanteDataObject
public void close()
ISextanteDataObject
public void postProcess() throws java.lang.Exception
ISextanteDataObject
java.lang.Exception
public java.lang.String getFilename()
ISextanteDataObject
public java.lang.String getName()
ISextanteDataObject
public void setName(java.lang.String sName)
ISextanteDataObject
sName
- the new name