Class LongitudeRotation
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.GeographicOffsets
org.apache.sis.internal.referencing.provider.LongitudeRotation
- All Implemented Interfaces:
Serializable,Formattable,MathTransformProvider,Deprecable,LenientComparable,org.opengis.referencing.IdentifiedObject,org.opengis.referencing.operation.OperationMethod
The provider for "Longitude rotation" (EPSG:9601).
The "Longitude rotation" is created as an affine transform containing only a translation term in degrees.
Advantage of using an affine transform for such simple operation is that this
AffineTransform can
be efficiently concatenated with other affine transform instances.
The Apache SIS implementation of this operation method always perform the longitude rotation in degrees. The longitude axis of source and target CRS shall be converted to degrees before this operation is applied.Operation name:
Longitude rotation
Operation parameters Parameter name Default value Longitude offset
- Since:
- 0.6
- Version:
- 0.7
- Author:
- Martin Desruisseaux (IRD, Geomatys)
- See Also:
-
Field Summary
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.operation.MathTransformcreateMathTransform(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) Creates a 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.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
-
Constructor Details
-
LongitudeRotation
public LongitudeRotation()Constructs a provider with default parameters.
-
-
Method Details
-
createMathTransform
public org.opengis.referencing.operation.MathTransform createMathTransform(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) throws org.opengis.parameter.ParameterNotFoundException Creates a transform from the specified group of parameter values. The parameter value is unconditionally converted to degrees.The operation is created as an affine transform between two two-dimensional CRS. We do not override the
AffineTransform2D.getParameterDescriptors()andAffineTransform2D.getParameterValues()methods in order to make that fact clearer, in the hope to reduce ambiguity about the nature of the transform. Note also that the "Longitude rotation" operation has unit of measurement while the "Affine" operation does not, so maybe our unconditional conversion to degrees would be more surprising for the user if the operation was shown as a "Longitude rotation".- Specified by:
createMathTransformin interfaceMathTransformProvider- Overrides:
createMathTransformin classGeographicOffsets- Parameters:
factory- ignored (can be null).values- the group of parameter values.- Returns:
- the created math transform.
- Throws:
org.opengis.parameter.ParameterNotFoundException- if a required parameter was not found.
-
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:
-