Class ProjectiveTransform.ProviderAffine
- All Implemented Interfaces:
Serializable,IdentifiedObject,OperationMethod,PROJFormattable
- Enclosing class:
- ProjectiveTransform
The provider for the "Affine general parametric transformation" (EPSG 9624). The OGC's name is
"Affine". The default matrix size is
3×3.
Note that affine transform is a special case of projective transform.
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class MathTransformProvider
MathTransformProvider.Delegate -
Field Summary
Fields inherited from class DefaultOperationMethod
sourceDimensions, targetDimensionsFields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATORFields inherited from class Formattable
SINGLE_LINEFields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface OperationMethod
FORMULA_KEY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a provider for affine transform with a default matrix size. -
Method Summary
Modifier and TypeMethodDescriptionprotected MathTransformCreates a projective transform from the specified group of parameter values.Returns the operation type.getProvider(int sourceDimensions, int targetDimensions) Returns the operation method for the specified source and target dimensions.Methods inherited from class MathTransformProvider
createDescriptor, createDescriptorGroup, createOptionalDescriptor, doubleValue, ensureValidValues, formatWKT, getParameter, intValue, stringValue, toMap, valueMethods inherited from class DefaultOperationMethod
checkDimensions, equals, formatPROJ, getFormula, getParameters, getSourceDimensions, getTargetDimensions, hashCodeMethods inherited from class AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatchesMethods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTMethods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Constructor Details
-
ProviderAffine
public ProviderAffine()Creates a provider for affine transform with a default matrix size.
-
-
Method Details
-
getOperationType
Returns the operation type.- Overrides:
getOperationTypein classMathTransformProvider- Returns:
- The GeoAPI interface implemented by this operation.
-
createMathTransform
protected MathTransform createMathTransform(ParameterValueGroup values) throws ParameterNotFoundException Creates a projective transform from the specified group of parameter values.- Specified by:
createMathTransformin classMathTransformProvider- Parameters:
values- The group of parameter values.- Returns:
- The created math transform.
- Throws:
ParameterNotFoundException- if a required parameter was not found.- See Also:
-
getProvider
public static ProjectiveTransform.ProviderAffine getProvider(int sourceDimensions, int targetDimensions) Returns the operation method for the specified source and target dimensions. This method provides different methods for different matrix sizes.- Parameters:
sourceDimensions- The number of source dimensions.targetDimensions- The number of target dimensions.- Returns:
- The provider for transforms of the given source and target dimensions.
-