Enum Class CalculationType

Object
Enum<CalculationType>
CalculationType
All Implemented Interfaces:
Serializable, Comparable<CalculationType>, Constable

public enum CalculationType extends Enum<CalculationType>
The kind of calculation that produced the DirectPositions being compared. This enumeration is expected by all assertCoordinateEquals(…) methods in the TransformTestCase class. The enumeration values are consumed by the following methods: For example, if a precision of 10 centimetres is requested for a map projection, then that tolerance threshold must be converted from metres to decimal degrees (approximately 1E-6°) when testing the reverse projection. This enumeration allows ToleranceModifier implementations to know when such conversion is needed.
Since:
3.1
  • Enum Constant Details

    • IDENTITY

      public static final CalculationType 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

      public static final CalculationType DIRECT_TRANSFORM
      The coordinate values to compare are the result of a direct operation performed by the transform to test.
    • INVERSE_TRANSFORM

      public static final CalculationType INVERSE_TRANSFORM
      The coordinate values to compare are the result of an inverse transform.
    • TRANSFORM_DERIVATIVE

      public static final CalculationType 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 for DIRECT_TRANSFORM.
  • Field Details

  • Method Details

    • values

      public static CalculationType[] 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

      public static CalculationType valueOf(String name)
      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 name
      NullPointerException - if the argument is null