public class OpenJUMPSextanteRasterLayer extends AbstractSextanteRasterLayer
m_BaseDataObjectINTERPOLATION_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, toStringpublic 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)
ISextanteRasterLayerge - the reference gridExtentpublic int getBandsCount()
ISextanteRasterLayerpublic double getCellValueInLayerCoords(int x,
                               int y,
                               int band)
ISextanteRasterLayerx - the x coordinate(col) of the celly - the y coordinate(row) of the cellband - the band to be queriedpublic int getDataType()
ISextanteRasterLayerpublic double getLayerCellSize()
ISextanteRasterLayerpublic GridExtent getLayerGridExtent()
ISextanteRasterLayerpublic double getNoDataValue()
ISextanteRasterLayerpublic void setCellValue(int x,
                int y,
                int band,
                double value)
ISextanteRasterLayerx - the x coordinate (cols)y - the y coordinate (rows)band - the band (zero-based)value - the new valuepublic void setNoDataValue(double noDataValue)
ISextanteRasterLayernoDataValue - the new no-data valuepublic java.lang.Object getCRS()
ISextanteLayerpublic java.awt.geom.Rectangle2D getFullExtent()
public void open()
ISextanteDataObjectpublic void close()
ISextanteDataObjectpublic void postProcess()
                 throws java.lang.Exception
ISextanteDataObjectjava.lang.Exceptionpublic java.lang.String getFilename()
ISextanteDataObjectpublic java.lang.String getName()
ISextanteDataObjectpublic void setName(java.lang.String sName)
ISextanteDataObjectsName - the new name