Class MathTransformsOrFactory.Specified
java.lang.Object
org.apache.sis.internal.referencing.MathTransformsOrFactory
org.apache.sis.internal.referencing.MathTransformsOrFactory.Specified
- Enclosing class:
- MathTransformsOrFactory
A
MathTransformsOrFactory implementation which delegate method calls to a MathTransformFactory
specified by the user.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.opengis.referencing.operation.MathTransformFactoryThe factory where to delegate method calls. -
Constructor Summary
ConstructorsConstructorDescriptionSpecified(org.opengis.referencing.operation.MathTransformFactory factory) Creates a new instance delegating transform creations to the given factory. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.operation.MathTransformconcatenate(org.opengis.referencing.operation.MathTransform tr, org.opengis.referencing.operation.MathTransform other) Delegate toMathTransformFactory.createConcatenatedTransform(MathTransform, MathTransform).org.opengis.referencing.operation.MathTransformlinear(org.opengis.referencing.operation.Matrix matrix) Delegate toMathTransformFactory.createAffineTransform(Matrix).org.opengis.referencing.operation.MathTransformpassThrough(int firstAffectedCoordinate, org.opengis.referencing.operation.MathTransform subTransform, int numTrailingCoordinates) Delegate toMathTransformFactory.createPassThroughTransform(int, MathTransform, int).Methods inherited from class org.apache.sis.internal.referencing.MathTransformsOrFactory
concatenate, wrap
-
Field Details
-
factory
private final org.opengis.referencing.operation.MathTransformFactory factoryThe 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 toMathTransformFactory.createAffineTransform(Matrix).- Overrides:
linearin classMathTransformsOrFactory- 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 toMathTransformFactory.createPassThroughTransform(int, MathTransform, int).- Overrides:
passThroughin classMathTransformsOrFactory- 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
PassThroughTransforminstance 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 toMathTransformFactory.createConcatenatedTransform(MathTransform, MathTransform).- Overrides:
concatenatein classMathTransformsOrFactory- 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.
-