QGIS API Documentation 3.43.0-Master (b60ef06885e)
|
A dialog for configuring transform operations between coordinate reference systems. More...
#include <qgsdatumtransformdialog.h>
Classes | |
struct | TransformInfo |
Dialog transformation entry info. More... | |
Public Member Functions | |
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. | |
void | accept () override |
void | reject () override |
TransformInfo | selectedDatumTransform () |
Returns the source and destination transforms, each being a pair of QgsCoordinateReferenceSystems and datum transform code. | |
Static Public Member Functions | |
static bool | run (const QgsCoordinateReferenceSystem &sourceCrs=QgsCoordinateReferenceSystem(), const QgsCoordinateReferenceSystem &destinationCrs=QgsCoordinateReferenceSystem(), QWidget *parent=nullptr, QgsMapCanvas *mapCanvas=nullptr, const QString &windowTitle=QString()) |
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. | |
Friends | |
class | TestQgsDatumTransformDialog |
A dialog for configuring transform operations between coordinate reference systems.
Definition at line 35 of file qgsdatumtransformdialog.h.
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 |
||
) |
Constructor for QgsDatumTransformDialog.
Definition at line 75 of file qgsdatumtransformdialog.cpp.
|
override |
Definition at line 151 of file qgsdatumtransformdialog.cpp.
|
override |
Definition at line 180 of file qgsdatumtransformdialog.cpp.
|
static |
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.
Definition at line 35 of file qgsdatumtransformdialog.cpp.
QgsDatumTransformDialog::TransformInfo QgsDatumTransformDialog::selectedDatumTransform | ( | ) |
Returns the source and destination transforms, each being a pair of QgsCoordinateReferenceSystems and datum transform code.
Definition at line 226 of file qgsdatumtransformdialog.cpp.
|
friend |
Definition at line 134 of file qgsdatumtransformdialog.h.