QGIS API Documentation
3.20.0-Odense (decaadbb31)
src
core
proj
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
"
21
#include "
qgscoordinatereferencesystem.h
"
22
#include <QStringList>
23
24
class
QgsCelestialBody
;
25
33
class
CORE_EXPORT
QgsEllipsoidUtils
34
{
35
public
:
36
41
struct
EllipsoidParameters
42
{
44
bool
valid{
true
};
45
47
double
semiMajor{ -1.0 };
49
double
semiMinor{ -1.0 };
50
52
bool
useCustomParameters{
false
};
53
55
double
inverseFlattening{ -1.0 };
56
58
QgsCoordinateReferenceSystem
crs
;
59
60
};
61
66
struct
EllipsoidDefinition
67
{
69
QString
acronym
;
71
QString
description
;
73
QgsEllipsoidUtils::EllipsoidParameters
parameters
;
74
82
QString
celestialBodyName
;
83
};
84
89
static
EllipsoidParameters
ellipsoidParameters(
const
QString &ellipsoid );
90
96
static
QList< QgsEllipsoidUtils::EllipsoidDefinition > definitions();
97
103
static
QStringList acronyms();
104
116
static
QList< QgsCelestialBody > celestialBodies();
117
118
#ifndef SIP_RUN
119
128
static
void
invalidateCache(
bool
disableCache =
false
);
129
#endif
130
};
131
132
#endif
// QGSELLIPSOIDUTILS_H
133
QgsCelestialBody
Contains information about a celestial body.
Definition:
qgscelestialbody.h:32
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition:
qgscoordinatereferencesystem.h:211
QgsEllipsoidUtils
Contains utility functions for working with ellipsoids and querying the ellipsoid database.
Definition:
qgsellipsoidutils.h:34
qgis_sip.h
qgscoordinatereferencesystem.h
QgsEllipsoidUtils::EllipsoidDefinition
Contains definition of an ellipsoid.
Definition:
qgsellipsoidutils.h:67
QgsEllipsoidUtils::EllipsoidDefinition::acronym
QString acronym
authority:code for QGIS builds with proj version 6 or greater, or custom acronym for ellipsoid for ea...
Definition:
qgsellipsoidutils.h:69
QgsEllipsoidUtils::EllipsoidDefinition::celestialBodyName
QString celestialBodyName
Name of the associated celestial body (e.g.
Definition:
qgsellipsoidutils.h:82
QgsEllipsoidUtils::EllipsoidDefinition::description
QString description
Description of ellipsoid.
Definition:
qgsellipsoidutils.h:71
QgsEllipsoidUtils::EllipsoidDefinition::parameters
QgsEllipsoidUtils::EllipsoidParameters parameters
Ellipsoid parameters.
Definition:
qgsellipsoidutils.h:73
QgsEllipsoidUtils::EllipsoidParameters
Contains parameters for an ellipsoid.
Definition:
qgsellipsoidutils.h:42
QgsEllipsoidUtils::EllipsoidParameters::crs
QgsCoordinateReferenceSystem crs
Associated coordinate reference system.
Definition:
qgsellipsoidutils.h:58
Generated on Sun Jun 20 2021 10:45:59 for QGIS API Documentation by
1.9.1