QGIS API Documentation 3.38.0-Grenoble (exported)
|
Helper class for transform of coordinates (QgsPoint) to a different coordinate reference system. More...
#include <qgsquickcoordinatetransformer.h>
Signals | |
void | destinationCrsChanged () |
Destination CRS. | |
void | projectedPositionChanged () |
Projected (destination) position (in destination CRS) | |
void | sourceCrsChanged () |
Source CRS, default 4326. | |
void | sourcePositionChanged () |
Source position (in source CRS) | |
void | transformContextChanged () |
Transformation context, can be set from QgsQuickMapSettings::transformContext() | |
Public Member Functions | |
QgsQuickCoordinateTransformer (QObject *parent=nullptr) | |
Creates new coordinate transformer. | |
QgsCoordinateReferenceSystem | destinationCrs () const |
Destination CRS. | |
QgsPoint | projectedPosition () const |
Projected (destination) position (in destination CRS) | |
void | setDestinationCrs (const QgsCoordinateReferenceSystem &destinationCrs) |
Destination CRS. | |
void | setSourceCrs (const QgsCoordinateReferenceSystem &sourceCrs) |
Source CRS, default 4326. | |
void | setSourcePosition (const QgsPoint &sourcePosition) |
Source position (in source CRS) | |
void | setTransformContext (const QgsCoordinateTransformContext &context) |
Transformation context, can be set from QgsQuickMapSettings::transformContext() | |
QgsCoordinateReferenceSystem | sourceCrs () const |
Source CRS, default 4326. | |
QgsPoint | sourcePosition () const |
Source position (in source CRS) | |
QgsCoordinateTransformContext | transformContext () const |
Transformation context, can be set from QgsQuickMapSettings::transformContext() | |
Properties | |
QgsCoordinateReferenceSystem | destinationCrs |
Destination CRS. | |
QgsPoint | projectedPosition |
Projected (destination) position (in destination CRS) | |
QgsCoordinateReferenceSystem | sourceCrs |
Source CRS, default 4326. | |
QgsPoint | sourcePosition |
Source position (in source CRS) | |
QgsCoordinateTransformContext | transformContext |
Transformation context, can be set from QgsQuickMapSettings::transformContext() | |
Helper class for transform of coordinates (QgsPoint) to a different coordinate reference system.
It requires connection of transformation context from mapSettings, source position and source CRS to calculate projected position in desired destination CRS.
Definition at line 40 of file qgsquickcoordinatetransformer.h.
|
explicit |
Creates new coordinate transformer.
Definition at line 19 of file qgsquickcoordinatetransformer.cpp.
QgsCoordinateReferenceSystem QgsQuickCoordinateTransformer::destinationCrs | ( | ) | const |
Destination CRS.
Definition at line 46 of file qgsquickcoordinatetransformer.cpp.
|
signal |
Destination CRS.
QgsPoint QgsQuickCoordinateTransformer::projectedPosition | ( | ) | const |
Projected (destination) position (in destination CRS)
Definition at line 25 of file qgsquickcoordinatetransformer.cpp.
|
signal |
Projected (destination) position (in destination CRS)
void QgsQuickCoordinateTransformer::setDestinationCrs | ( | const QgsCoordinateReferenceSystem & | destinationCrs | ) |
Destination CRS.
Definition at line 51 of file qgsquickcoordinatetransformer.cpp.
void QgsQuickCoordinateTransformer::setSourceCrs | ( | const QgsCoordinateReferenceSystem & | sourceCrs | ) |
Source CRS, default 4326.
Definition at line 66 of file qgsquickcoordinatetransformer.cpp.
void QgsQuickCoordinateTransformer::setSourcePosition | ( | const QgsPoint & | sourcePosition | ) |
Source position (in source CRS)
Definition at line 35 of file qgsquickcoordinatetransformer.cpp.
void QgsQuickCoordinateTransformer::setTransformContext | ( | const QgsCoordinateTransformContext & | context | ) |
Transformation context, can be set from QgsQuickMapSettings::transformContext()
Definition at line 77 of file qgsquickcoordinatetransformer.cpp.
QgsCoordinateReferenceSystem QgsQuickCoordinateTransformer::sourceCrs | ( | ) | const |
Source CRS, default 4326.
Definition at line 61 of file qgsquickcoordinatetransformer.cpp.
|
signal |
Source CRS, default 4326.
QgsPoint QgsQuickCoordinateTransformer::sourcePosition | ( | ) | const |
Source position (in source CRS)
Definition at line 30 of file qgsquickcoordinatetransformer.cpp.
|
signal |
Source position (in source CRS)
QgsCoordinateTransformContext QgsQuickCoordinateTransformer::transformContext | ( | ) | const |
Transformation context, can be set from QgsQuickMapSettings::transformContext()
Definition at line 83 of file qgsquickcoordinatetransformer.cpp.
|
signal |
Transformation context, can be set from QgsQuickMapSettings::transformContext()
|
readwrite |
Destination CRS.
Definition at line 51 of file qgsquickcoordinatetransformer.h.
|
read |
Projected (destination) position (in destination CRS)
Definition at line 45 of file qgsquickcoordinatetransformer.h.
|
readwrite |
Source CRS, default 4326.
Definition at line 54 of file qgsquickcoordinatetransformer.h.
|
readwrite |
Source position (in source CRS)
Definition at line 48 of file qgsquickcoordinatetransformer.h.
|
readwrite |
Transformation context, can be set from QgsQuickMapSettings::transformContext()
Definition at line 57 of file qgsquickcoordinatetransformer.h.