22 : mSourcePoint( sourcePoint )
23 , mDestinationPoint( destinationPoint )
24 , mDestinationCrs( destinationPointCrs )
31 return mDestinationCrs;
36 mDestinationCrs =
crs;
44 return transform.
transform( mDestinationPoint );
48 QgsDebugError( QStringLiteral(
"Error transforming destination point" ) );
49 return mDestinationPoint;
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Custom exception class for Coordinate Reference System related exceptions.
QgsGcpPoint(const QgsPointXY &sourcePoint, const QgsPointXY &destinationPoint, const QgsCoordinateReferenceSystem &destinationPointCrs, bool enabled=true)
Constructor for QgsGcpPoint.
QgsPointXY transformedDestinationPoint(const QgsCoordinateReferenceSystem &targetCrs, const QgsCoordinateTransformContext &context) const
Returns the destinationPoint() transformed to the given target CRS.
void setDestinationPointCrs(const QgsCoordinateReferenceSystem &crs)
Sets the crs of the destination point.
QgsCoordinateReferenceSystem destinationPointCrs() const
Returns the CRS of the destination point.
A class to represent a 2D point.
#define QgsDebugError(str)
const QgsCoordinateReferenceSystem & crs