EllipsoidEntry¶
- class geodetic_engine.catalog.EllipsoidEntry[source]¶
Bases:
RegistryEntryAn ellipsoid or sphere the active database holds.
Listed by
ellipsoids(). The axes are in metres whatever unit the database states them in, and whichever of the semi-minor axis and the inverse flattening it states, the other is derived from it.- semi_major_axis¶
Semi-major axis, in metres.
- semi_minor_axis¶
Semi-minor axis, in metres.
- inverse_flattening¶
Inverse flattening, or None for a sphere.
- celestial_body¶
The body the ellipsoid models, for example
"Earth", as the database names it; None when it states none.
- to_json_dict()[source]¶
The ellipsoid’s PROJJSON, exactly as PROJ exports it.
Example
>>> from geodetic_engine import catalog >>> grs80 = catalog.ellipsoids(code="EPSG:7019").one() >>> grs80.to_json_dict()["inverse_flattening"] 298.257222101
- __init__(*, auth_name, code, name, deprecated, aliases=(), replaced_by=(), semi_major_axis, semi_minor_axis, inverse_flattening, celestial_body=None)¶