Class ReferenceEllipsoid
The ReferenceEllipsoid class defines a geodetic reference ellipsoid used as a standard for geodetic measurements. The World Geodetic System 1984 (WGS84) ellipsoid is the current standard for most geographic and geodetic coordinate systems, including GPS. The WGS84 ellipsoid is provided as a static instance of this class.
The ellipsoid (actually an oblate spheroid) is uniquely specified by two parameters, the semimajor (or equatorial) radius and the ellipticity or flattening. In practice, the reciprocal of the flattening is specified.
The ellipsoid is an approximation of the shape of the earth. Although not exact, the ellipsoid is much more accurate than a spherical approximation and is still mathematically simple. The geoid is a still closer approximation of the shape of the earth (intended to represent the mean sea level), and is generally specified by it's deviation from the ellipsoid.
Different reference ellipsoids give more or less accurate results at different locations, so it was previously common for different nations to use ellipsoids that were more accurate for their areas. More recent efforts have provided ellipsoids with better overall global accuracy, such as the WGS84 ellipsiod, and these have now largely supplanted the others.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ReferenceEllipsoid
Geodetic Reference System 1980 ellipsoid.static final ReferenceEllipsoid
The International 1924 reference ellipsoid, one of the earliest "global" ellipsoids.static final ReferenceEllipsoid
The World Geodetic System 1972 reference ellipsoid.static final ReferenceEllipsoid
The World Geodetic System 1984 reference ellipsoid. -
Constructor Summary
ConstructorDescriptionReferenceEllipsoid
(double semimajorAxis, double inverseFlattening) Constructs an instance of a reference ellipsoid. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the (first) eccentricity of this reference ellipsoid.double
Returns the square of the (first) eccentricity.double
Returns the flattening or ellipticity of this reference ellipsoid.double
Returns the square of the second eccentricity of this reference ellipsoid.Returns the semimajor or equatorial radius of this reference ellipsoid.Returns the semiminor or polar radius of this reference ellipsoid.double
meridionalArc
(double phi) Returns the meridional arc, the true meridional distance on the ellipsoid from the equator to the specified latitude, in meters.meridionalArc
(Measurable<Angle> latitude) Returns the meridional arc, the true meridional distance on the ellipsoid from the equator to the specified latitude.double
meridionalRadiusOfCurvature
(double phi) Returns the radius of curvature in the meridian for this reference ellipsoid at the specified latitude.meridionalRadiusOfCurvature
(Measurable<Angle> latitude) Returns the radius of curvature in the meridian for this reference ellipsoid at the specified latitude.double
verticalRadiusOfCurvature
(double phi) Returns the radius of curvature in the prime vertical for this reference ellipsoid at the specified latitude.verticalRadiusOfCurvature
(Measurable<Angle> latitude) Returns the radius of curvature in the prime vertical for this reference ellipsoid at the specified latitude.
-
Field Details
-
WGS84
The World Geodetic System 1984 reference ellipsoid. -
GRS80
Geodetic Reference System 1980 ellipsoid. -
WGS72
The World Geodetic System 1972 reference ellipsoid. -
INTERNATIONAL1924
The International 1924 reference ellipsoid, one of the earliest "global" ellipsoids.
-
-
Constructor Details
-
ReferenceEllipsoid
public ReferenceEllipsoid(double semimajorAxis, double inverseFlattening) Constructs an instance of a reference ellipsoid.- Parameters:
semimajorAxis
- The semimajor or equatorial radius of this reference ellipsoid, in meters.inverseFlattening
- The reciprocal of the ellipticity or flattening of this reference ellipsoid (dimensionless).
-
-
Method Details
-
getSemimajorAxis
Returns the semimajor or equatorial radius of this reference ellipsoid.- Returns:
- The semimajor radius.
-
getsSemiminorAxis
Returns the semiminor or polar radius of this reference ellipsoid.- Returns:
- The semiminor radius.
-
getFlattening
public double getFlattening()Returns the flattening or ellipticity of this reference ellipsoid.- Returns:
- The flattening.
-
getEccentricity
public double getEccentricity()Returns the (first) eccentricity of this reference ellipsoid.- Returns:
- The eccentricity.
-
getEccentricitySquared
public double getEccentricitySquared()Returns the square of the (first) eccentricity. This number is frequently used in ellipsoidal calculations.- Returns:
- The square of the eccentricity.
-
getSecondEccentricitySquared
public double getSecondEccentricitySquared()Returns the square of the second eccentricity of this reference ellipsoid. This number is frequently used in ellipsoidal calculations.- Returns:
- The square of the second eccentricity.
-
verticalRadiusOfCurvature
public double verticalRadiusOfCurvature(double phi) Returns the radius of curvature in the prime vertical for this reference ellipsoid at the specified latitude.- Parameters:
phi
- The local latitude (radians).- Returns:
- The radius of curvature in the prime vertical (meters).
-
verticalRadiusOfCurvature
Returns the radius of curvature in the prime vertical for this reference ellipsoid at the specified latitude.- Parameters:
latitude
- The local latitude.- Returns:
- The radius of curvature in the prime vertical.
-
meridionalRadiusOfCurvature
public double meridionalRadiusOfCurvature(double phi) Returns the radius of curvature in the meridian for this reference ellipsoid at the specified latitude.- Parameters:
phi
- The local latitude (in radians).- Returns:
- The radius of curvature in the meridian (in meters).
-
meridionalRadiusOfCurvature
Returns the radius of curvature in the meridian for this reference ellipsoid at the specified latitude.- Parameters:
latitude
- The local latitude (in radians).- Returns:
- The radius of curvature in the meridian (in meters).
-
meridionalArc
public double meridionalArc(double phi) Returns the meridional arc, the true meridional distance on the ellipsoid from the equator to the specified latitude, in meters.- Parameters:
phi
- The local latitude (in radians).- Returns:
- The meridional arc (in meters).
-
meridionalArc
Returns the meridional arc, the true meridional distance on the ellipsoid from the equator to the specified latitude.- Parameters:
latitude
- The local latitude.- Returns:
- The meridional arc.
-