17#include "moc_qgsquickcoordinatetransformer.cpp"
28 return mProjectedPosition;
33 return mSourcePosition;
86 return mCoordinateTransform.
context();
89void QgsQuickCoordinateTransformer::updatePosition()
91 double x = mSourcePosition.
x();
92 double y = mSourcePosition.
y();
93 double z = mSourcePosition.
z();
98 if ( std::isnan( z ) )
112 mProjectedPosition =
QgsPoint( x, y );
113 mProjectedPosition.
addZValue( mSourcePosition.
z() );
This class represents a coordinate reference system (CRS).
static Q_INVOKABLE QgsCoordinateReferenceSystem fromEpsgId(long epsg)
Creates a CRS from a given EPSG ID.
Contains information about the context in which a coordinate transform is executed.
Custom exception class for Coordinate Reference System related exceptions.
Point geometry type, with support for z-dimension and m-values.
bool addZValue(double zValue=0) override
Adds a z-dimension to the geometry, initialized to a preset value.
#define QgsDebugError(str)