Enum Class AreaUnitId

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

public enum AreaUnitId extends Enum<AreaUnitId>
Defines a list of the most commonly-used units of area measurement. These values can be used to create instances of AreaUnit, 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 an area 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

    • HECTARES

      public static final AreaUnitId HECTARES
      Indicates an area measurement in hectares. This unit has a WKID of 109401.
    • ACRES

      public static final AreaUnitId ACRES
      Indicates an area measurement in acres. This unit has a WKID of 109402.
    • SQUARE_METERS

      public static final AreaUnitId SQUARE_METERS
      Indicates an area measurement in square meters. This unit has a WKID of 109404.
    • SQUARE_FEET

      public static final AreaUnitId SQUARE_FEET
      Indicates an area measurement in square feet. This unit has a WKID of 109405.
    • SQUARE_KILOMETERS

      public static final AreaUnitId SQUARE_KILOMETERS
      Indicates an area measurement in square kilometers. This unit has a WKID of 109414.
    • SQUARE_MILES

      public static final AreaUnitId SQUARE_MILES
      Indicates an area measurement in square statute miles. This unit has a WKID of 109439.
    • SQUARE_YARDS

      public static final AreaUnitId SQUARE_YARDS
      Indicates an area measurement in square yards. This unit has a WKID of 109442.
    • SQUARE_DECIMETERS

      public static final AreaUnitId SQUARE_DECIMETERS
      Indicates an area measurement in square decimeters. This unit has a WKID of 109450.
    • SQUARE_CENTIMETERS

      public static final AreaUnitId SQUARE_CENTIMETERS
      Indicates an area measurement in square centimeters. This unit has a WKID of 109451.
    • SQUARE_MILLIMETERS

      public static final AreaUnitId SQUARE_MILLIMETERS
      Indicates an area measurement in square millimeters. This unit has a WKID of 109452.
    • OTHER

      public static final AreaUnitId OTHER
      Indicates that the unit of area measurement is a custom unit, or a unit not listed in the enumerated type.

      This value may be returned from an AreaUnit 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 AreaUnitId[] 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 AreaUnitId 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