Enum CoordinateFormatter.MgrsConversionMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUTOMATIC
      The choice of MGRS lettering scheme is based on the datum and ellipsoid of the spatial reference provided.
      NEW_180_IN_ZONE_01
      The MGRS notation uses the new lettering scheme (AA scheme) and, when converted, places points with longitude of 180 degrees in zone 01.
      NEW_180_IN_ZONE_60
      The MGRS notation uses the new lettering scheme (AA scheme) and, when converted, places points with longitude of 180 degrees in zone 60.
      OLD_180_IN_ZONE_01
      The MGRS notation uses the old lettering scheme (AL scheme) and, when converted, places points with longitude of 180 degrees in zone 01.
      OLD_180_IN_ZONE_60
      The MGRS notation uses the old lettering scheme (AL scheme) and, when converted, places points with longitude of 180 degrees in zone 60.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CoordinateFormatter.MgrsConversionMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CoordinateFormatter.MgrsConversionMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AUTOMATIC

        public static final CoordinateFormatter.MgrsConversionMode AUTOMATIC
        The choice of MGRS lettering scheme is based on the datum and ellipsoid of the spatial reference provided. Spatial references with new datums (e.g. WGS84) assume new lettering scheme (AA scheme). This is equivalent to NEW_180_IN_ZONE_60. Spatial references with older datums (e.g. Clarke 1866, Bessel 1841, Clarke 1880) assume old lettering scheme (AL scheme). This is equivalent to OLD_180_IN_ZONE_60. When converted, points with longitude of exactly 180 degrees are placed in in zone 60.
        Since:
        100.1.0
      • NEW_180_IN_ZONE_01

        public static final CoordinateFormatter.MgrsConversionMode NEW_180_IN_ZONE_01
        The MGRS notation uses the new lettering scheme (AA scheme) and, when converted, places points with longitude of 180 degrees in zone 01.
        Since:
        100.1.0
      • NEW_180_IN_ZONE_60

        public static final CoordinateFormatter.MgrsConversionMode NEW_180_IN_ZONE_60
        The MGRS notation uses the new lettering scheme (AA scheme) and, when converted, places points with longitude of 180 degrees in zone 60.
        Since:
        100.1.0
      • OLD_180_IN_ZONE_01

        public static final CoordinateFormatter.MgrsConversionMode OLD_180_IN_ZONE_01
        The MGRS notation uses the old lettering scheme (AL scheme) and, when converted, places points with longitude of 180 degrees in zone 01.
        Since:
        100.1.0
      • OLD_180_IN_ZONE_60

        public static final CoordinateFormatter.MgrsConversionMode OLD_180_IN_ZONE_60
        The MGRS notation uses the old lettering scheme (AL scheme) and, when converted, places points with longitude of 180 degrees in zone 60.
        Since:
        100.1.0
    • Method Detail

      • values

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

        public static CoordinateFormatter.MgrsConversionMode valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null