#include <qgsdatumtransformdialog.h>
|
| QgsDatumTransformDialog (const QgsCoordinateReferenceSystem &sourceCrs=QgsCoordinateReferenceSystem(), const QgsCoordinateReferenceSystem &destinationCrs=QgsCoordinateReferenceSystem(), bool allowCrsChanges=false, bool showMakeDefault=true, bool forceChoice=true, QPair< int, int > selectedDatumTransforms=qMakePair(-1, -1), QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags(), const QString &selectedProj=QString(), QgsMapCanvas *mapCanvas=nullptr, bool allowFallback=true) |
| Constructor for QgsDatumTransformDialog. More...
|
|
void | accept () override |
|
void | reject () override |
|
TransformInfo | selectedDatumTransform () |
| Returns the source and destination transforms, each being a pair of QgsCoordinateReferenceSystems and datum transform code. More...
|
|
- Note
- not available in Python bindings
Definition at line 34 of file qgsdatumtransformdialog.h.
◆ QgsDatumTransformDialog()
QgsDatumTransformDialog::QgsDatumTransformDialog |
( |
const QgsCoordinateReferenceSystem & |
sourceCrs = QgsCoordinateReferenceSystem() , |
|
|
const QgsCoordinateReferenceSystem & |
destinationCrs = QgsCoordinateReferenceSystem() , |
|
|
bool |
allowCrsChanges = false , |
|
|
bool |
showMakeDefault = true , |
|
|
bool |
forceChoice = true , |
|
|
QPair< int, int > |
selectedDatumTransforms = qMakePair( -1, -1 ) , |
|
|
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
f = Qt::WindowFlags() , |
|
|
const QString & |
selectedProj = QString() , |
|
|
QgsMapCanvas * |
mapCanvas = nullptr , |
|
|
bool |
allowFallback = true |
|
) |
| |
◆ accept()
void QgsDatumTransformDialog::accept |
( |
| ) |
|
|
override |
◆ reject()
void QgsDatumTransformDialog::reject |
( |
| ) |
|
|
override |
◆ run()
Runs the dialog (if required) prompting for the desired transform to use from sourceCrs to destinationCrs, updating the current project transform context as required based on the results of the run.
This handles EVERYTHING, including only showing the dialog if multiple choices exist and the user has asked to be prompted, not re-adding transforms already in the current project context, etc.
The optional mapCanvas argument can be used to refine the dialog's display based on the current map canvas extent.
- Since
- QGIS 3.8
Definition at line 34 of file qgsdatumtransformdialog.cpp.
◆ selectedDatumTransform()
Returns the source and destination transforms, each being a pair of QgsCoordinateReferenceSystems and datum transform code.
- Since
- 3.0
Definition at line 232 of file qgsdatumtransformdialog.cpp.
◆ TestQgsDatumTransformDialog
friend class TestQgsDatumTransformDialog |
|
friend |
The documentation for this class was generated from the following files: