Class: QgsEllipsoidUtils

class qgis.core.QgsEllipsoidUtils

Bases: sip.wrapper

Contains utility functions for working with ellipsoids and querying the ellipsoid database.

New in version 3.0:

Methods

acronyms

Returns a list of all known ellipsoid acronyms from the internal ellipsoid database.

celestialBodies

Returns a list of all known celestial bodies.

definitions

Returns a list of the definitions for all known ellipsoids from the internal ellipsoid database.

ellipsoidParameters

Returns the parameters for the specified ellipsoid.

class EllipsoidDefinition
class EllipsoidDefinition(QgsEllipsoidUtils.EllipsoidDefinition) None

Bases: sip.wrapper

acronym
celestialBodyName
description
parameters
class EllipsoidParameters
class EllipsoidParameters(QgsEllipsoidUtils.EllipsoidParameters) None

Bases: sip.wrapper

crs
inverseFlattening
semiMajor
semiMinor
useCustomParameters
valid
acronyms() List[str]

Returns a list of all known ellipsoid acronyms from the internal ellipsoid database.

See also

definitions()

Return type

List[str]

celestialBodies() List[QgsCelestialBody]

Returns a list of all known celestial bodies.

Note

This method is an alias for QgsCoordinateReferenceSystemRegistry.celestialBodies().

Warning

This method requires PROJ 8.1 or later

Raises

QgsNotSupportedException – on QGIS builds based on PROJ 8.0 or earlier.

New in version 3.20.

Return type

List[QgsCelestialBody]

definitions() List[QgsEllipsoidUtils.EllipsoidDefinition]

Returns a list of the definitions for all known ellipsoids from the internal ellipsoid database.

See also

acronyms()

Return type

List[QgsEllipsoidUtils.EllipsoidDefinition]

ellipsoidParameters(ellipsoid: str) QgsEllipsoidUtils.EllipsoidParameters

Returns the parameters for the specified ellipsoid. Results are cached to allow for fast retrieval of parameters.

Parameters

ellipsoid (str) –

Return type

QgsEllipsoidUtils.EllipsoidParameters