- All Implemented Interfaces:
Serializable
,Comparable<LinearUnitId>
,Constable
Defines a list of the most commonly-used units of linear measurement. These values can be used to create instances
of
LinearUnit
, as an alternative to using well-known IDs (WKIDs).
In addition to the units in this enumeration, you can also use less commonly-used units, by passing a WKID of a
linear unit to the inherited Unit.fromWkid(int)
factory method. The supported WKIDs are documented in the
'Projected coordinate systems' table in the developer Guide.
- Since:
- 100.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates a linear measurement in centimeters.Indicates a linear measurement in feet.Indicates a linear measurement in inches.Indicates a linear measurement in kilometers.Indicates a linear measurement in meters.Indicates a linear measurement in statute miles.Indicates a linear measurement in millimeters.Indicates a linear measurement in nautical miles.Indicates that the unit of linear measurement is a custom unit, or is a unit not listed in the enumerated type.Indicates a linear measurement in yards. -
Method Summary
Modifier and TypeMethodDescriptionstatic LinearUnitId
Returns the enum constant of this class with the specified name.static LinearUnitId[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FEET
Indicates a linear measurement in feet. This unit has a WKID of 9002. -
INCHES
Indicates a linear measurement in inches. This unit has a WKID of 109008. -
KILOMETERS
Indicates a linear measurement in kilometers. This unit has a WKID of 9036. -
METERS
Indicates a linear measurement in meters. This unit has a WKID of 9001. -
MILLIMETERS
Indicates a linear measurement in millimeters. This unit has a WKID of 1025. -
MILES
Indicates a linear measurement in statute miles. This unit has a WKID of 9093. -
NAUTICAL_MILES
Indicates a linear measurement in nautical miles. This unit has a WKID of 9030. -
YARDS
Indicates a linear measurement in yards. This unit has a WKID of 9096. -
CENTIMETERS
Indicates a linear measurement in centimeters. This unit has a WKID of 1033. -
OTHER
Indicates that the unit of linear measurement is a custom unit, or is a unit not listed in the enumerated type.This value may be returned from a
LinearUnit
created from a WKID of a less commonly used unit of measurement that does not have an equivalent value in this enumeration. SeeUnit.getWkid()
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-