Class Ellipsoid
Object
Ellipsoid
Represents an ellipsoid definition in PROJJSON.
An ellipsoid is a mathematical model of the shape of the Earth (or other celestial body). It is defined by a semi-major axis (equatorial radius) and either a semi-minor axis (polar radius) or an inverse flattening value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the ID of the ellipsoid.Gets the inverse flattening value of the ellipsoid.getName()Gets the name of the ellipsoid.doubleGets the semi-major axis (equatorial radius) of the ellipsoid.Gets the semi-minor axis (polar radius) of the ellipsoid.voidSets the ID of the ellipsoid.voidsetInverseFlattening(Double inverseFlattening) Sets the inverse flattening value of the ellipsoid.voidSets the name of the ellipsoid.voidsetSemiMajorAxis(double semiMajorAxis) Sets the semi-major axis (equatorial radius) of the ellipsoid.voidsetSemiMinorAxis(Double semiMinorAxis) Sets the semi-minor axis (polar radius) of the ellipsoid.
-
Constructor Details
-
Ellipsoid
public Ellipsoid()Creates a new Ellipsoid with default values.
-
-
Method Details
-
getName
Gets the name of the ellipsoid.- Returns:
- The ellipsoid name, e.g., "WGS 84"
-
setName
Sets the name of the ellipsoid.- Parameters:
name- The ellipsoid name
-
getSemiMajorAxis
public double getSemiMajorAxis()Gets the semi-major axis (equatorial radius) of the ellipsoid.- Returns:
- The semi-major axis length in meters
-
setSemiMajorAxis
public void setSemiMajorAxis(double semiMajorAxis) Sets the semi-major axis (equatorial radius) of the ellipsoid.- Parameters:
semiMajorAxis- The semi-major axis length in meters
-
getSemiMinorAxis
Gets the semi-minor axis (polar radius) of the ellipsoid.- Returns:
- The semi-minor axis length in meters, or null if not specified
-
setSemiMinorAxis
Sets the semi-minor axis (polar radius) of the ellipsoid.- Parameters:
semiMinorAxis- The semi-minor axis length in meters
-
getInverseFlattening
Gets the inverse flattening value of the ellipsoid.- Returns:
- The inverse flattening value, or null if not specified
-
setInverseFlattening
Sets the inverse flattening value of the ellipsoid.- Parameters:
inverseFlattening- The inverse flattening value
-
getId
Gets the ID of the ellipsoid.- Returns:
- The ellipsoid ID
-
setId
Sets the ID of the ellipsoid.- Parameters:
id- The ellipsoid ID
-