QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsreferencedgeometry.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsreferencedgeometry.cpp
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 #include "qgsreferencedgeometry.h"
19 
21  : mCrs( crs )
22 {}
23 
25  : QgsRectangle( rect )
27 {}
28 
30 {
31  return QgsRectangle::operator==( other ) && crs() == other.crs();
32 }
33 
35 {
36  return !( *this == other );
37 }
38 
40  : QgsPointXY( point )
42 {}
43 
45 {
46  return QgsPointXY::operator==( other ) && crs() == other.crs();
47 }
48 
50 {
51  return !( *this == other );
52 }
QgsReferencedPointXY::operator==
bool operator==(const QgsReferencedPointXY &other)
Definition: qgsreferencedgeometry.cpp:44
QgsReferencedRectangle
Definition: qgsreferencedgeometry.h:72
crs
const QgsCoordinateReferenceSystem & crs
Definition: qgswfsgetfeature.cpp:105
QgsPointXY::operator==
bool operator==(const QgsPointXY &other)
equality operator
Definition: qgspointxy.h:249
QgsRectangle
Definition: qgsrectangle.h:41
QgsReferencedRectangle::QgsReferencedRectangle
QgsReferencedRectangle()=default
Constructor for QgsReferencedRectangle.
QgsReferencedRectangle::operator!=
bool operator!=(const QgsReferencedRectangle &other)
Definition: qgsreferencedgeometry.cpp:34
QgsReferencedRectangle::operator==
bool operator==(const QgsReferencedRectangle &other)
Definition: qgsreferencedgeometry.cpp:29
QgsRectangle::operator==
bool operator==(const QgsRectangle &r1) const
Comparison operator.
Definition: qgsrectangle.h:489
QgsReferencedPointXY::QgsReferencedPointXY
QgsReferencedPointXY()=default
Constructor for QgsReferencedPointXY.
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
qgsreferencedgeometry.h
QgsReferencedGeometryBase
Definition: qgsreferencedgeometry.h:38
QgsReferencedGeometryBase::QgsReferencedGeometryBase
QgsReferencedGeometryBase(const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem())
Constructor for QgsReferencedGeometryBase, with the specified crs.
Definition: qgsreferencedgeometry.cpp:20
QgsReferencedPointXY::operator!=
bool operator!=(const QgsReferencedPointXY &other)
Definition: qgsreferencedgeometry.cpp:49