22 : mSourcePoint( sourcePoint )
23 , mDestinationPoint( destinationPoint )
24 , mDestinationCrs( destinationPointCrs )
32 return mDestinationCrs;
37 mDestinationCrs =
crs;
45 return transform.
transform( mDestinationPoint );
49 QgsDebugError( QStringLiteral(
"Error transforming destination point" ) );
50 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 destionationPoint() 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