Class SimilarityTransformProvider
- Object
-
- Formattable
-
- AbstractIdentifiedObject
-
- DefaultOperationMethod
-
- MathTransformProvider
-
- SimilarityTransformProvider
-
- All Implemented Interfaces:
Serializable
,IdentifiedObject
,OperationMethod
public class SimilarityTransformProvider extends MathTransformProvider
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class MathTransformProvider
MathTransformProvider.Delegate
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterDescriptor<Double>
ROTATION
"Rotation angle of source coordinate reference system axes" EPSG::8614static ParameterDescriptor<Double>
SCALE
"Scale difference" EPSG::8611static ParameterDescriptor<Double>
TRANSLATION_1
"Ordinate 1 of evaluation point in target CRS" EPSG::8621static ParameterDescriptor<Double>
TRANSLATION_2
"Ordinate 2 of evaluation point in target CRS" EPSG::8622-
Fields inherited from class DefaultOperationMethod
sourceDimensions, targetDimensions
-
Fields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
-
Fields inherited from class Formattable
SINGLE_LINE
-
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
Fields inherited from interface OperationMethod
FORMULA_KEY
-
-
Constructor Summary
Constructors Constructor Description SimilarityTransformProvider()
Creates a two-dimensional similarity transform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MathTransform
createMathTransform(ParameterValueGroup values)
Constructs anAffineTransform2D
math transform from the specified group of parameter values.-
Methods inherited from class MathTransformProvider
createDescriptor, createDescriptorGroup, createOptionalDescriptor, doubleValue, ensureValidValues, formatWKT, getOperationType, getParameter, intValue, stringValue, toMap, value
-
Methods inherited from class DefaultOperationMethod
checkDimensions, equals, getFormula, getParameters, getSourceDimensions, getTargetDimensions, hashCode
-
Methods 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, nameMatches
-
Methods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
-
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
-
-
-
Field Detail
-
TRANSLATION_1
public static final ParameterDescriptor<Double> TRANSLATION_1
"Ordinate 1 of evaluation point in target CRS" EPSG::8621
-
TRANSLATION_2
public static final ParameterDescriptor<Double> TRANSLATION_2
"Ordinate 2 of evaluation point in target CRS" EPSG::8622
-
SCALE
public static final ParameterDescriptor<Double> SCALE
"Scale difference" EPSG::8611
-
ROTATION
public static final ParameterDescriptor<Double> ROTATION
"Rotation angle of source coordinate reference system axes" EPSG::8614
-
-
Method Detail
-
createMathTransform
protected MathTransform createMathTransform(ParameterValueGroup values) throws ParameterNotFoundException
Constructs anAffineTransform2D
math 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:
createMathTransform
in classMathTransformProvider
- Parameters:
values
- The group of parameter valuesPARAMETERS
.- Returns:
- an
AffineTransform2D
. - Throws:
ParameterNotFoundException
- if a required parameter was not found.- See Also:
MathTransformProvider.Delegate
-
-