public abstract class AbstractCoordinateOperation extends IdentifiableComponent implements CoordinateOperation
CoordinateOperation interface.| Modifier and Type | Field and Description |
|---|---|
protected double |
precision |
DEFAULT, LOCAL, UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCoordinateOperation(Identifier identifier)
Create a new
CoordinateOperation instance. |
| Modifier and Type | Method and Description |
|---|---|
double |
getPrecision()
Returns the precision of the transformation.
|
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation.
|
boolean |
isIdentity() |
abstract double[] |
transform(double[] coord)
Return a double[] representing the same location as coord but in another
CoordinateReferenceSystem.
|
addAlias, addRemark, equals, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, hashCode, setIdentifier, setRemarks, setShortName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortNameprotected AbstractCoordinateOperation(Identifier identifier)
CoordinateOperation instance.identifier - this CoordinateOperation identifierpublic abstract double[] transform(double[] coord)
throws IllegalCoordinateException,
CoordinateOperationException
transform in interface CoordinateOperationcoord - the input coordinateIllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.CoordinateOperationException - if this operation
failed during the transformation process.public CoordinateOperation inverse() throws NonInvertibleOperationException
CoordinateOperations and/or inverse CoordinateOperation in
a unique CoordinateOperationSequence. This method is not declared
abstract, so that implementation classes have not to implement it if they
represent non invertible operation.inverse in interface CoordinateOperationNonInvertibleOperationExceptionpublic double getPrecision()
Precision is a double
representing the mean error, in meters made on the position resulting
from this CoordinateOperation.
ex. : 0.001 means that the precision of the resulting position is about one millimeter
Default precision (or maximum precision) is considered to be equals to 1E-9 which is the value of an ulp (units in the last place) for a double value equals to 6378137.0 (Earth semi-major axis).
getPrecision in interface CoordinateOperationpublic boolean isIdentity()
isIdentity in interface CoordinateOperationCopyright © 2019 CNRS. All rights reserved.