QGIS API Documentation
3.14.0-Pi (9f7028fd23)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
geometry
qgsreferencedgeometry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsreferencedgeometry.h
3
----------------------
4
begin : June 2017
5
copyright : (C) 2017 by 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
18
#ifndef QGSREFERENCEDGEOMETRY_H
19
#define QGSREFERENCEDGEOMETRY_H
20
21
#include "
qgis_sip.h
"
22
#include "qgis_core.h"
23
#include "
qgscoordinatereferencesystem.h
"
24
#include "
qgsrectangle.h
"
25
38
class
CORE_EXPORT
QgsReferencedGeometryBase
39
{
40
public
:
41
45
QgsReferencedGeometryBase
(
const
QgsCoordinateReferenceSystem
&
crs
=
QgsCoordinateReferenceSystem
() );
46
52
QgsCoordinateReferenceSystem
crs
()
const
{
return
mCrs; }
53
59
void
setCrs
(
const
QgsCoordinateReferenceSystem
&
crs
) { mCrs =
crs
; }
60
61
private
:
62
63
QgsCoordinateReferenceSystem
mCrs;
64
65
};
66
72
class
CORE_EXPORT
QgsReferencedRectangle
:
public
QgsRectangle
,
public
QgsReferencedGeometryBase
73
{
74
public
:
75
80
QgsReferencedRectangle
(
const
QgsRectangle
&rectangle,
const
QgsCoordinateReferenceSystem
&
crs
);
81
85
QgsReferencedRectangle
() =
default
;
86
88
operator
QVariant()
const
89
{
90
return
QVariant::fromValue( *
this
);
91
}
92
93
bool
operator==
(
const
QgsReferencedRectangle
&other );
94
bool
operator!=
(
const
QgsReferencedRectangle
&other );
95
96
#ifdef SIP_RUN
97
SIP_PYOBJECT __repr__();
98
% MethodCode
99
QString str = QStringLiteral(
"<QgsReferencedRectangle: %1 (%2)>"
).arg( sipCpp->asWktCoordinates(), sipCpp->crs().authid() );
100
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
101
% End
102
#endif
103
104
};
105
106
Q_DECLARE_METATYPE
(
QgsReferencedRectangle
)
107
108
113
class CORE_EXPORT
QgsReferencedPointXY
: public
QgsPointXY
, public
QgsReferencedGeometryBase
114
{
115
public
:
116
121
QgsReferencedPointXY
(
const
QgsPointXY
&point,
const
QgsCoordinateReferenceSystem
&
crs
);
122
126
QgsReferencedPointXY
() =
default
;
127
129
operator
QVariant()
const
130
{
131
return
QVariant::fromValue( *
this
);
132
}
133
134
bool
operator==
(
const
QgsReferencedPointXY
&other );
135
bool
operator!=
(
const
QgsReferencedPointXY
&other );
136
137
#ifdef SIP_RUN
138
SIP_PYOBJECT __repr__();
139
% MethodCode
140
QString str = QStringLiteral(
"<QgsReferencedPointXY: %1 (%2)>"
).arg( sipCpp->asWkt(), sipCpp->crs().authid() );
141
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
142
% End
143
#endif
144
145
};
146
147
Q_DECLARE_METATYPE
(
QgsReferencedPointXY
)
148
149
#endif // QGSREFERENCEDGEOMETRY_H
qgsrectangle.h
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:399
QgsReferencedRectangle
Definition:
qgsreferencedgeometry.h:72
crs
const QgsCoordinateReferenceSystem & crs
Definition:
qgswfsgetfeature.cpp:105
operator!=
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:404
QgsRectangle
Definition:
qgsrectangle.h:41
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(QgsMeshTimeSettings)
qgis_sip.h
QgsRectangle::operator==
bool operator==(const QgsRectangle &r1) const
Comparison operator.
Definition:
qgsrectangle.h:489
QgsReferencedGeometryBase::setCrs
void setCrs(const QgsCoordinateReferenceSystem &crs)
Sets the associated crs.
Definition:
qgsreferencedgeometry.h:59
QgsCoordinateReferenceSystem
Definition:
qgscoordinatereferencesystem.h:206
QgsReferencedPointXY
Definition:
qgsreferencedgeometry.h:113
QgsPointXY
Definition:
qgspointxy.h:43
QgsReferencedGeometryBase::crs
QgsCoordinateReferenceSystem crs() const
Returns the associated coordinate reference system, or an invalid CRS if no reference system is set.
Definition:
qgsreferencedgeometry.h:52
QgsRectangle::operator!=
bool operator!=(const QgsRectangle &r1) const
Comparison operator.
Definition:
qgsrectangle.h:501
QgsReferencedGeometryBase
Definition:
qgsreferencedgeometry.h:38
qgscoordinatereferencesystem.h
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17