Enum Mercator.Variant
- All Implemented Interfaces:
Serializable
,Comparable<Mercator.Variant>
,java.lang.constant.Constable
,ProjectionVariant
- Enclosing class:
- Mercator
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe "Mercator Auxiliary Sphere" projection.Miller projection.The "Mercator (variant A)" projection (one standard parallel).The "Popular Visualisation Pseudo Mercator" projection.The "Mercator (variant C)" projection.The "Mercator (Spherical)" projection.The "Mercator (variant B)" projection (two standard parallels). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEPSG identifier of an operation method for this variant.The expected name pattern of an operation method for this variant.static Mercator.Variant
Returns the enum constant of this type with the specified name.static Mercator.Variant[]
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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.apache.sis.referencing.operation.projection.ProjectionVariant
useAuthalicRadius
-
Enum Constant Details
-
ONE_PARALLEL
The "Mercator (variant A)" projection (one standard parallel). -
TWO_PARALLELS
The "Mercator (variant B)" projection (two standard parallels). -
REGIONAL
The "Mercator (variant C)" projection. -
SPHERICAL
The "Mercator (Spherical)" projection. -
PSEUDO
The "Popular Visualisation Pseudo Mercator" projection. -
AUXILIARY
The "Mercator Auxiliary Sphere" projection. -
MILLER
Miller projection.
-
-
Field Details
-
operationName
Name pattern for this variant. -
identifier
EPSG identifier for this variant. -
spherical
final boolean sphericalWhether spherical case is used.
-
-
Constructor Details
-
Variant
Creates a new enumeration value.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getOperationNamePattern
The expected name pattern of an operation method for this variant.- Specified by:
getOperationNamePattern
in interfaceProjectionVariant
- Returns:
- the operation name pattern for this variant, or
null
if none.
-
getIdentifier
EPSG identifier of an operation method for this variant.- Specified by:
getIdentifier
in interfaceProjectionVariant
- Returns:
- EPSG identifier for this variant, or
null
if none.
-