|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cts.IdentifiableComponent
org.cts.op.AbstractCoordinateOperation
public abstract class AbstractCoordinateOperation
AbstractCoordinateOperation is a partial implementation of the
CoordinateOperation interface.
| Field Summary | |
|---|---|
protected double |
precision
|
| Fields inherited from interface org.cts.Identifiable |
|---|
DEFAULT, LOCAL, UNKNOWN |
| Constructor Summary | |
|---|---|
AbstractCoordinateOperation(Identifier identifier)
Create a new CoordinateOperation instance. |
|
| Method Summary | |
|---|---|
double |
getPrecision()
Returns the precision of the transformation. |
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation. |
abstract double[] |
transform(double[] coord)
Return a double[] representing the same location as coord but in another CoordinateReferenceSystem. |
| 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 class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.cts.Identifiable |
|---|
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName |
| Field Detail |
|---|
protected double precision
| Constructor Detail |
|---|
public AbstractCoordinateOperation(Identifier identifier)
CoordinateOperation instance.
identifier - this CoordinateOperation identifier| Method Detail |
|---|
public abstract double[] transform(double[] coord)
throws IllegalCoordinateException
transform in interface CoordinateOperationcoord - the input coordinate
IllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.
public CoordinateOperation inverse()
throws NonInvertibleOperationException
fr.cts.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 fr.cts.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 CoordinateOperation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||