QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Contains properties of a ground control point (GCP). More...
#include <qgsgcppoint.h>
Public Types | |
enum | PointType { PointType::Source, PointType::Destination } |
Coordinate point types. More... | |
Public Member Functions | |
QgsGcpPoint (const QgsPointXY &sourcePoint, const QgsPointXY &destinationPoint, const QgsCoordinateReferenceSystem &destinationPointCrs, bool enabled=true) | |
Constructor for QgsGcpPoint. More... | |
QgsPointXY | destinationPoint () const |
Returns the destination coordinates. More... | |
QgsCoordinateReferenceSystem | destinationPointCrs () const |
Returns the CRS of the destination point. More... | |
bool | isEnabled () const |
Returns true if the point is currently enabled. More... | |
bool | operator!= (const QgsGcpPoint &other) const |
bool | operator== (const QgsGcpPoint &other) const |
void | setDestinationPoint (QgsPointXY point) |
Sets the destination coordinates. More... | |
void | setDestinationPointCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the crs of the destination point. More... | |
void | setEnabled (bool enabled) |
Sets whether the point is currently enabled. More... | |
void | setSourcePoint (QgsPointXY point) |
Sets the source coordinates. More... | |
QgsPointXY | sourcePoint () const |
Returns the source coordinates. More... | |
QgsPointXY | transformedDestinationPoint (const QgsCoordinateReferenceSystem &targetCrs, const QgsCoordinateTransformContext &context) const |
Returns the destionationPoint() transformed to the given target CRS. More... | |
Contains properties of a ground control point (GCP).
Definition at line 30 of file qgsgcppoint.h.
|
strong |
Coordinate point types.
Enumerator | |
---|---|
Source | Source point. |
Destination | Destination point. |
Definition at line 35 of file qgsgcppoint.h.
QgsGcpPoint::QgsGcpPoint | ( | const QgsPointXY & | sourcePoint, |
const QgsPointXY & | destinationPoint, | ||
const QgsCoordinateReferenceSystem & | destinationPointCrs, | ||
bool | enabled = true |
||
) |
Constructor for QgsGcpPoint.
sourcePoint | source coordinates. This may either be in pixels (for completely non-referenced images) OR in the source layer CRS. |
destinationPoint | destination coordinates |
destinationPointCrs | CRS of destination point |
enabled | whether the point is currently enabled |
Definition at line 21 of file qgsgcppoint.cpp.
|
inline |
Returns the destination coordinates.
Definition at line 75 of file qgsgcppoint.h.
QgsCoordinateReferenceSystem QgsGcpPoint::destinationPointCrs | ( | ) | const |
Returns the CRS of the destination point.
Definition at line 30 of file qgsgcppoint.cpp.
|
inline |
Returns true
if the point is currently enabled.
Definition at line 108 of file qgsgcppoint.h.
|
inline |
Definition at line 126 of file qgsgcppoint.h.
|
inline |
Definition at line 118 of file qgsgcppoint.h.
|
inline |
Sets the destination coordinates.
Definition at line 82 of file qgsgcppoint.h.
void QgsGcpPoint::setDestinationPointCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the crs of the destination point.
Definition at line 35 of file qgsgcppoint.cpp.
|
inline |
Sets whether the point is currently enabled.
Definition at line 115 of file qgsgcppoint.h.
|
inline |
Sets the source coordinates.
This may either be in pixels (for completely non-referenced images) OR in the source layer CRS.
Definition at line 68 of file qgsgcppoint.h.
|
inline |
Returns the source coordinates.
This may either be in pixels (for completely non-referenced images) OR in the source layer CRS.
Definition at line 59 of file qgsgcppoint.h.
QgsPointXY QgsGcpPoint::transformedDestinationPoint | ( | const QgsCoordinateReferenceSystem & | targetCrs, |
const QgsCoordinateTransformContext & | context | ||
) | const |
Returns the destionationPoint() transformed to the given target CRS.
Definition at line 40 of file qgsgcppoint.cpp.