Enum GriddedCoverageEncodingType
- java.lang.Object
-
- java.lang.Enum<GriddedCoverageEncodingType>
-
- mil.nga.geopackage.extension.coverage.GriddedCoverageEncodingType
-
- All Implemented Interfaces:
Serializable
,Comparable<GriddedCoverageEncodingType>
public enum GriddedCoverageEncodingType extends Enum<GriddedCoverageEncodingType>
Gridded Coverage grid cell encoding type enumeration- Since:
- 2.0.1
- Author:
- osbornb
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AREA
Assume the entire grid cell has the same valueCENTER
Assume the value is center of grid cell (default)CORNER
A typical use case is for a mesh of elevation values as specified in the OGC CDB standard Clause 5.6.1 (lower left corner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GriddedCoverageEncodingType
fromName(String name)
Get the grid cell encoding from the nameString
getName()
Get the namestatic GriddedCoverageEncodingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GriddedCoverageEncodingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CENTER
public static final GriddedCoverageEncodingType CENTER
Assume the value is center of grid cell (default)
-
AREA
public static final GriddedCoverageEncodingType AREA
Assume the entire grid cell has the same value
-
CORNER
public static final GriddedCoverageEncodingType CORNER
A typical use case is for a mesh of elevation values as specified in the OGC CDB standard Clause 5.6.1 (lower left corner)
-
-
Method Detail
-
values
public static GriddedCoverageEncodingType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GriddedCoverageEncodingType c : GriddedCoverageEncodingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GriddedCoverageEncodingType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
Get the name- Returns:
- name
-
fromName
public static GriddedCoverageEncodingType fromName(String name)
Get the grid cell encoding from the name- Parameters:
name
- name- Returns:
- grid cell encoding type
-
-