Package org.geotools.coverage.grid
Class GridCoverageBuilder.Variable
Object
Variable
- Enclosing class:
- GridCoverageBuilder
A variable to be mapped to a sample dimension. Variables are created by
GridCoverageBuilder.newVariable(java.lang.CharSequence, javax.measure.Unit<?>)
.- Since:
- 2.5
- Author:
- Martin Desruisseaux
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Variable
(CharSequence name, Unit<?> units) Creates a new variable of the given name and units. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNodataValue
(CharSequence name, int value) Adds a "nodata" value.Returns a sample dimension for the current range of sample values.toString()
Returns a string representation of this variable.
-
Constructor Details
-
Variable
Creates a new variable of the given name and units.- Parameters:
name
- The variable name, ornull
for a default name.units
- The variable units, ornull
if unknown.- See Also:
-
-
Method Details
-
addNodataValue
Adds a "nodata" value.- Parameters:
name
- The name for the "nodata" value.value
- The pixel value to assign to "nodata".- Throws:
IllegalArgumentException
- if the given pixel value is already assigned.
-
getSampleDimension
Returns a sample dimension for the current range of sample values. -
toString
Returns a string representation of this variable.
-