public enum RasterType extends Enum<RasterType> implements Enumeration
Raster
dataset.RasterAttributes
,
Rasters and Filtering topicEnum Constant and Description |
---|
BYTE
Each value contained within a band can be represented with a byte.
|
DOUBLE
Each value contained within a band can be represented with a double.
|
FLOAT
Each value contained within a band can be represented with a float.
|
INT
Each value contained within a band can be represented with an int.
|
SHORT
Each value contained within a band can be represented with a short.
|
UNSIGNED_BYTE
Each value contained within a band can be represented with an unsigned byte.
|
UNSIGNED_INT
Each value contained within a band can be represented with an unsigned int.
|
UNSIGNED_SHORT
Each value contained within a band can be represented with an unsigned short.
|
Modifier and Type | Method and Description |
---|---|
static RasterType |
getDefault()
Get the enum constant that is considered to be the default.
|
static RasterType |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static RasterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RasterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RasterType UNSIGNED_BYTE
public static final RasterType BYTE
public static final RasterType UNSIGNED_SHORT
public static final RasterType SHORT
public static final RasterType UNSIGNED_INT
public static final RasterType INT
public static final RasterType FLOAT
public static final RasterType DOUBLE
public static RasterType[] values()
for (RasterType c : RasterType.values()) System.out.println(c);
public static RasterType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface Enumeration
@Nonnull public static RasterType getFromValue(int value)
value
- a numeric value.@Nonnull public static RasterType getDefault()