public class GvrsElementFloat extends GvrsElement
Modifier and Type | Method and Description |
---|---|
float |
getFillValue()
Gets the value that is assigned to all raster cells
that have not been otherwise populated.
|
float |
getMaxValue()
Gets the maximum value specified for the range of this instance.
|
float |
getMinValue()
Gets the minimum value specified for the range of this instance.
|
float |
readValue(GridPoint gridPoint)
Reads a floating-point value from the GVRS raster file.
|
float |
readValue(int row,
int column)
Reads a floating-point value from the GVRS raster file.
|
int |
readValueInt(GridPoint gridPoint)
Reads an integer value from the GVRS raster file.
|
int |
readValueInt(int row,
int column)
Read an integer value from the GvrsFile.
|
String |
toString() |
void |
writeValue(GridPoint gridPoint,
float value)
Write a floating-point value to the GVRS raster file.
|
void |
writeValue(int row,
int col,
float value)
Write a floating-point value to the GVRS raster file.
|
void |
writeValueInt(GridPoint gridPoint,
int value)
Write an integer value in the GVRS raster file.
|
void |
writeValueInt(int row,
int column,
int value)
Write an integer value in the GVRS raster file.
|
getDataType, getDescription, getLabel, getName, getUnitOfMeasure, isContinuous, readBlock, readBlockInt
public int readValueInt(int row, int column) throws IOException
readValueInt
in class GvrsElement
row
- a positive value in the range defined by the file
specifications.column
- a positive value in the range defined by the file
specifications.IOException
- in the event of a non-recoverable I/O exception.public int readValueInt(GridPoint gridPoint) throws IOException
GvrsElement
readValueInt
in class GvrsElement
gridPoint
- a valid instanceIOException
- in the event of a non-recoverable I/O exception.public void writeValueInt(int row, int column, int value) throws IOException
GvrsElement
The value GvrsFileConstants.NULL_DATA_CODE is reserved for the representation of null data.
writeValueInt
in class GvrsElement
row
- a positive value in the range defined by the file
specifications.column
- a positive value in the range defined by the file
specifications.value
- an integer value.IOException
- in the event of an unrecoverable I/O exception.public float readValue(GridPoint gridPoint) throws IOException
GvrsElement
readValue
in class GvrsElement
gridPoint
- a valid instanceIOException
- in the event of a non-recoverable I/O exception.public float readValue(int row, int column) throws IOException
GvrsElement
readValue
in class GvrsElement
row
- a positive value in the range defined by the file
specifications.column
- a positive value in the range defined by the file
specifications.IOException
- in the event of a non-recoverable I/O exception.public void writeValue(int row, int col, float value) throws IOException
GvrsElement
The value Float.NaN is reserved for the representation of null data.
writeValue
in class GvrsElement
row
- a positive value in the range defined by the file
specifications.col
- a positive value in the range defined by the file
specifications.value
- an floating-point value.IOException
- in the event of an unrecoverable I/O exception.public void writeValue(GridPoint gridPoint, float value) throws IOException
GvrsElement
The value Float.NaN is reserved for the representation of null data.
writeValue
in class GvrsElement
gridPoint
- a valid instance giving coordinates within
the limits of the grid.value
- an floating-point value.IOException
- in the event of an unrecoverable I/O exception.public void writeValueInt(GridPoint gridPoint, int value) throws IOException
GvrsElement
The value GvrsFileConstants.NULL_DATA_CODE is reserved for the representation of null data.
writeValueInt
in class GvrsElement
gridPoint
- a valid instance giving coordinates within the dimensions
of the grid.value
- an integer value.IOException
- in the event of an unrecoverable I/O exception.public String toString()
toString
in class GvrsElement
public float getFillValue()
The fill value is not required to be within the range specified by the minimum and maximum values.
public float getMaxValue()
public float getMinValue()
Copyright © 2022. All rights reserved.