QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | List of all members
QgsReferencedGeometryBase Class Reference

A base class for geometry primitives which are stored with an associated reference system. More...

#include <qgsreferencedgeometry.h>

Inheritance diagram for QgsReferencedGeometryBase:
Inheritance graph
[legend]

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...
 

Detailed Description

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.

See also
QgsReferencedRectangle
Since
QGIS 3.0

Definition at line 38 of file qgsreferencedgeometry.h.

Constructor & Destructor Documentation

◆ QgsReferencedGeometryBase()

QgsReferencedGeometryBase::QgsReferencedGeometryBase ( const QgsCoordinateReferenceSystem crs = QgsCoordinateReferenceSystem())

Constructor for QgsReferencedGeometryBase, with the specified crs.

Definition at line 20 of file qgsreferencedgeometry.cpp.

Member Function Documentation

◆ crs()

QgsCoordinateReferenceSystem QgsReferencedGeometryBase::crs ( ) const
inline

Returns the associated coordinate reference system, or an invalid CRS if no reference system is set.

See also
setCrs()

Definition at line 52 of file qgsreferencedgeometry.h.

◆ setCrs()

void QgsReferencedGeometryBase::setCrs ( const QgsCoordinateReferenceSystem crs)
inline

Sets the associated crs.

Set to an invalid CRS if no reference system is required.

See also
crs()

Definition at line 59 of file qgsreferencedgeometry.h.


The documentation for this class was generated from the following files: