QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
core
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
31
class
CORE_EXPORT
QgsEllipsoidUtils
32
{
33
public
:
34
39
struct
EllipsoidParameters
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
56
QgsCoordinateReferenceSystem
crs
;
57
};
58
63
struct
EllipsoidDefinition
64
{
66
QString
acronym
;
68
QString
description
;
70
QgsEllipsoidUtils::EllipsoidParameters
parameters
;
71
};
72
77
static
EllipsoidParameters
ellipsoidParameters(
const
QString &ellipsoid );
78
84
static
QList< QgsEllipsoidUtils::EllipsoidDefinition > definitions();
85
91
static
QStringList acronyms();
92
93
#ifndef SIP_RUN
94
103
static
void
invalidateCache(
bool
disableCache =
false
);
104
#endif
105
};
106
107
#endif // QGSELLIPSOIDUTILS_H
108
QgsEllipsoidUtils::EllipsoidDefinition::parameters
QgsEllipsoidUtils::EllipsoidParameters parameters
Ellipsoid parameters.
Definition:
qgsellipsoidutils.h:70
QgsEllipsoidUtils::EllipsoidParameters::crs
QgsCoordinateReferenceSystem crs
Associated coordinate reference system.
Definition:
qgsellipsoidutils.h:56
QgsEllipsoidUtils::EllipsoidDefinition
Contains definition of an ellipsoid.
Definition:
qgsellipsoidutils.h:63
qgis_sip.h
QgsCoordinateReferenceSystem
Definition:
qgscoordinatereferencesystem.h:206
QgsEllipsoidUtils::EllipsoidParameters
Contains parameters for an ellipsoid.
Definition:
qgsellipsoidutils.h:39
QgsEllipsoidUtils::EllipsoidDefinition::description
QString description
Description of ellipsoid.
Definition:
qgsellipsoidutils.h:68
QgsEllipsoidUtils
Definition:
qgsellipsoidutils.h:31
qgscoordinatereferencesystem.h
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:66
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17