public class SimilarityTransformProvider extends MathTransformProvider
Note that similarity transform is a special case of an Affine transform 2D.
MathTransformProvider.Delegate
Modifier and Type | Field and Description |
---|---|
static ParameterDescriptor<Double> |
ROTATION
"Rotation angle of source coordinate reference system axes" EPSG::8614
|
static ParameterDescriptor<Double> |
SCALE
"Scale difference" EPSG::8611
|
static ParameterDescriptor<Double> |
TRANSLATION_1
"Ordinate 1 of evaluation point in target CRS" EPSG::8621
|
static ParameterDescriptor<Double> |
TRANSLATION_2
"Ordinate 2 of evaluation point in target CRS" EPSG::8622
|
sourceDimensions, targetDimensions
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
FORMULA_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
SimilarityTransformProvider()
Creates a two-dimensional similarity transform.
|
Modifier and Type | Method and Description |
---|---|
protected MathTransform |
createMathTransform(ParameterValueGroup values)
Constructs an
AffineTransform2D math transform from the specified group of parameter
values. |
createDescriptor, createDescriptorGroup, createOptionalDescriptor, doubleValue, ensureValidValues, formatWKT, getOperationType, getParameter, intValue, stringValue, toMap, value
checkDimensions, equals, getFormula, getParameters, getSourceDimensions, getTargetDimensions, hashCode
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getAlias, getIdentifiers, getName, getRemarks, toWKT
public static final ParameterDescriptor<Double> TRANSLATION_1
public static final ParameterDescriptor<Double> TRANSLATION_2
public static final ParameterDescriptor<Double> SCALE
public static final ParameterDescriptor<Double> ROTATION
public SimilarityTransformProvider()
EPSG defines explicitly this transform as 2D.
protected MathTransform createMathTransform(ParameterValueGroup values) throws ParameterNotFoundException
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
createMathTransform
in class MathTransformProvider
values
- The group of parameter values PARAMETERS
.AffineTransform2D
.ParameterNotFoundException
- if a required parameter was not found.MathTransformProvider.Delegate
Copyright © 1996–2019 Geotools. All rights reserved.