QGIS API Documentation
3.2.0-Bonn (bc43194)
|
A base class for geometry primitives which are stored with an associated reference system. More...
#include <qgsreferencedgeometry.h>
Public Member Functions | |
QgsReferencedGeometryBase (const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) | |
Constructor for QgsReferencedGeometryBase, with the specified crs. More... | |
QgsCoordinateReferenceSystem | crs () const |
Returns the associated coordinate reference system, or an invalid CRS if no reference system is set. More... | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the associated crs. More... | |
A base class for geometry primitives which are stored with an associated reference system.
QgsReferencedGeometryBase classes represent some form of geometry primitive (such as rectangles) which have an optional coordinate reference system associated with them.
Definition at line 39 of file qgsreferencedgeometry.h.
QgsReferencedGeometryBase::QgsReferencedGeometryBase | ( | const QgsCoordinateReferenceSystem & | crs = QgsCoordinateReferenceSystem() | ) |
Constructor for QgsReferencedGeometryBase, with the specified crs.
Definition at line 20 of file qgsreferencedgeometry.cpp.
|
inline |
Returns the associated coordinate reference system, or an invalid CRS if no reference system is set.
Definition at line 53 of file qgsreferencedgeometry.h.
|
inline |
Sets the associated crs.
Set to an invalid CRS if no reference system is required.
Definition at line 60 of file qgsreferencedgeometry.h.