QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgsellipsoidutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsellipsoidutils.h
3 --------------------
4 Date : April 2017
5 Copyright : (C) 2017 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSELLIPSOIDUTILS_H
17#define QGSELLIPSOIDUTILS_H
18
19#include "qgis_core.h"
20#include "qgis_sip.h"
22#include <QStringList>
23
25
32class CORE_EXPORT QgsEllipsoidUtils
33{
34 public:
35
40 {
42 bool valid{ true };
43
45 double semiMajor{ -1.0 };
47 double semiMinor{ -1.0 };
48
50 bool useCustomParameters{ false };
51
53 double inverseFlattening{ -1.0 };
54
57
58 };
59
81
86 static EllipsoidParameters ellipsoidParameters( const QString &ellipsoid );
87
93 static QList< QgsEllipsoidUtils::EllipsoidDefinition > definitions();
94
100 static QStringList acronyms();
101
113 static QList< QgsCelestialBody > celestialBodies();
114
115#ifndef SIP_RUN
116
125 static void invalidateCache( bool disableCache = false );
126#endif
127};
128
129#endif // QGSELLIPSOIDUTILS_H
130
Contains information about a celestial body.
This class represents a coordinate reference system (CRS).
Contains utility functions for working with ellipsoids and querying the ellipsoid database.
Contains definition of an ellipsoid.
QString acronym
authority:code for QGIS builds with proj version 6 or greater, or custom acronym for ellipsoid for ea...
QString celestialBodyName
Name of the associated celestial body (e.g.
QString description
Description of ellipsoid.
QgsEllipsoidUtils::EllipsoidParameters parameters
Ellipsoid parameters.
Contains parameters for an ellipsoid.
QgsCoordinateReferenceSystem crs
Associated coordinate reference system.