Object
Ellipsoid

public class Ellipsoid extends Object
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 Details

    • Ellipsoid

      public Ellipsoid()
      Creates a new Ellipsoid with default values.
  • Method Details

    • getName

      public String getName()
      Gets the name of the ellipsoid.
      Returns:
      The ellipsoid name, e.g., "WGS 84"
    • setName

      public void setName(String name)
      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

      public Double 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

      public void setSemiMinorAxis(Double semiMinorAxis)
      Sets the semi-minor axis (polar radius) of the ellipsoid.
      Parameters:
      semiMinorAxis - The semi-minor axis length in meters
    • getInverseFlattening

      public Double getInverseFlattening()
      Gets the inverse flattening value of the ellipsoid.
      Returns:
      The inverse flattening value, or null if not specified
    • setInverseFlattening

      public void setInverseFlattening(Double inverseFlattening)
      Sets the inverse flattening value of the ellipsoid.
      Parameters:
      inverseFlattening - The inverse flattening value
    • getId

      public Object getId()
      Gets the ID of the ellipsoid.
      Returns:
      The ellipsoid ID
    • setId

      public void setId(Object id)
      Sets the ID of the ellipsoid.
      Parameters:
      id - The ellipsoid ID