| org.geotools.referencing.operation.transform.AbstractMathTransform org.geotools.referencing.operation.transform.VerticalTransform org.geotools.referencing.operation.transform.EarthGravitationalModel
EarthGravitationalModel | final public class EarthGravitationalModel extends VerticalTransform (Code) | | Transforms vertical coordinates using coefficients from the
Earth
Gravitational Model.
Aknowledgement
This class is an adaption of Fortran code
clenqt.for
from the National Geospatial-Intelligence Agency and available in public domain. The
normalized geopotential coefficients file bundled in this module is an adaptation of
egm180.nor
file, with some spaces trimmed.
since: 2.3 version: $Id: EarthGravitationalModel.java 24384 2007-02-14 00:23:05Z desruisseaux $ author: Pierre Cardinal author: Martin Desruisseaux |
Method Summary | |
public ParameterDescriptorGroup | getParameterDescriptors() Returns the parameter descriptors for this math transform. | public ParameterValueGroup | getParameterValues() Returns the parameters for this math transform. | public double | heightOffset(double longitude, double latitude, double height) | protected void | load(String filename) Loads the coefficients from the specified ASCII file and initialize the internal
clenshaw arrays.
Note: ASCII may looks like an unefficient format for binary distribution.
A binary file with coefficient values read by
java.io.DataInput.readDouble would
be more compact than an uncompressed ASCII file. |
EarthGravitationalModel | EarthGravitationalModel()(Code) | | Creates a model with the default maximum degree and order.
|
EarthGravitationalModel | EarthGravitationalModel(int nmax, boolean wgs84)(Code) | | Creates a model with the specified maximum degree and order.
|
getParameterDescriptors | public ParameterDescriptorGroup getParameterDescriptors()(Code) | | Returns the parameter descriptors for this math transform.
|
getParameterValues | public ParameterValueGroup getParameterValues()(Code) | | Returns the parameters for this math transform.
|
heightOffset | public double heightOffset(double longitude, double latitude, double height) throws TransformException(Code) | | |
load | protected void load(String filename) throws IOException(Code) | | Loads the coefficients from the specified ASCII file and initialize the internal
clenshaw arrays.
Note: ASCII may looks like an unefficient format for binary distribution.
A binary file with coefficient values read by
java.io.DataInput.readDouble would
be more compact than an uncompressed ASCII file. However, binary files are hard to
compress by the ZIP algorithm. Our experience show that a 675 kb uncompressed ASCII file
is only 222 kb after ZIP or JAR compression. The same data as a binary file is 257 kb
uncompressed and 248 kb compressed. So surprisingly, the ASCII file is more compact than
the binary file after compression. Since it is the primary format provided by the
Earth-Info web site, we use it directly in order to avoid a multiplication of formats.
Parameters: filename - The filename (e.g. "WGS84.cof" , relative to this class directory. throws: IOException - if the file can't be read or has an invalid content. |
Methods inherited from org.geotools.referencing.operation.transform.VerticalTransform | final public int getSourceDimensions()(Code)(Java Doc) final public int getTargetDimensions()(Code)(Java Doc) abstract protected double heightOffset(double longitude, double latitude, double height) throws TransformException(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(Code)(Java Doc) public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws TransformException(Code)(Java Doc)
|
Methods inherited from org.geotools.referencing.operation.transform.AbstractMathTransform | MathTransform concatenate(MathTransform other, boolean applyOtherFirst)(Code)(Java Doc) public Shape createTransformedShape(Shape shape) throws TransformException(Code)(Java Doc) final Shape createTransformedShape(Shape shape, AffineTransform preTransform, AffineTransform postTransform, int orientation) throws TransformException(Code)(Java Doc) public Matrix derivative(Point2D point) throws TransformException(Code)(Java Doc) public Matrix derivative(DirectPosition point) throws TransformException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) public boolean equals(Object object)(Code)(Java Doc) protected String formatWKT(Formatter formatter)(Code)(Java Doc) public ParameterDescriptorGroup getParameterDescriptors()(Code)(Java Doc) public ParameterValueGroup getParameterValues()(Code)(Java Doc) abstract public int getSourceDimensions()(Code)(Java Doc) abstract public int getTargetDimensions()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public MathTransform inverse() throws NoninvertibleTransformException(Code)(Java Doc) static Matrix invert(Matrix matrix) throws NoninvertibleTransformException(Code)(Java Doc) public boolean isIdentity()(Code)(Java Doc) protected static boolean needCopy(int srcOff, int dimSource, int dstOff, int dimTarget, int numPts)(Code)(Java Doc) protected static double rollLongitude(double x)(Code)(Java Doc) static GeneralMatrix toGMatrix(Matrix matrix)(Code)(Java Doc) static XMatrix toXMatrix(Matrix matrix)(Code)(Java Doc) public Point2D transform(Point2D ptSrc, Point2D ptDst) throws TransformException(Code)(Java Doc) public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws TransformException(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(Code)(Java Doc)
|
|
|