Class SimilarityTransformProvider
Object
Formattable
AbstractIdentifiedObject
DefaultOperationMethod
MathTransformProvider
SimilarityTransformProvider
- All Implemented Interfaces:
Serializable,IdentifiedObject,OperationMethod,PROJFormattable
The provider for the "Similarity transformation" (EPSG 9621).
Note that similarity transform is a special case of an Affine transform 2D.
- Author:
- Oscar Fonts
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class MathTransformProvider
MathTransformProvider.Delegate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParameterDescriptor<Double>"Rotation angle of source coordinate reference system axes" EPSG::8614static final ParameterDescriptor<Double>"Scale difference" EPSG::8611static final ParameterDescriptor<Double>"Ordinate 1 of evaluation point in target CRS" EPSG::8621static final ParameterDescriptor<Double>"Ordinate 2 of evaluation point in target CRS" EPSG::8622Fields 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 two-dimensional similarity transform. -
Method Summary
Modifier and TypeMethodDescriptionprotected MathTransformConstructs anAffineTransform2Dmath transform from the specified group of parameter values.Methods inherited from class MathTransformProvider
createDescriptor, createDescriptorGroup, createOptionalDescriptor, doubleValue, ensureValidValues, formatWKT, getOperationType, 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
-
Field Details
-
TRANSLATION_1
"Ordinate 1 of evaluation point in target CRS" EPSG::8621 -
TRANSLATION_2
"Ordinate 2 of evaluation point in target CRS" EPSG::8622 -
SCALE
"Scale difference" EPSG::8611 -
ROTATION
"Rotation angle of source coordinate reference system axes" EPSG::8614
-
-
Constructor Details
-
SimilarityTransformProvider
public SimilarityTransformProvider()Creates a two-dimensional similarity transform.EPSG defines explicitly this transform as 2D.
-
-
Method Details
-
createMathTransform
protected MathTransform createMathTransform(ParameterValueGroup values) throws ParameterNotFoundException Constructs anAffineTransform2Dmath transform from the specified group of parameter values.The similarity transform is a particular case of Affine Transform 2D where:
m00 = SCALE * cos(ROTATION) m01 = SCALE * sin(ROTATION) m02 = TRANSLATION_1 m10 = -m01 m11 = m00 m12 = TRANSLATION_2
- Specified by:
createMathTransformin classMathTransformProvider- Parameters:
values- The group of parameter valuesPARAMETERS.- Returns:
- an
AffineTransform2D. - Throws:
ParameterNotFoundException- if a required parameter was not found.- See Also:
-