Enum Unit

  • All Implemented Interfaces:
    Serializable, Comparable<Unit>

    public enum Unit
    extends Enum<Unit>
    List of UOM is created from ESG database with the following code : SELECT rpad(upper(regexp_replace(unit_of_meas_name,'[ ''\\(\\)-]+','_','g')), 16) || '(' || rpad('"' || unit_of_meas_name || '"', 32, ' ') || ', ' || uom_code::text || ', ' || rpad(upper(unit_of_meas_type), 6) || ', ' || rpad((coalesce(factor_b,0)/coalesce(factor_c,1))::text, 21, ' ') || ', ' || '"m"' || '),' FROM epsg_unitofmeasure WHERE deprecated = 0 AND unit_of_meas_type IN ('length','angle') AND uom_code > 9000 ORDER BY uom_code Some handwriting reformatting/correction are necessary though Some abbreviations have been found in http://w3.energistics.org/uom/poscUnits22.xml
    • Enum Constant Detail

      • UNKNOWN

        public static final Unit UNKNOWN
      • METRE

        public static final Unit METRE
      • FOOT

        public static final Unit FOOT
      • US_SURVEY_FOOT

        public static final Unit US_SURVEY_FOOT
      • CLARKE_S_FOOT

        public static final Unit CLARKE_S_FOOT
      • FATHOM

        public static final Unit FATHOM
      • NAUTICAL_MILE

        public static final Unit NAUTICAL_MILE
      • GERMAN_METER

        public static final Unit GERMAN_METER
      • US_SURVEY_CHAIN

        public static final Unit US_SURVEY_CHAIN
      • US_SURVEY_LINK

        public static final Unit US_SURVEY_LINK
      • US_SURVEY_MILE

        public static final Unit US_SURVEY_MILE
      • KILOMETRE

        public static final Unit KILOMETRE
      • CLARKE_S_YARD

        public static final Unit CLARKE_S_YARD
      • CLARKE_S_CHAIN

        public static final Unit CLARKE_S_CHAIN
      • CLARKE_S_LINK

        public static final Unit CLARKE_S_LINK
      • SEARS_YARD

        public static final Unit SEARS_YARD
      • SEARS_FOOT

        public static final Unit SEARS_FOOT
      • SEARS_CHAIN

        public static final Unit SEARS_CHAIN
      • SEARS_LINK

        public static final Unit SEARS_LINK
      • BENOIT_YARD_A

        public static final Unit BENOIT_YARD_A
      • BENOIT_FOOT_A

        public static final Unit BENOIT_FOOT_A
      • BENOIT_CHAIN_A

        public static final Unit BENOIT_CHAIN_A
      • BENOIT_LINK_A

        public static final Unit BENOIT_LINK_A
      • BENOIT_YARD_B

        public static final Unit BENOIT_YARD_B
      • BENOIT_FOOT_B

        public static final Unit BENOIT_FOOT_B
      • BENOIT_CHAIN_B

        public static final Unit BENOIT_CHAIN_B
      • BENOIT_LINK_B

        public static final Unit BENOIT_LINK_B
      • BRITISH_FOOT_65

        public static final Unit BRITISH_FOOT_65
      • INDIAN_FOOT

        public static final Unit INDIAN_FOOT
      • INDIAN_FOOT_1937

        public static final Unit INDIAN_FOOT_1937
      • INDIAN_FOOT_1962

        public static final Unit INDIAN_FOOT_1962
      • INDIAN_FOOT_1975

        public static final Unit INDIAN_FOOT_1975
      • INDIAN_YARD

        public static final Unit INDIAN_YARD
      • INDIAN_YARD_1937

        public static final Unit INDIAN_YARD_1937
      • INDIAN_YARD_1962

        public static final Unit INDIAN_YARD_1962
      • INDIAN_YARD_1975

        public static final Unit INDIAN_YARD_1975
      • STATUTE_MILE

        public static final Unit STATUTE_MILE
      • GOLD_COAST_FOOT

        public static final Unit GOLD_COAST_FOOT
      • BRITISH_FOOT_36

        public static final Unit BRITISH_FOOT_36
      • YARD

        public static final Unit YARD
      • CHAIN

        public static final Unit CHAIN
      • LINK

        public static final Unit LINK
      • SEARS_YARD_TR

        public static final Unit SEARS_YARD_TR
      • RADIAN

        public static final Unit RADIAN
      • DEGREE

        public static final Unit DEGREE
      • ARC_MINUTE

        public static final Unit ARC_MINUTE
      • ARC_SECOND

        public static final Unit ARC_SECOND
      • GRAD

        public static final Unit GRAD
      • DMS

        public static final Unit DMS
      • DMSH

        public static final Unit DMSH
      • MICRORADIAN

        public static final Unit MICRORADIAN
      • SEXAGESIMAL_DMS

        public static final Unit SEXAGESIMAL_DMS
      • SEXAGESIMAL_DM

        public static final Unit SEXAGESIMAL_DM
      • CENTESIMAL_MIN

        public static final Unit CENTESIMAL_MIN
      • CENTESIMAL_SEC

        public static final Unit CENTESIMAL_SEC
      • MIL_6400

        public static final Unit MIL_6400
      • DEGREE_MINUTE

        public static final Unit DEGREE_MINUTE
      • DEGREE_HEM

        public static final Unit DEGREE_HEM
      • HEM_DEGREE

        public static final Unit HEM_DEGREE
      • DMH

        public static final Unit DMH
      • HDM

        public static final Unit HDM
      • HDMS

        public static final Unit HDMS
      • SEXA_DMS_S

        public static final Unit SEXA_DMS_S
      • DEGREE_SUPPLIER_

        public static final Unit DEGREE_SUPPLIER_
      • SEARS_FOOT_TR

        public static final Unit SEARS_FOOT_TR
      • SEARS_CHAIN_TR

        public static final Unit SEARS_CHAIN_TR
      • SEARS_LINK_TR

        public static final Unit SEARS_LINK_TR
    • Method Detail

      • values

        public static Unit[] 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 (Unit c : Unit.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Unit 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 name
        NullPointerException - if the argument is null
      • find

        public static Unit find​(String nameOrCode)