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.GeodeticOperation
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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.opengis.parameter.ParameterDescriptorGroup
The group of all parameters expected by this coordinate operation.private static final long
Serial number for inter-operability with different versions.Fields inherited from class org.apache.sis.internal.referencing.provider.GeographicOffsets
TX, TY, TZ
Fields inherited from class org.apache.sis.internal.referencing.provider.GeodeticOperation
redimensioned
Fields inherited from class org.apache.sis.internal.referencing.provider.AbstractProvider
sourceCSType, sourceOnEllipsoid, targetCSType, targetOnEllipsoid
Fields inherited from class org.apache.sis.referencing.AbstractIdentifiedObject
DEPRECATED_KEY, LOCALE_KEY
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Fields inherited from interface org.opengis.referencing.operation.OperationMethod
FORMULA_KEY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a provider with default parameters.private
LongitudeRotation
(int sourceDimensions, int targetDimensions, GeodeticOperation[] redimensioned) Constructs a provider for the given dimensions. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.operation.MathTransform
createMathTransform
(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) Creates a transform from the specified group of parameter values.Methods inherited from class org.apache.sis.internal.referencing.provider.GeographicOffsets
vertical
Methods inherited from class org.apache.sis.internal.referencing.provider.GeodeticOperation
inverse, redimension, variant3D
Methods inherited from class org.apache.sis.internal.referencing.provider.AbstractProvider
addIdentifierAndLegacy, addNameAndLegacy, builder, createLatitude, createLongitude, createMandatoryLatitude, createScale, createShift, createZeroConstant, getOperationType, recoverableException, resolveAmbiguity
Methods inherited from class org.apache.sis.referencing.operation.DefaultOperationMethod
castOrCopy, computeHashCode, equals, formatTo, getFormula, getInterface, getParameters, getSourceDimensions, getTargetDimensions, redimension
Methods inherited from class org.apache.sis.referencing.AbstractIdentifiedObject
castOrCopy, equals, formatTo, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForName
Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKT
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
PARAMETERS
private static final org.opengis.parameter.ParameterDescriptorGroup PARAMETERSThe group of all parameters expected by this coordinate operation.
-
-
Constructor Details
-
LongitudeRotation
public LongitudeRotation()Constructs a provider with default parameters. -
LongitudeRotation
private LongitudeRotation(int sourceDimensions, int targetDimensions, GeodeticOperation[] redimensioned) Constructs a provider for the given dimensions.- Parameters:
sourceDimensions
- number of dimensions in the source CRS of this operation method.targetDimensions
- number of dimensions in the target CRS of this operation method.redimensioned
- providers for all combinations between 2D and 3D cases.
-
-
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:
createMathTransform
in interfaceMathTransformProvider
- Overrides:
createMathTransform
in 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.
-