org.geotools.referencing.operation.transform
Class GeocentricTranslation

java.lang.Object
  extended by org.geotools.referencing.wkt.Formattable
      extended by org.geotools.referencing.operation.transform.AbstractMathTransform
          extended by org.geotools.referencing.operation.transform.ProjectiveTransform
              extended by org.geotools.referencing.operation.transform.GeocentricTranslation
All Implemented Interfaces:
java.io.Serializable, LinearTransform, org.opengis.referencing.operation.MathTransform

public class GeocentricTranslation
extends ProjectiveTransform

An affine transform applied on geocentric coordinates. While "geocentric translation" is a little bit more restrictive name, it describes the part which is common to all instances of this class. A rotation may also be performed in addition of the translation, but the rotation sign is operation-dependent (EPSG 9606 and 9607 have opposite sign). This transform is used for the following operations:

EPSG name EPSG code
Geocentric translations 9603
Position Vector 7-param. transformation 9606
Coordinate Frame rotation 9607

The conversion between geographic and geocentric coordinates is usually not part of this transform. However, the Geotools implementation of the provider accepts the following extensions:

Since:
2.2
Version:
$Id: GeocentricTranslation.java 34665 2009-12-13 12:40:59Z aaime $
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form

Nested Class Summary
static class GeocentricTranslation.Provider
          Base class for geocentric affine transform providers.
static class GeocentricTranslation.ProviderFrameRotation
          Geocentric affine transform provider for "Coordinate Frame rotation".
static class GeocentricTranslation.ProviderSevenParam
          Base class for geocentric affine transform providers with rotation terms.
 
Nested classes/interfaces inherited from class org.geotools.referencing.operation.transform.ProjectiveTransform
ProjectiveTransform.ProviderAffine, ProjectiveTransform.ProviderLongitudeRotation
 
Nested classes/interfaces inherited from class org.geotools.referencing.operation.transform.AbstractMathTransform
AbstractMathTransform.Inverse
 
Field Summary
 
Fields inherited from class org.geotools.referencing.wkt.Formattable
SINGLE_LINE
 
Constructor Summary
GeocentricTranslation(BursaWolfParameters parameters)
          Creates a new geocentric affine transform.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares the specified object with this math transform for equality.
 org.opengis.parameter.ParameterDescriptorGroup getParameterDescriptors()
          Returns the parameter descriptors for this math transform.
 org.opengis.parameter.ParameterValueGroup getParameterValues()
          Returns the parameters for this math transform.
 int hashCode()
          Returns a hash value for this transform.
 
Methods inherited from class org.geotools.referencing.operation.transform.ProjectiveTransform
create, create, createScale, createSelectMatrix, createTranslation, derivative, derivative, getMatrix, getSourceDimensions, getTargetDimensions, inverse, isIdentity, isIdentity, transform, transform
 
Methods inherited from class org.geotools.referencing.operation.transform.AbstractMathTransform
createTransformedShape, ensureNonNull, formatWKT, getName, needCopy, rollLongitude, transform, transform, transform, transform
 
Methods inherited from class org.geotools.referencing.wkt.Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.operation.MathTransform
toWKT, transform, transform, transform
 

Constructor Detail

GeocentricTranslation

public GeocentricTranslation(BursaWolfParameters parameters)
Creates a new geocentric affine transform. If the parameters don't contain rotation terms, then this transform will be of kind "Geocentric translations". Otherwise, it will be of kind "Position Vector 7-param. transformation".

Parameters:
parameters - The Bursa-Wolf parameters to use for initializing the transformation.
Method Detail

getParameterDescriptors

public org.opengis.parameter.ParameterDescriptorGroup getParameterDescriptors()
Returns the parameter descriptors for this math transform.

Overrides:
getParameterDescriptors in class ProjectiveTransform
Returns:
The parameter descriptors for this math transform, or null.
See Also:
OperationMethod.getParameters()

getParameterValues

public org.opengis.parameter.ParameterValueGroup getParameterValues()
Returns the parameters for this math transform.

Overrides:
getParameterValues in class ProjectiveTransform
Returns:
A copy of the parameter values for this math transform.
See Also:
Operation.getParameterValues()

hashCode

public int hashCode()
Returns a hash value for this transform. This value need not remain consistent between different implementations of the same class.

Overrides:
hashCode in class ProjectiveTransform

equals

public boolean equals(java.lang.Object object)
Compares the specified object with this math transform for equality.

Overrides:
equals in class ProjectiveTransform
Parameters:
object - The object to compare with this transform.
Returns:
true if the given object is a transform of the same class and if, given identical source position, the transformed position would be the equals.


Copyright © 1996-2010 Geotools. All Rights Reserved.