org.cts.op.transformation
Class GeocentricTranslation

java.lang.Object
  extended by org.cts.IdentifiableComponent
      extended by org.cts.op.AbstractCoordinateOperation
          extended by org.cts.op.transformation.GeocentricTranslation
All Implemented Interfaces:
Identifiable, CoordinateOperation, GeoTransformation

public class GeocentricTranslation
extends AbstractCoordinateOperation
implements GeoTransformation

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 :

Author:
Michaƫl Michaud, Erwan Bocher

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

GeocentricTranslation

public GeocentricTranslation(double tx,
                             double ty,
                             double tz,
                             double precision)

Geocentric translation.

Parameters:
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

GeocentricTranslation

public GeocentricTranslation(double tx,
                             double ty,
                             double tz)
Geocentric translation.

Parameters:
tx - translation parameter along x axis (meters)
ty - translation parameter along y axis (meters)
tz - translation parameter along z axis (meters)
Method Detail

transform

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 :

Specified by:
transform in interface CoordinateOperation
Specified by:
transform in class AbstractCoordinateOperation
Parameters:
coord - coordinate to transform
Returns:
a double array containing the output coordinate
Throws:
IllegalCoordinateException - if coord is not compatible with this CoordinateOperation.

inverse

public CoordinateOperation inverse()
                            throws NonInvertibleOperationException
Creates the inverse CoordinateOperation.

Specified by:
inverse in interface CoordinateOperation
Overrides:
inverse in class AbstractCoordinateOperation
Throws:
NonInvertibleOperationException

toString

public String toString()
Returns this Geocentric translation as a String.

Overrides:
toString in class IdentifiableComponent

toWKT

public String toWKT()
Returns this Geocentric translation as an OGC WKT String.

Specified by:
toWKT in interface GeoTransformation

equals

public boolean equals(Object o)
Returns true if object is equals to 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.

Overrides:
equals in class IdentifiableComponent
Parameters:
object - The object to compare this ProjectedCRS against

hashCode

public int hashCode()
Returns the hash code for this GeocentricTranslation.

Overrides:
hashCode in class IdentifiableComponent


Copyright © 2014 IRSTV CNRS-FR-2488. All Rights Reserved.