Class MathTransformsOrFactory.Specified

java.lang.Object
org.apache.sis.internal.referencing.MathTransformsOrFactory
org.apache.sis.internal.referencing.MathTransformsOrFactory.Specified
Enclosing class:
MathTransformsOrFactory

private static final class MathTransformsOrFactory.Specified extends MathTransformsOrFactory
A MathTransformsOrFactory implementation which delegate method calls to a MathTransformFactory specified by the user.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.opengis.referencing.operation.MathTransformFactory
    The factory where to delegate method calls.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Specified(org.opengis.referencing.operation.MathTransformFactory factory)
    Creates a new instance delegating transform creations to the given factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opengis.referencing.operation.MathTransform
    concatenate(org.opengis.referencing.operation.MathTransform tr, org.opengis.referencing.operation.MathTransform other)
    Delegate to MathTransformFactory.createConcatenatedTransform(MathTransform, MathTransform).
    org.opengis.referencing.operation.MathTransform
    linear(org.opengis.referencing.operation.Matrix matrix)
    Delegate to MathTransformFactory.createAffineTransform(Matrix).
    org.opengis.referencing.operation.MathTransform
    passThrough(int firstAffectedCoordinate, org.opengis.referencing.operation.MathTransform subTransform, int numTrailingCoordinates)
    Delegate to MathTransformFactory.createPassThroughTransform(int, MathTransform, int).

    Methods inherited from class org.apache.sis.internal.referencing.MathTransformsOrFactory

    concatenate, wrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • factory

      private final org.opengis.referencing.operation.MathTransformFactory factory
      The factory where to delegate method calls.
  • Constructor Details

    • Specified

      Specified(org.opengis.referencing.operation.MathTransformFactory factory)
      Creates a new instance delegating transform creations to the given factory.
  • Method Details

    • linear

      public org.opengis.referencing.operation.MathTransform linear(org.opengis.referencing.operation.Matrix matrix) throws org.opengis.util.FactoryException
      Delegate to MathTransformFactory.createAffineTransform(Matrix).
      Overrides:
      linear in class MathTransformsOrFactory
      Parameters:
      matrix - the matrix used to define the linear transform.
      Returns:
      the linear (usually affine) transform.
      Throws:
      org.opengis.util.FactoryException - if a factory is wrapped and cannot perform the operation.
    • passThrough

      public org.opengis.referencing.operation.MathTransform passThrough(int firstAffectedCoordinate, org.opengis.referencing.operation.MathTransform subTransform, int numTrailingCoordinates) throws org.opengis.util.FactoryException
      Delegate to MathTransformFactory.createPassThroughTransform(int, MathTransform, int).
      Overrides:
      passThrough in class MathTransformsOrFactory
      Parameters:
      firstAffectedCoordinate - index of the first affected coordinate.
      subTransform - the sub-transform to apply on modified coordinates.
      numTrailingCoordinates - number of trailing coordinates to pass through.
      Returns:
      a pass-through transform, potentially as a PassThroughTransform instance but not necessarily.
      Throws:
      org.opengis.util.FactoryException - if a factory is wrapped and cannot perform the operation.
    • concatenate

      public org.opengis.referencing.operation.MathTransform concatenate(org.opengis.referencing.operation.MathTransform tr, org.opengis.referencing.operation.MathTransform other) throws org.opengis.util.FactoryException
      Delegate to MathTransformFactory.createConcatenatedTransform(MathTransform, MathTransform).
      Overrides:
      concatenate in class MathTransformsOrFactory
      Parameters:
      tr - the first math transform.
      other - the second math transform.
      Returns:
      the concatenated transform.
      Throws:
      org.opengis.util.FactoryException - if a factory is wrapped and cannot perform the operation.