Class MissingSourceDimensionsException

All Implemented Interfaces:
Serializable

public class MissingSourceDimensionsException extends OperationNotFoundException
Thrown when a coordinate operation cannot be find because some dimensions are missing in the source CRS. The missing dimensions are identified by the directions of the missing axes. For example, if the coordinate system of the source CRS does not have a temporal axis which was requested by the target CRS, then the get­Missing­Axes() should contain Axis­Direction​.FUTURE or Axis­Direction​.PAST.
Since:
1.6
See Also:
  • Constructor Details

    • MissingSourceDimensionsException

      public MissingSourceDimensionsException()
      Constructs a new exception with no message.
    • MissingSourceDimensionsException

      public MissingSourceDimensionsException(String message)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - the detail message, or null if none.
    • MissingSourceDimensionsException

      public MissingSourceDimensionsException(String message, Throwable cause)
      Constructs a new exception with the specified detail message and cause.
      Parameters:
      message - the detail message, or null if none.
      cause - the cause, or null if none.
  • Method Details

    • addMissing

      public void addMissing(AxisDirection direction)
      Indicates which dimension was missing, specified as an axis direction.
      Parameters:
      direction - direction of the missing axis.
    • getMissingAxes

      public Set<AxisDirection> getMissingAxes()
      Indices which axes were missing in the source coordinate system. The returned set does not need to be exhaustive and may be empty if this information is not available.
      Returns:
      directions of axes that are missing in the source coordinate system.