public class Geocentric2Geographic extends AbstractCoordinateOperation
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 :
precisionDEFAULT, LOCAL, UNKNOWN| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Returns true if o 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.
|
getPrecision, isIdentityaddAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, setIdentifier, setRemarks, setShortNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortNamepublic 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 coordinatespublic 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)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()
inverse in interface CoordinateOperationinverse in class AbstractCoordinateOperationpublic 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 IdentifiableComponento - The object to compare this Geocentric2Geographic againstpublic int hashCode()
hashCode in class IdentifiableComponentCopyright © 2019 CNRS. All rights reserved.