: ref_ell = sph_chk (spheroid)
: ref_ell = sph_chk (spheroid, req_fields)

Check validity of iput ellipsoids / spheroids.

Inputs:

  • spheroid: input ellipsoid or spheroid. Can be an ellipsoid or spheroid name, or ditto code (character string or scalar numeric value), or a numeric 2-element vector containing SemimajorAxis and Eccentricity values, or an ellipsoid / spheroid struct. If omitted a WGS84 ellipsoid struct is returned.
  • req_fields: cellstr array of required fields of input ellipsoid / spheroid struct; only used/useful when an ellipsoid / spheroid struct value is given. The default required fields are "SemimajorAxis", "Flattening" and "LengthUnit".
    Note: the validity of the fields input this way isn’t checked!

Output:
Ellipsoid / spheroid struct.

See also: .

Package: mapping