|
||||||||||
| 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.transformation.GeocentricTranslation
public class GeocentricTranslation
GeocentricTranslation is a coordinate operation used to transform geocentric coordinates with a 3D translation defined by three parameters representing translation values along x axis, y axis and z axis.
In this operation, one assume that the axis of the ellipsoids are parallel, that the prime meridian is Greenwich, and that there is no scale difference between the source and target CoordinateReferenceSystem.
Equations of this transformation are :
| Field Summary |
|---|
| Fields inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
precision |
| Fields inherited from interface org.cts.Identifiable |
|---|
DEFAULT, LOCAL, UNKNOWN |
| Constructor Summary | |
|---|---|
GeocentricTranslation(double tx,
double ty,
double tz)
Geocentric translation. |
|
GeocentricTranslation(double tx,
double ty,
double tz,
double precision)
Geocentric translation. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Returns true if object is equals to this. |
int |
hashCode()
Returns the hash code for this GeocentricTranslation. |
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation. |
String |
toString()
Returns this Geocentric translation as a String. |
String |
toWKT()
Returns this Geocentric translation as an OGC WKT String. |
double[] |
transform(double[] coord)
Return a coordinates representing the same point as coord but in another CoordinateReferenceSystem. |
| 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 GeocentricTranslation(double tx,
double ty,
double tz,
double precision)
Geocentric translation.
tx - translation parameter along x axis (meters)ty - translation parameter along y axis (meters)tz - translation parameter along z axis (meters)precision - mean precision of the geodetic transformation
public GeocentricTranslation(double tx,
double ty,
double tz)
tx - translation parameter along x axis (meters)ty - translation parameter along y axis (meters)tz - translation parameter along z axis (meters)| Method Detail |
|---|
public double[] transform(double[] coord)
throws IllegalCoordinateException
Return a coordinates representing the same point as coord but in another CoordinateReferenceSystem.
Equations of this transformation are :
transform in interface CoordinateOperationtransform in class AbstractCoordinateOperationcoord - coordinate to transform
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 String toWKT()
toWKT in interface GeoTransformationpublic boolean equals(Object o)
this. Tests equality between the references of both object,
then tests if the three translation values (tx, ty and tz) used by each
Geocentric Translation are equals.
equals in class IdentifiableComponentobject - The object to compare this ProjectedCRS againstpublic int hashCode()
hashCode in class IdentifiableComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||