QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
A widget for definition a custom coordinate reference system. More...
#include <qgscrsdefinitionwidget.h>
Signals | |
void | crsChanged () |
Emitted when the CRS defined in the widget is changed. More... | |
Public Member Functions | |
QgsCrsDefinitionWidget (QWidget *parent=nullptr) | |
Constructor for QgsCrsDefinitionWidget, with the specified parent widget. More... | |
QgsCoordinateReferenceSystem | crs () const |
Returns the current CRS as defined in the widget. More... | |
QString | definitionString () const |
Returns the current definition string. More... | |
Qgis::CrsDefinitionFormat | format () const |
Returns the selected CRS format. More... | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the current crs to display in the widget. More... | |
void | setCrs (const QgsCoordinateReferenceSystem &crs, Qgis::CrsDefinitionFormat nativeFormat) |
Sets the current crs to display in the widget. More... | |
void | setDefinitionString (const QString &definition) |
Sets the current definition string. More... | |
void | setFormat (Qgis::CrsDefinitionFormat format) |
Sets the CRS format. More... | |
A widget for definition a custom coordinate reference system.
Definition at line 31 of file qgscrsdefinitionwidget.h.
QgsCrsDefinitionWidget::QgsCrsDefinitionWidget | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsCrsDefinitionWidget, with the specified parent widget.
Definition at line 25 of file qgscrsdefinitionwidget.cpp.
QgsCoordinateReferenceSystem QgsCrsDefinitionWidget::crs | ( | ) | const |
Returns the current CRS as defined in the widget.
An invalid CRS may be returned if no CRS is defined in the widget.
Definition at line 42 of file qgscrsdefinitionwidget.cpp.
|
signal |
Emitted when the CRS defined in the widget is changed.
QString QgsCrsDefinitionWidget::definitionString | ( | ) | const |
Returns the current definition string.
This represents the unaltered user-entered definition string, which may represent either a WKT or PROJ string (see format()), and may not represent a valid CRS definition.
Definition at line 91 of file qgscrsdefinitionwidget.cpp.
Qgis::CrsDefinitionFormat QgsCrsDefinitionWidget::format | ( | ) | const |
Returns the selected CRS format.
Definition at line 81 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the current crs to display in the widget.
Definition at line 60 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setCrs | ( | const QgsCoordinateReferenceSystem & | crs, |
Qgis::CrsDefinitionFormat | nativeFormat | ||
) |
Sets the current crs to display in the widget.
The nativeFormat argument specifies the format (e.g. WKT or PROJ) is natively associated with the custom CRS.
Definition at line 65 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setDefinitionString | ( | const QString & | definition | ) |
Sets the current definition string.
This represents the unaltered user-entered definition string, which may represent either a WKT or PROJ string (see format()), and may not represent a valid CRS definition.
Definition at line 96 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setFormat | ( | Qgis::CrsDefinitionFormat | format | ) |