Enum Class LinearUnitId

java.lang.Object
java.lang.Enum<LinearUnitId>
com.esri.arcgisruntime.geometry.LinearUnitId
All Implemented Interfaces:
Serializable, Comparable<LinearUnitId>, Constable

public enum LinearUnitId extends Enum<LinearUnitId>
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:
  • Enum Constant Details

    • FEET

      public static final LinearUnitId FEET
      Indicates a linear measurement in feet. This unit has a WKID of 9002.
    • INCHES

      public static final LinearUnitId INCHES
      Indicates a linear measurement in inches. This unit has a WKID of 109008.
    • KILOMETERS

      public static final LinearUnitId KILOMETERS
      Indicates a linear measurement in kilometers. This unit has a WKID of 9036.
    • METERS

      public static final LinearUnitId METERS
      Indicates a linear measurement in meters. This unit has a WKID of 9001.
    • MILLIMETERS

      public static final LinearUnitId MILLIMETERS
      Indicates a linear measurement in millimeters. This unit has a WKID of 1025.
    • MILES

      public static final LinearUnitId MILES
      Indicates a linear measurement in statute miles. This unit has a WKID of 9093.
    • NAUTICAL_MILES

      public static final LinearUnitId NAUTICAL_MILES
      Indicates a linear measurement in nautical miles. This unit has a WKID of 9030.
    • YARDS

      public static final LinearUnitId YARDS
      Indicates a linear measurement in yards. This unit has a WKID of 9096.
    • CENTIMETERS

      public static final LinearUnitId CENTIMETERS
      Indicates a linear measurement in centimeters. This unit has a WKID of 1033.
    • OTHER

      public static final LinearUnitId 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. See Unit.getWkid().

  • Method Details

    • values

      public static LinearUnitId[] 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

      public static LinearUnitId valueOf(String name)
      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 name
      NullPointerException - if the argument is null