org.cts.op
Class Identity
java.lang.Object
org.cts.IdentifiableComponent
org.cts.op.AbstractCoordinateOperation
org.cts.op.Identity
- All Implemented Interfaces:
- Identifiable, CoordinateOperation
public class Identity
- extends AbstractCoordinateOperation
The identity transformation.
This transformation doesn't do anything.
- Author:
- Michaƫl Michaud
|
Method Summary |
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation. |
double[] |
transform(double[] coord)
Apply the identity transformation to input coordinates. |
| Methods inherited from class org.cts.IdentifiableComponent |
addAlias, addRemark, equals, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, hashCode, setIdentifier, setRemarks, setShortName, toString |
| Methods inherited from interface org.cts.Identifiable |
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName |
IDENTITY
public static final Identity IDENTITY
- The identity transformation. When used to transform coordinates, it
returns the input coordinates.
transform
public double[] transform(double[] coord)
throws IllegalCoordinateException
- Apply the identity transformation to input coordinates.
- Specified by:
transform in interface CoordinateOperation- Specified by:
transform in class AbstractCoordinateOperation
- Parameters:
coord - is an array containing one, two or three ordinates
- Returns:
- a double array containing the output coordinate
- Throws:
IllegalCoordinateException
inverse
public CoordinateOperation inverse()
throws NonInvertibleOperationException
- Creates the inverse CoordinateOperation.
- Specified by:
inverse in interface CoordinateOperation- Overrides:
inverse in class AbstractCoordinateOperation
- Throws:
NonInvertibleOperationException
Copyright © 2014 IRSTV CNRS-FR-2488. All Rights Reserved.