|
||||||||||
| 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
org.cts.op.Geocentric2Geographic
public class Geocentric2Geographic
Transform geographic coordinates (latitude, longitude, ellipsoidal height into geocentric coordinates.
Geographic coordinates and geocentric coordinates are supposed to use the same reference datum and to be standardized :
| Field Summary |
|---|
| Fields inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
precision |
| Fields inherited from interface org.cts.Identifiable |
|---|
DEFAULT, LOCAL, UNKNOWN |
| Constructor Summary | |
|---|---|
Geocentric2Geographic(Ellipsoid ellipsoid)
Create a new Geographic2Geocentric transformation for a specific ellipsoid. |
|
Geocentric2Geographic(Ellipsoid ellipsoid,
double epsilon)
Create a new Geographic2Geocentric transformation for a specific ellipsoid. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Returns true if object is equals to this. |
Ellipsoid |
getEllipsoid()
|
int |
hashCode()
Returns the hash code for this Geocentric2Geographic. |
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation. |
String |
toString()
Return a String representation of this Geographic/Geocentric converter. |
double[] |
transform(double[] coord)
Return coordinates representing the same point in a standard geocentric coordinate system. |
| Methods inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
getPrecision |
| Methods inherited from class org.cts.IdentifiableComponent |
|---|
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, setIdentifier, setRemarks, setShortName |
| 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 |
| Constructor Detail |
|---|
public Geocentric2Geographic(Ellipsoid ellipsoid)
Create a new Geographic2Geocentric transformation for a specific ellipsoid. The reference datum for both geographic and geocentric coordinates is the same.
ellipsoid - the ellipsoid used to define geographic coordinates
public Geocentric2Geographic(Ellipsoid ellipsoid,
double epsilon)
Create a new Geographic2Geocentric transformation for a specific ellipsoid. The reference datum for both geographic and geocentric coordinates is the same.
ellipsoid - the ellipsoid used to define geographic coordinatesepsilon - stop condition for the Geocentric to Geographic
transformation algorithm (epsilon is a value in radian, 1E-11 is the
default epsilon and it means that error is less than 1E-4 m)| Method Detail |
|---|
public double[] transform(double[] coord)
throws IllegalCoordinateException
Return coordinates representing the same point in a standard geocentric coordinate system.
transform in interface CoordinateOperationtransform in class AbstractCoordinateOperationcoord - is an array containing 2 or 3 double representing geographic
coordinates in the following order : latitude (radians), longitude
(radians from Greenwich) and optionnaly ellipsoidal height (if coord
contains only 2 double's, height is set to 0).
IllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.
public CoordinateOperation inverse()
throws NonInvertibleOperationException
inverse in interface CoordinateOperationinverse in class AbstractCoordinateOperationNonInvertibleOperationExceptionpublic String toString()
toString in class IdentifiableComponentpublic Ellipsoid getEllipsoid()
public boolean equals(Object o)
this. Tests equality between the ellipsoid used by the
transformation.
equals in class IdentifiableComponentobject - The object to compare this Geocentric2Geographic againstpublic int hashCode()
hashCode in class IdentifiableComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||