org.geotools.referencing.operation.transform
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
Methods inherited from class MathTransformProvider |
createDescriptor, createDescriptorGroup, createOptionalDescriptor, doubleValue, ensureValidValues, formatWKT, getOperationType, getParameter, intValue, stringValue, toMap, value |
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 |
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
SimilarityTransformProvider
public SimilarityTransformProvider()
- Creates a two-dimensional similarity transform.
EPSG defines explicitly this transform as 2D.
createMathTransform
protected MathTransform createMathTransform(ParameterValueGroup values)
throws ParameterNotFoundException
- Constructs an
AffineTransform2D
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 class MathTransformProvider
- Parameters:
values
- The group of parameter values PARAMETERS
.
- Returns:
- an
AffineTransform2D
.
- Throws:
ParameterNotFoundException
- if a required parameter was not found.- See Also:
MathTransformProvider.Delegate
Copyright © 1996-2014 Geotools. All Rights Reserved.