Class MathTransformContext
java.lang.Object
org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory.Context
org.apache.sis.referencing.operation.MathTransformContext
- All Implemented Interfaces:
Serializable
Information about the context in which a
MathTransform
is created.
This class performs the same normalization than the super-class (namely axis swapping and unit conversions),
with the addition of longitude rotation for supporting change of prime meridian. This latter change is not
applied by the super-class because prime meridian is part of geodetic datum, and the public math transform
factory know nothing about datum (on design, for separation of concerns).- Since:
- 0.7
- Version:
- 0.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility.private double
The longitude of the source and target prime meridian, in number of degrees East of Greenwich.private double
The longitude of the source and target prime meridian, in number of degrees East of Greenwich. -
Constructor Summary
ConstructorsConstructorDescriptionMathTransformContext
(org.opengis.referencing.datum.GeodeticDatum source, org.opengis.referencing.datum.GeodeticDatum target) Creates a new context which add some datum-related information in addition to the information provided by the super-class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.operation.Matrix
Returns the normalization or denormalization matrix.Methods inherited from class org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory.Context
getCompletedParameters, getContextualParameters, getMethodUsed, getSourceCS, getSourceEllipsoid, getTargetCS, getTargetEllipsoid, setSource, setSource, setSource, setTarget, setTarget, setTarget, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
sourceMeridian
private double sourceMeridianThe longitude of the source and target prime meridian, in number of degrees East of Greenwich. -
targetMeridian
private double targetMeridianThe longitude of the source and target prime meridian, in number of degrees East of Greenwich.
-
-
Constructor Details
-
MathTransformContext
MathTransformContext(org.opengis.referencing.datum.GeodeticDatum source, org.opengis.referencing.datum.GeodeticDatum target) Creates a new context which add some datum-related information in addition to the information provided by the super-class.
-
-
Method Details
-
getMatrix
public org.opengis.referencing.operation.Matrix getMatrix(ContextualParameters.MatrixRole role) throws org.opengis.util.FactoryException Returns the normalization or denormalization matrix.- Overrides:
getMatrix
in classDefaultMathTransformFactory.Context
- Parameters:
role
- whether the normalization or denormalization matrix is desired.- Returns:
- the requested matrix, or
null
if thisContext
has no information about the coordinate system. - Throws:
org.opengis.util.FactoryException
- if an error occurred while computing the matrix.- See Also:
-