Class GeocentricAffine
- All Implemented Interfaces:
Serializable,Formattable,MathTransformProvider,Deprecable,LenientComparable,org.opengis.referencing.IdentifiedObject,org.opengis.referencing.operation.OperationMethod
- Direct Known Subclasses:
CoordinateFrameRotation,GeocentricAffineBetweenGeographic,GeocentricTranslation,PositionVector7Param
GeocentricAffineBetweenGeographic subclass.
GeocentricAffine class name is chosen as a generalization of GeocentricTranslation.
"Geocentric translations" is an operation name defined by EPSG.- Since:
- 0.7
- Version:
- 1.3
- Author:
- Martin Desruisseaux (IRD, Geomatys)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumThe transformation type (translation, frame rotation, etc.). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opengis.parameter.ParameterDescriptor<Double> The operation parameter descriptor for the X-axis translation (tX) parameter value.static final org.opengis.parameter.ParameterDescriptor<Double> The operation parameter descriptor for the Y-axis translation (tY) parameter value.static final org.opengis.parameter.ParameterDescriptor<Double> The operation parameter descriptor for the Z-axis translation (tZ) parameter value.Fields inherited from class org.apache.sis.internal.referencing.provider.AbstractProvider
sourceCSType, sourceOnEllipsoid, targetCSType, targetOnEllipsoidFields inherited from class org.apache.sis.referencing.AbstractIdentifiedObject
DEPRECATED_KEY, LOCALE_KEYFields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface org.opengis.referencing.operation.OperationMethod
FORMULA_KEY -
Method Summary
Modifier and TypeMethodDescriptionstatic voidasDatumShift(List<Object> transforms) Given a transformation chain, conditionally replaces the affine transform elements by an alternative object showing the Bursa-Wolf parameters.org.opengis.referencing.operation.MathTransformcreateMathTransform(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) Creates a math transform from the specified group of parameter values.static org.opengis.parameter.ParameterValueGroupcreateParameters(org.opengis.referencing.cs.CoordinateSystem sourceCS, org.opengis.referencing.cs.CoordinateSystem targetCS, org.opengis.referencing.operation.Matrix datumShift, DatumShiftMethod method) Returns the parameters for creating a datum shift operation.inverse()The inverse ofGeodeticOperationis usually the same operation with parameter signs inverted.final org.opengis.referencing.operation.OperationMethodredimension(int sourceDimensions, int targetDimensions) Deprecated.ISO 19111:2019 removed source/target dimensions attributes.Methods inherited from class org.apache.sis.internal.referencing.provider.AbstractProvider
getOperationType, resolveAmbiguityMethods inherited from class org.apache.sis.referencing.operation.DefaultOperationMethod
castOrCopy, computeHashCode, equals, formatTo, getFormula, getInterface, getParameters, getSourceDimensions, getTargetDimensions, redimensionMethods inherited from class org.apache.sis.referencing.AbstractIdentifiedObject
castOrCopy, equals, formatTo, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNameMethods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKTMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
TX
-
TY
-
TZ
-
-
Method Details
-
createMathTransform
public org.opengis.referencing.operation.MathTransform createMathTransform(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) throws org.opengis.util.FactoryException Creates a math transform from the specified group of parameter values. The default implementation creates an affine transform, but some subclasses will wrap that affine operation into Geographic/Geocentric conversions.- Parameters:
factory- the factory to use for creating concatenated transforms.values- the group of parameter values.- Returns:
- the created math transform.
- Throws:
org.opengis.util.FactoryException- if a transform cannot be created.
-
createParameters
public static org.opengis.parameter.ParameterValueGroup createParameters(org.opengis.referencing.cs.CoordinateSystem sourceCS, org.opengis.referencing.cs.CoordinateSystem targetCS, org.opengis.referencing.operation.Matrix datumShift, DatumShiftMethod method) Returns the parameters for creating a datum shift operation. The operation method will be one of theGeocentricAffinesubclasses, unless the specifiedmethodargument isDatumShiftMethod.NONE. If no single operation method can be used, then this method returnsnull.This method does not change the coordinate system type. The source and target coordinate systems can be both
EllipsoidalCSor bothCartesianCS. Any other type or mix of types (e.g. aEllipsoidalCSsource andCartesianCStarget) will cause this method to returnnull. In such case, it is caller's responsibility to apply the datum shift itself in Cartesian geocentric coordinates.- Parameters:
sourceCS- the source coordinate system. Only the type and number of dimensions is checked.targetCS- the target coordinate system. Only the type and number of dimensions is checked.datumShift- the datum shift as a matrix, ornullif there is no datum shift information.method- the preferred datum shift method. Note thatcreateParameters(…)may overwrite.- Returns:
- the parameter values, or
nullif no single operation method can be found.
-
asDatumShift
Given a transformation chain, conditionally replaces the affine transform elements by an alternative object showing the Bursa-Wolf parameters. The replacement is applied if and only if the affine transform is a scale, translation or rotation in the geocentric domain.This method is invoked only by
ConcatenatedTransform.getPseudoSteps()for the need of WKT formatting. The purpose of this method is very similar to the purpose ofAbstractMathTransform.beforeFormat(List, int, boolean)except that we need to perform theforDatumShift(…)work only afterbeforeFormat(…)finished its work for allContextualParameters, including theEllipsoidToCentricTransform's one.- Parameters:
transforms- the full chain of concatenated transforms.
-
redimension
@Deprecated public final org.opengis.referencing.operation.OperationMethod redimension(int sourceDimensions, int targetDimensions) Deprecated.ISO 19111:2019 removed source/target dimensions attributes.Returns the elements of the given array at an index computed from the given dimensions.- Overrides:
redimensionin classDefaultOperationMethod- Parameters:
sourceDimensions- the desired number of input dimensions.targetDimensions- the desired number of output dimensions.- Returns:
- the redimensioned operation method, or
nullif none.
-
inverse
The inverse ofGeodeticOperationis usually the same operation with parameter signs inverted.- Overrides:
inversein classAbstractProvider- Returns:
thisfor mostGeodeticOperationinstances.- See Also:
-