Class LongitudeWraparound.Inverse
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.operation.transform.AbstractMathTransform
org.apache.sis.referencing.operation.transform.AbstractMathTransform.Inverse
org.apache.sis.referencing.operation.transform.AbstractMathTransform2D.Inverse
org.apache.sis.referencing.operation.projection.LongitudeWraparound.Inverse
- All Implemented Interfaces:
Serializable
,Parameterized
,LenientComparable
,org.opengis.referencing.operation.MathTransform
,org.opengis.referencing.operation.MathTransform2D
- Enclosing class:
- LongitudeWraparound
private static final class LongitudeWraparound.Inverse
extends AbstractMathTransform2D.Inverse
implements Serializable
Longitude wraparound applied on reverse projection.
This is a copy of
NormalizedProjection.Inverse
with longitude wraparound added after conversion.- Since:
- 1.3
- Version:
- 1.3
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
AbstractMathTransform.Inverse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
LongitudeWraparound.bound
with opposite sign and translated by the longitude rotation.private final LongitudeWraparound
The projection to reverse, which is the enclosing transform.private static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionInverse
(LongitudeWraparound forward, double bound) Creates a reverse projection for the given forward projection. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.operation.MathTransform2D
inverse()
Returns the inverse of this math transform, which is the forward projection.org.opengis.referencing.operation.Matrix
transform
(double[] srcPts, int srcOff, double[] dstPts, int dstOff, boolean derivate) Reverse projects the specifiedsrcPts
and stores the result indstPts
.void
transform
(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Inverse transforms an arbitrary number of coordinate tuples.Methods inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform2D.Inverse
createTransformedShape, derivative, transform
Methods inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform.Inverse
computeHashCode, derivative, equals, formatTo, getDomain, getSourceDimensions, getTargetDimensions, isIdentity
Methods inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
equals, getContextualParameters, getParameterDescriptors, getParameterValues, hashCode, transform, transform, transform, transform, tryConcatenate
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.operation.MathTransform
derivative, getSourceDimensions, getTargetDimensions, isIdentity, toWKT, transform, transform, transform, transform
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
forward
The projection to reverse, which is the enclosing transform. -
bound
private final double boundLongitudeWraparound.bound
with opposite sign and translated by the longitude rotation. This is the bound that the reverse projection needs to use before longitude rotation. This bound shall not be used for period computation.
-
-
Constructor Details
-
Inverse
Inverse(LongitudeWraparound forward, double bound) Creates a reverse projection for the given forward projection.
-
-
Method Details
-
inverse
public org.opengis.referencing.operation.MathTransform2D inverse()Returns the inverse of this math transform, which is the forward projection.- Specified by:
inverse
in interfaceorg.opengis.referencing.operation.MathTransform
- Specified by:
inverse
in interfaceorg.opengis.referencing.operation.MathTransform2D
- Specified by:
inverse
in classAbstractMathTransform2D.Inverse
- Returns:
- the inverse of this transform.
-
transform
public org.opengis.referencing.operation.Matrix transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, boolean derivate) throws org.opengis.referencing.operation.TransformException Reverse projects the specifiedsrcPts
and stores the result indstPts
. If the derivative has been requested, then this method will delegate the derivative calculation to the enclosing class and inverts the resulting matrix.- Specified by:
transform
in classAbstractMathTransform
- Parameters:
srcPts
- the array containing the source coordinates (cannot benull
).srcOff
- the offset to the point to be transformed in the source array.dstPts
- the array into which the transformed coordinates is returned. May be the same thansrcPts
. May benull
if only the derivative matrix is desired.dstOff
- the offset to the location of the transformed point that is stored in the destination array.derivate
-true
for computing the derivative, orfalse
if not needed.- Returns:
- the matrix of the transform derivative at the given source position,
or
null
if thederivate
argument isfalse
. - Throws:
org.opengis.referencing.operation.TransformException
- if the point cannot be transformed or if a problem occurred while calculating the derivative.- See Also:
-
transform
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws org.opengis.referencing.operation.TransformException Inverse transforms an arbitrary number of coordinate tuples. This method optimizes the case where conversions can be applied by a loop with indices in increasing order.- Specified by:
transform
in interfaceorg.opengis.referencing.operation.MathTransform
- Overrides:
transform
in classAbstractMathTransform
- Parameters:
srcPts
- the array containing the source point coordinates.srcOff
- the offset to the first point to be transformed in the source array.dstPts
- the array into which the transformed point coordinates are returned. May be the same thansrcPts
.dstOff
- the offset to the location of the first transformed point that is stored in the destination array.numPts
- the number of point objects to be transformed.- Throws:
org.opengis.referencing.operation.TransformException
- if a point cannot be transformed. Some implementations will stop at the first failure, wile some other implementations will fill the untransformable points with Double.NaN values, continue and throw the exception only at end. Implementations that fall in the latter case should set the last completed transform tothis
.
-