org.cts.op.transformation
Class Altitude2EllipsoidalHeight

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

public class Altitude2EllipsoidalHeight
extends AbstractCoordinateOperation

Altitude2EllipsoidalHeight is a coordinate operation used to transform 3D coordinates containing the altitude in the third coordinate with a grid transformation that return the equivalent coordinates with ellipsoidal height instead of altitude.

Author:
Jules Party

Field Summary
 
Fields inherited from class org.cts.op.AbstractCoordinateOperation
precision
 
Fields inherited from interface org.cts.Identifiable
DEFAULT, LOCAL, UNKNOWN
 
Constructor Summary
Altitude2EllipsoidalHeight(String nameGrid, GeodeticDatum gd)
          Altitude translation with parameter interpolated from a grid depending on the geographic coordinates of the point to convert.
 
Method Summary
 GeodeticDatum getAssociatedDatum()
          Return the geodetic datum associated to this transformation.
 String getGridFileName()
          Return the name of the grid file used to define this transformation.
 CoordinateOperation inverse()
          Creates the inverse CoordinateOperation.
 double[] transform(double[] coord)
          Return a double[] representing the same location as coord but in another CoordinateReferenceSystem.
 
Methods inherited from class org.cts.op.AbstractCoordinateOperation
getPrecision
 
Methods inherited from class org.cts.IdentifiableComponent
addAlias, addRemark, equals, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, hashCode, setIdentifier, setRemarks, setShortName, toString
 
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

Altitude2EllipsoidalHeight

public Altitude2EllipsoidalHeight(String nameGrid,
                                  GeodeticDatum gd)
                           throws Exception
Altitude translation with parameter interpolated from a grid depending on the geographic coordinates of the point to convert.

Parameters:
id - the identifier of the Altitude2EllipsoidalHeight
nameGrid - the name of the grid file to use
gd - the geodetic datum in which the geographic coordinates used in the interpolation must be expressed
Throws:
Exception
Method Detail

getAssociatedDatum

public GeodeticDatum getAssociatedDatum()
Return the geodetic datum associated to this transformation. The latitude and longitude of the coordinate must be expressed in this datum to obtain good results.


getGridFileName

public String getGridFileName()
Return the name of the grid file used to define this transformation.


transform

public double[] transform(double[] coord)
                   throws IllegalCoordinateException
Description copied from class: AbstractCoordinateOperation
Return a double[] representing the same location as coord but in another CoordinateReferenceSystem.

Specified by:
transform in interface CoordinateOperation
Specified by:
transform in class AbstractCoordinateOperation
Parameters:
coord - the input coordinate
Returns:
a double array containing the output coordinate
Throws:
IllegalCoordinateException - if coord is not compatible with this CoordinateOperation.
See Also:
AbstractCoordinateOperation.transform(double[])

inverse

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

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


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