QGIS API Documentation 3.41.0-Master (d5b93354e9c)
|
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. | |
QgsCoordinateReferenceSystem | crs () const |
Returns the associated coordinate reference system, or an invalid CRS if no reference system is set. | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the associated crs. | |
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 38 of file qgsreferencedgeometry.h.
QgsReferencedGeometryBase::QgsReferencedGeometryBase | ( | const QgsCoordinateReferenceSystem & | crs = QgsCoordinateReferenceSystem() | ) |
Constructor for QgsReferencedGeometryBase, with the specified crs.
Definition at line 21 of file qgsreferencedgeometry.cpp.
|
inline |
Returns the associated coordinate reference system, or an invalid CRS if no reference system is set.
Definition at line 52 of file qgsreferencedgeometry.h.
|
inline |
Sets the associated crs.
Set to an invalid CRS if no reference system is required.
Definition at line 59 of file qgsreferencedgeometry.h.