public class GridCoverageBuilder.Variable extends Object
GridCoverageBuilder.newVariable(java.lang.CharSequence, javax.measure.Unit<?>)
.Modifier | Constructor and Description |
---|---|
protected |
Variable(CharSequence name,
Unit<?> units)
Creates a new variable of the given name and units.
|
Modifier and Type | Method and Description |
---|---|
void |
addNodataValue(CharSequence name,
int value)
Adds a "nodata" value.
|
GridSampleDimension |
getSampleDimension()
Returns a sample dimension for the current range of sample values.
|
String |
toString()
Returns a string representation of this variable.
|
protected Variable(CharSequence name, Unit<?> units)
name
- The variable name, or null
for a default name.units
- The variable units, or null
if unknown.GridCoverageBuilder.newVariable(java.lang.CharSequence, javax.measure.Unit<?>)
public void addNodataValue(CharSequence name, int value) throws IllegalArgumentException
name
- The name for the "nodata" value.value
- The pixel value to assign to "nodata".IllegalArgumentException
- if the given pixel value is already assigned.public GridSampleDimension getSampleDimension()
Copyright © 1996–2019 Geotools. All rights reserved.