2017-04-18 09:53:00 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsellipsoidutils.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsEllipsoidUtils
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Contains utility functions for working with ellipsoids and querying the ellipsoid database.
|
2017-04-18 09:53:00 +10:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsellipsoidutils.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
struct EllipsoidParameters
|
|
|
|
{
|
|
|
|
bool valid;
|
|
|
|
|
|
|
|
double semiMajor;
|
|
|
|
double semiMinor;
|
|
|
|
|
|
|
|
bool useCustomParameters;
|
|
|
|
|
|
|
|
double inverseFlattening;
|
|
|
|
|
|
|
|
QgsCoordinateReferenceSystem crs;
|
|
|
|
};
|
|
|
|
|
2017-04-18 10:18:48 +10:00
|
|
|
struct EllipsoidDefinition
|
|
|
|
{
|
|
|
|
QString acronym;
|
|
|
|
QString description;
|
|
|
|
QgsEllipsoidUtils::EllipsoidParameters parameters;
|
|
|
|
};
|
|
|
|
|
2017-04-18 09:53:00 +10:00
|
|
|
static EllipsoidParameters ellipsoidParameters( const QString &ellipsoid );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the parameters for the specified ``ellipsoid``.
|
|
|
|
Results are cached to allow for fast retrieval of parameters.
|
2017-04-18 09:53:00 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-18 10:18:48 +10:00
|
|
|
static QList< QgsEllipsoidUtils::EllipsoidDefinition > definitions();
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a list of the definitions for all known ellipsoids from the
|
|
|
|
internal ellipsoid database.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`acronyms`
|
2017-04-18 10:18:48 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
static QStringList acronyms();
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a list of all known ellipsoid acronyms from the internal
|
|
|
|
ellipsoid database.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`definitions`
|
2017-04-18 10:18:48 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-18 09:53:00 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsellipsoidutils.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|