1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/proj/qgsellipsoidutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsEllipsoidUtils
{
%Docstring(signature="appended")
Contains utility functions for working with ellipsoids and querying the
ellipsoid database.
%End
%TypeHeaderCode
#include "qgsellipsoidutils.h"
%End
public:
struct EllipsoidParameters
{
bool valid;
double semiMajor;
double semiMinor;
bool useCustomParameters;
double inverseFlattening;
QgsCoordinateReferenceSystem crs;
};
struct EllipsoidDefinition
{
QString acronym;
QString description;
QgsEllipsoidUtils::EllipsoidParameters parameters;
QString celestialBodyName;
};
static EllipsoidParameters ellipsoidParameters( const QString &ellipsoid );
%Docstring
Returns the parameters for the specified ``ellipsoid``. Results are
cached to allow for fast retrieval of parameters.
%End
static QList< QgsEllipsoidUtils::EllipsoidDefinition > definitions();
%Docstring
Returns a list of the definitions for all known ellipsoids from the
internal ellipsoid database.
.. seealso:: :py:func:`acronyms`
%End
static QStringList acronyms();
%Docstring
Returns a list of all known ellipsoid acronyms from the internal
ellipsoid database.
.. seealso:: :py:func:`definitions`
%End
static QList< QgsCelestialBody > celestialBodies();
%Docstring
Returns a list of all known celestial bodies.
.. note::
This method is an alias for :py:func:`QgsCoordinateReferenceSystemRegistry.celestialBodies()`.
.. warning::
This method requires PROJ 8.1 or later
:raises QgsNotSupportedException: on QGIS builds based on PROJ 8.0 or
earlier.
.. versionadded:: 3.20
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/proj/qgsellipsoidutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|