QGIS API Documentation 3.41.0-Master (d5b93354e9c)
Loading...
Searching...
No Matches
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.
 
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.
 

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

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 21 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: