|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.Identifiable org.deegree.crs.transformations.Transformation org.deegree.crs.transformations.coordinate.CRSTransformation org.deegree.crs.transformations.coordinate.GeocentricTransform
public class GeocentricTransform
The GeocentricTransform
class is used to create a transformation between a geocentric CRS (having
lat-lon coordinates) and it's geodetic CRS (having x-y-z) coordinates and vice versa.
Constructor Summary | |
---|---|
GeocentricTransform(CoordinateSystem source,
GeocentricCRS target)
|
|
GeocentricTransform(CoordinateSystem source,
GeocentricCRS target,
Identifiable id)
|
Method Summary | |
---|---|
java.util.List<javax.vecmath.Point3d> |
doTransform(java.util.List<javax.vecmath.Point3d> srcPts)
Do a transformation, e.g. the incoming data will be transformed into other coordinates. |
java.lang.String |
getImplementationName()
|
double |
getSemiMajorAxis()
|
double |
getSemiMinorAxis()
|
void |
inverse()
This method flags the transformation about it's state. |
boolean |
isIdentity()
|
protected void |
toGeoCentric(java.util.List<javax.vecmath.Point3d> srcPts)
Converts geographic (longitude, latitude, height) to cartesian (x,y,z) coordinates. |
protected void |
toGeographic(java.util.List<javax.vecmath.Point3d> srcPts)
Converts geocentric coordinates (x, y, z) to geodetic coordinates (longitude, latitude, height), according to the current ellipsoid parameters. |
Methods inherited from class org.deegree.crs.transformations.Transformation |
---|
areInverse, createFromTo, doTransform, doTransform, getSourceCRS, getSourceDimension, getTargetCRS, getTargetDimension, getTransformationName, getTransformationPath, isInverseTransform, setSourceCRS |
Methods inherited from class org.deegree.crs.Identifiable |
---|
checkForNullObject, checkForNullObject, checkForNullObject, equals, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions, hasID, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeocentricTransform(CoordinateSystem source, GeocentricCRS target, Identifiable id)
source
- the geographic crs.target
- the geocentric crs.id
- an identifiable instance containing information about this transformationpublic GeocentricTransform(CoordinateSystem source, GeocentricCRS target)
source
- the geographic crs.target
- the geocentric crs.Method Detail |
---|
public void inverse()
Transformation
inverse
in class Transformation
public java.util.List<javax.vecmath.Point3d> doTransform(java.util.List<javax.vecmath.Point3d> srcPts)
Transformation
doTransform
in class Transformation
srcPts
- the points which must be transformed, expected are following values either, long_1, lat_1, height_1,
long_2, lat_2, height_2. or long_1, lat_1, long_2, lat_2
protected void toGeographic(java.util.List<javax.vecmath.Point3d> srcPts)
The method used here is derived from "An Improved Algorithm for Geocentric to Geodetic Coordinate Conversion", by Ralph Toms, Feb 1996 UCRL-JC-123138.
srcPts
- the points which must be transformed.protected void toGeoCentric(java.util.List<javax.vecmath.Point3d> srcPts)
srcPts
- to convert.public boolean isIdentity()
isIdentity
in class Transformation
public final double getSemiMajorAxis()
public final double getSemiMinorAxis()
public java.lang.String getImplementationName()
getImplementationName
in class Transformation
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org