- All Implemented Interfaces:
Serializable
,Comparable<CalculationType>
,Constable
The kind of calculation that produced the
DirectPosition
s being compared.
This enumeration is expected by all assertCoordinateEquals(…)
methods in the
TransformTestCase
class. The enumeration values are consumed by the following
methods:
TransformTestCase.normalize(DirectPosition, DirectPosition, CalculationType)
ToleranceModifier.adjust(double[], DirectPosition, CalculationType)
ToleranceModifier
implementations to know when such conversion is needed.- Since:
- 3.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe coordinate values to compare are the result of a direct operation performed by the transform to test.The coordinate values to compare are the result of an identity operation (a plain copy).The coordinate values to compare are the result of an inverse transform.The numbers to compare is a column of a transform derivative. -
Method Summary
Modifier and TypeMethodDescriptionstatic CalculationType
Returns the enum constant of this class with the specified name.static CalculationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDENTITY
The coordinate values to compare are the result of an identity operation (a plain copy). Coordinate values are checked for strict equality. -
DIRECT_TRANSFORM
The coordinate values to compare are the result of a direct operation performed by the transform to test. -
INVERSE_TRANSFORM
The coordinate values to compare are the result of an inverse transform. -
TRANSFORM_DERIVATIVE
The numbers to compare is a column of a transform derivative. Each column of the derivative matrix is the displacement in the target CRS when an coordinate value in the source CRS is increased by one. Those derivative values are comparable to the target coordinate values: they use the same units in the same order. Consequently in case of doubt, implementers can use the same policy than forDIRECT_TRANSFORM
.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-