Enum Mercator.Variant

java.lang.Object
java.lang.Enum<Mercator.Variant>
org.apache.sis.referencing.operation.projection.Mercator.Variant
All Implemented Interfaces:
Serializable, Comparable<Mercator.Variant>, java.lang.constant.Constable, ProjectionVariant
Enclosing class:
Mercator

private static enum Mercator.Variant extends Enum<Mercator.Variant> implements ProjectionVariant
Variants of Mercator projection. Those variants modify the way the projections are constructed (e.g. in the way parameters are interpreted), but formulas are basically the same after construction. Those variants are not exactly the same than variants A, B and C used by EPSG, but they are related.

We do not provide such codes in public API because they duplicate the functionality of OperationMethod instances. We use them only for constructors convenience.

  • Enum Constant Details

    • ONE_PARALLEL

      public static final Mercator.Variant ONE_PARALLEL
      The "Mercator (variant A)" projection (one standard parallel).
    • TWO_PARALLELS

      public static final Mercator.Variant TWO_PARALLELS
      The "Mercator (variant B)" projection (two standard parallels).
    • REGIONAL

      public static final Mercator.Variant REGIONAL
      The "Mercator (variant C)" projection.
    • SPHERICAL

      public static final Mercator.Variant SPHERICAL
      The "Mercator (Spherical)" projection.
    • PSEUDO

      public static final Mercator.Variant PSEUDO
      The "Popular Visualisation Pseudo Mercator" projection.
    • AUXILIARY

      public static final Mercator.Variant AUXILIARY
      The "Mercator Auxiliary Sphere" projection.
    • MILLER

      public static final Mercator.Variant MILLER
      Miller projection.
  • Field Details

    • operationName

      private final Pattern operationName
      Name pattern for this variant.
    • identifier

      private final String identifier
      EPSG identifier for this variant.
    • spherical

      final boolean spherical
      Whether spherical case is used.
  • Constructor Details

    • Variant

      private Variant(String operationName, String identifier, boolean spherical)
      Creates a new enumeration value.
  • Method Details

    • values

      public static Mercator.Variant[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Mercator.Variant 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
    • getOperationNamePattern

      public Pattern getOperationNamePattern()
      The expected name pattern of an operation method for this variant.
      Specified by:
      getOperationNamePattern in interface ProjectionVariant
      Returns:
      the operation name pattern for this variant, or null if none.
    • getIdentifier

      public String getIdentifier()
      EPSG identifier of an operation method for this variant.
      Specified by:
      getIdentifier in interface ProjectionVariant
      Returns:
      EPSG identifier for this variant, or null if none.