Class GeocentricAffineBetweenGeographic
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.AbstractIdentifiedObject
org.apache.sis.referencing.operation.DefaultOperationMethod
org.apache.sis.internal.referencing.provider.AbstractProvider
org.apache.sis.internal.referencing.provider.GeocentricAffine
org.apache.sis.internal.referencing.provider.GeocentricAffineBetweenGeographic
- All Implemented Interfaces:
Serializable,Formattable,MathTransformProvider,Deprecable,LenientComparable,org.opengis.referencing.IdentifiedObject,org.opengis.referencing.operation.OperationMethod
- Direct Known Subclasses:
AbridgedMolodensky,CoordinateFrameRotation2D,CoordinateFrameRotation3D,GeocentricTranslation2D,GeocentricTranslation3D,Molodensky,PositionVector7Param2D,PositionVector7Param3D
The base class of operation methods performing an affine operation in geocentric coordinates
concatenated with conversion from/to geographic coordinates. This base class is also used for
operation methods performing approximation of above, even if they do not really pass
through geocentric coordinates.
Default values to verify
This class assumes the following default values. Subclasses should verify if those default values are suitable from them:AbstractProvider.getOperationType()defaults toTransformation.AbstractProvider.sourceCSTypeandAbstractProvider.targetCSTypedefault toEllipsoidalCS.
- Since:
- 0.7
- Version:
- 1.3
- Author:
- Martin Desruisseaux (IRD, Geomatys)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.referencing.provider.GeocentricAffine
GeocentricAffine.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opengis.parameter.ParameterDescriptor<Integer> The operation parameter descriptor for the number of source and target geographic dimensions (2 or 3).static final org.opengis.parameter.ParameterDescriptor<Double> The operation parameter descriptor for the"src_semi_major"optional parameter value.static final org.opengis.parameter.ParameterDescriptor<Double> The operation parameter descriptor for the"src_semi_minor"optional parameter value.static final org.opengis.parameter.ParameterDescriptor<Double> The operation parameter descriptor for the"src_semi_major"optional parameter value.static final org.opengis.parameter.ParameterDescriptor<Double> The operation parameter descriptor for the"src_semi_minor"optional parameter value.Fields inherited from class org.apache.sis.internal.referencing.provider.GeocentricAffine
TX, TY, TZFields 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 TypeMethodDescriptionorg.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.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.GeocentricAffine
asDatumShift, createParametersMethods 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
-
DIMENSION
The operation parameter descriptor for the number of source and target geographic dimensions (2 or 3). This is an OGC-specific parameter for theMolodenskyandAbridgedMolodenskyoperations, but Apache SIS uses it also for internal parameters of Geographic/Geocentric.We do not provide default value for this parameter (neither we do for other OGC-specific parameters in this class) because this parameter is used with both two- and three-dimensional operation methods. If we want to provide a default value, we could but it would complicate a little bit the code since we could no longer reuse the same
PARAMETERSconstant for operation methods of any number of dimensions. TODO: this paragraph will not apply anymore afterredimensionedis removed.- See Also:
-
SRC_SEMI_MAJOR
The operation parameter descriptor for the"src_semi_major"optional parameter value. Valid values range from 0 to infinity. Units are metres.
Notes:Parameter names OGC: src_semi_major - Value domain: (0.0 … ∞) m
- No default value
-
SRC_SEMI_MINOR
The operation parameter descriptor for the"src_semi_minor"optional parameter value. Valid values range from 0 to infinity. Units are metres.
Notes:Parameter names OGC: src_semi_minor - Value domain: (0.0 … ∞) m
- No default value
-
TGT_SEMI_MAJOR
The operation parameter descriptor for the"src_semi_major"optional parameter value. Valid values range from 0 to infinity. Units are metres.
Notes:Parameter names OGC: tgt_semi_major - Value domain: (0.0 … ∞) m
- No default value
-
TGT_SEMI_MINOR
The operation parameter descriptor for the"src_semi_minor"optional parameter value. Valid values range from 0 to infinity. Units are metres.
Notes:Parameter names OGC: tgt_semi_minor - Value domain: (0.0 … ∞) m
- No default value
-
-
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. This method wraps the affine operation into Geographic/Geocentric conversions.- Specified by:
createMathTransformin interfaceMathTransformProvider- Overrides:
createMathTransformin classGeocentricAffine- 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.
-
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:
-