public interface Grid extends Disposable
| Modifier and Type | Method and Description |
|---|---|
void |
add(Grid driver) |
void |
addToCellValue(int x,
int y,
byte value) |
void |
addToCellValue(int x,
int y,
double value) |
void |
addToCellValue(int x,
int y,
float value) |
void |
addToCellValue(int x,
int y,
int value) |
void |
addToCellValue(int x,
int y,
short value) |
void |
applyFilters()
Aplica la lista de filtros sobre el buffer
|
void |
assign(byte value) |
void |
assign(double value) |
void |
assign(float value) |
void |
assign(Grid driver) |
void |
assign(int value) |
void |
assign(short value) |
void |
assignNoData() |
double |
getAspect(int x,
int y) |
int |
getBandCount()
Obtiene el número de bandas del grid o 0 si no tiene buffer de
datos asociado.
|
double |
getCellSize()
Tamaño de celda
|
byte |
getCellValueAsByte(int x,
int y)
Obtiene el valor de una celda de tipo byte.
|
double |
getCellValueAsDouble(int x,
int y)
Obtiene el valor de una celda de tipo double.
|
float |
getCellValueAsFloat(int x,
int y)
Obtiene el valor de una celda de tipo float.
|
int |
getCellValueAsInt(int x,
int y)
Obtiene el valor de una celda de tipo int.
|
short |
getCellValueAsShort(int x,
int y)
Obtiene el valor de una celda de tipo short.
|
int |
getDataType()
Obtiene el tipo de datos
|
int |
getDirToNextDownslopeCell(int x,
int y) |
int |
getDirToNextDownslopeCell(int x,
int y,
boolean bForceDirToNoDataCell) |
double |
getDistToNeighborInDir(int iDir) |
RasterFilterList |
getFilterList()
Obtiene la lista de filtros.
|
GridCell |
getGridCell(int iX,
int iY)
Returns a GridCell object
|
GridExtent |
getGridExtent()
Obtiene la extensión de la ventana del raster accedida por el grid
|
int |
getLayerNX()
Obtiene el ancho en píxeles del dataset completo
|
int |
getLayerNY()
Obtiene el alto en píxeles del dataset completo
|
NoData |
getNoDataValue()
Valor nodata asociado al grid
|
int |
getNX()
Obtiene el ancho en píxeles del grid
|
int |
getNY()
Obtiene el alto en píxeles del grid
|
ColorTable |
getPalette()
Obtiene la lista de paletas asociadas al grid
|
Buffer |
getRasterBuf()
Obtiene el buffer de datos del grid
|
double |
getSlope(int x,
int y)
Obtiene la pendiente de un área de 3x3 píxeles que tiene como
centro las coordenadas que se le indican
|
GridCell[] |
getSortedArrayOfCells() |
BasicStats |
getStatistics()
Obtiene el objeto que calcula las estadísticas del Grid
|
boolean |
isInGrid(int x,
int y)
Consulta si un punto está dentro del grid o fuera de el
|
boolean |
isNoDataValue(double dValue)
Consulta al grid si el valor pasado por parámetro coincide con el valor NoData del
buffer.
|
void |
loadWriterData()
Carga el buffer de datos desde el reader para poder escribir sobre los datos de
la ventana original.
|
void |
multiply(double dValue) |
void |
setBandToOperate(int band)
Asigna la banda sobre la que se realizan las operaciones.
|
void |
setCellValue(int x,
int y,
byte value) |
void |
setCellValue(int x,
int y,
double value) |
void |
setCellValue(int x,
int y,
float value) |
void |
setCellValue(int x,
int y,
int value) |
void |
setCellValue(int x,
int y,
short value) |
void |
setFilterList(RasterFilterList filterList)
Asigna la lista de filtros
|
void |
setInterpolationMethod(int iMethod)
Asigna el método de interpolación.
|
void |
setNoData(int x,
int y) |
void |
setNoDataValue(NoData dNoDataValue)
Asigna el valor que indica que una celda no tiene datos para el buffer
|
disposevoid applyFilters()
throws ProcessInterruptedException,
FilterAddException
void loadWriterData()
throws GridException
GridExceptionBuffer getRasterBuf()
void setBandToOperate(int band)
band - Banda sobre la que se realizan las operaciones.int getBandCount()
BasicStats getStatistics()
byte getCellValueAsByte(int x,
int y)
throws GridException
x - Posición X a recuperary - Posición Y a recuperarRasterBufferInvalidAccessExceptionGridExceptionshort getCellValueAsShort(int x,
int y)
throws GridException
x - Posición X a recuperary - Posición Y a recuperarRasterBufferInvalidAccessExceptionGridExceptionint getCellValueAsInt(int x,
int y)
throws GridException
x - Posición X a recuperary - Posición Y a recuperarRasterBufferInvalidAccessExceptionGridExceptionfloat getCellValueAsFloat(int x,
int y)
throws GridException
x - Posición X a recuperary - Posición Y a recuperarRasterBufferInvalidAccessExceptionGridExceptiondouble getCellValueAsDouble(int x,
int y)
throws GridException
x - Posición X a recuperary - Posición Y a recuperarRasterBufferInvalidAccessExceptionGridExceptionvoid setInterpolationMethod(int iMethod)
iMethod - boolean isNoDataValue(double dValue)
dValue - valor para comparar con el NoData del bufferGridExtent getGridExtent()
boolean isInGrid(int x,
int y)
x - Coordenada X del punto a consultary - Coordenada Y del punto a consultarint getNX()
int getNY()
int getLayerNX()
int getLayerNY()
double getCellSize()
int getDataType()
NoData getNoDataValue()
ColorTable getPalette()
double getSlope(int x,
int y)
throws GridException
x - Coordenada pixel Xy - Coordenada pixel YGridExceptiondouble getAspect(int x,
int y)
throws GridException
GridExceptiondouble getDistToNeighborInDir(int iDir)
int getDirToNextDownslopeCell(int x,
int y)
throws GridException
GridExceptionint getDirToNextDownslopeCell(int x,
int y,
boolean bForceDirToNoDataCell)
throws GridException
GridExceptionGridCell[] getSortedArrayOfCells() throws GridException
GridExceptionvoid assign(byte value)
throws GridException
GridExceptionvoid assign(short value)
throws GridException
GridExceptionvoid assign(int value)
throws GridException
GridExceptionvoid assign(float value)
throws GridException
GridExceptionvoid assign(double value)
throws GridException
GridExceptionvoid assign(Grid driver) throws GridException
GridExceptionvoid addToCellValue(int x,
int y,
byte value)
throws GridException
GridExceptionvoid addToCellValue(int x,
int y,
short value)
throws GridException
GridExceptionvoid addToCellValue(int x,
int y,
int value)
throws GridException
GridExceptionvoid addToCellValue(int x,
int y,
float value)
throws GridException
GridExceptionvoid addToCellValue(int x,
int y,
double value)
throws GridException
GridExceptionvoid assignNoData()
void setCellValue(int x,
int y,
byte value)
throws OutOfGridException
OutOfGridExceptionvoid setCellValue(int x,
int y,
short value)
throws OutOfGridException
OutOfGridExceptionvoid setCellValue(int x,
int y,
int value)
throws OutOfGridException
OutOfGridExceptionvoid setCellValue(int x,
int y,
float value)
throws OutOfGridException
OutOfGridExceptionvoid setCellValue(int x,
int y,
double value)
throws OutOfGridException
OutOfGridExceptionvoid add(Grid driver) throws GridException
GridExceptionvoid multiply(double dValue)
throws GridException
GridExceptionvoid setNoDataValue(NoData dNoDataValue)
dNoDataValue - Valor NoDatavoid setNoData(int x,
int y)
RasterFilterList getFilterList()
void setFilterList(RasterFilterList filterList)
filterList - GridCell getGridCell(int iX, int iY) throws GridException
iX - X positioniY - Y positionGridException