Class GeocentricConverter

  • All Implemented Interfaces:
    java.io.Serializable

    public class GeocentricConverter
    extends java.lang.Object
    implements java.io.Serializable
    Provides conversions between Geodetic coordinates (latitude, longitude in radians and height in meters) and Geocentric coordinates (X, Y, Z) in meters.

    Provenance: Ported from GEOCENTRIC by the U.S. Army Topographic Engineering Center via PROJ.4

    See Also:
    Serialized Form
    • Field Detail

      • a

        double a
      • b

        double b
      • a2

        double a2
      • b2

        double b2
      • e2

        double e2
      • ep2

        double ep2
    • Constructor Detail

      • GeocentricConverter

        public GeocentricConverter​(Ellipsoid ellipsoid)
      • GeocentricConverter

        public GeocentricConverter​(double a,
                                   double b,
                                   double e2)
    • Method Detail

      • overrideWithWGS84Params

        public void overrideWithWGS84Params()
      • convertGeodeticToGeocentric

        public void convertGeodeticToGeocentric​(ProjCoordinate p)
        Converts geodetic coordinates (latitude, longitude, and height) to geocentric coordinates (X, Y, Z), according to the current ellipsoid parameters.

        Latitude : Geodetic latitude in radians (input) Longitude : Geodetic longitude in radians (input) Height : Geodetic height, in meters (input)

        X : Calculated Geocentric X coordinate, in meters (output) Y : Calculated Geocentric Y coordinate, in meters (output) Z : Calculated Geocentric Z coordinate, in meters (output)

      • convertGeocentricToGeodetic

        public void convertGeocentricToGeodetic​(ProjCoordinate p)
      • convertGeocentricToGeodeticIter

        public void convertGeocentricToGeodeticIter​(ProjCoordinate p)