Class GeocentricConverter

java.lang.Object
org.locationtech.proj4j.datum.GeocentricConverter
All Implemented Interfaces:
Serializable

public class GeocentricConverter extends Object implements 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:
  • Field Details

    • a

      double a
    • b

      double b
    • a2

      double a2
    • b2

      double b2
    • e2

      double e2
    • ep2

      double ep2
  • Constructor Details

    • GeocentricConverter

      public GeocentricConverter(Ellipsoid ellipsoid)
    • GeocentricConverter

      public GeocentricConverter(double a, double b, double e2)
  • Method Details

    • overrideWithWGS84Params

      public void overrideWithWGS84Params()
    • isEqual

      public boolean isEqual(GeocentricConverter gc)
    • 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)