QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
proj
qgsprojoperation.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprojoperation.h
3
------------------------
4
begin : May 2021
5
copyright : (C) 2021 Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef QGSPROJOPERATION_H
18
#define QGSPROJOPERATION_H
19
20
#include "qgis_core.h"
21
#include "
qgis_sip.h
"
22
23
#include <QString>
24
25
using namespace
Qt::StringLiterals;
26
33
class
CORE_EXPORT
QgsProjOperation
34
{
35
public
:
40
bool
isValid
()
const
{
return
mValid; }
41
45
QString
id
()
const
{
return
mId; }
46
50
QString
description
()
const
{
return
mDescription; }
51
55
QString
details
()
const
{
return
mDetails; }
56
57
#ifdef SIP_RUN
58
// clang-format off
59
SIP_PYOBJECT __repr__();
60
% MethodCode
61
QString str;
62
if
( !sipCpp->isValid() )
63
{
64
str = u
"<QgsProjOperation: invalid>"
_s;
65
}
66
else
67
{
68
str = u
"<QgsProjOperation: %1>"
_s.arg( sipCpp->id() );
69
}
70
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
71
% End
72
// clang-format on
73
#endif
74
75
// clang-format off
76
private
:
77
// clang-format on
78
79
bool
mValid
80
=
false
;
81
QString mId;
82
QString mDescription;
83
QString mDetails;
84
85
friend
class
QgsCoordinateReferenceSystemRegistry
;
86
friend
class
QgsCoordinateReferenceSystem
;
87
};
88
89
#endif
// QGSCELESTIALBODY_H
QgsProjOperation
Contains information about a PROJ operation.
Definition
qgsprojoperation.h:34
QgsProjOperation::id
QString id() const
ID of operation.
Definition
qgsprojoperation.h:45
QgsProjOperation::description
QString description() const
Description.
Definition
qgsprojoperation.h:50
QgsProjOperation::QgsCoordinateReferenceSystem
friend class QgsCoordinateReferenceSystem
Definition
qgsprojoperation.h:86
QgsProjOperation::details
QString details() const
Additional details.
Definition
qgsprojoperation.h:55
QgsProjOperation::QgsCoordinateReferenceSystemRegistry
friend class QgsCoordinateReferenceSystemRegistry
Definition
qgsprojoperation.h:85
QgsProjOperation::isValid
bool isValid() const
Returns true if the body is a valid object, or false if it is a null/invalid object.
Definition
qgsprojoperation.h:40
qgis_sip.h
Generated on
for QGIS API Documentation by
1.17.0