Class: QgsGcpPoint¶
- class qgis.analysis.QgsGcpPoint¶
Bases:
sip.wrapper
Contains properties of a ground control point (GCP).
New in version 3.26.
QgsGcpPoint(sourcePoint:
QgsPointXY
, destinationPoint:QgsPointXY
, destinationPointCrs:QgsCoordinateReferenceSystem
, enabled: bool = True) Constructor for QgsGcpPoint.- Parameters
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
QgsGcpPoint(
QgsGcpPoint
)Enums
Bases:
enum.IntEnum
Methods
Returns the destination coordinates.
Returns the CRS of the destination point.
Returns
True
if the point is currently enabled.Sets the destination coordinates.
Sets the
crs
of the destination point.Sets whether the point is currently enabled.
Sets the source coordinates.
Returns the source coordinates.
Returns the
destionationPoint()
transformed to the given target CRS.- class PointType(value)¶
Bases:
enum.IntEnum
Coordinate point types
Source
: Source pointDestination
: Destination point
- Destination = 1¶
- Source = 0¶
- destinationPoint(self) QgsPointXY ¶
Returns the destination coordinates.
See also
- Return type
- destinationPointCrs(self) QgsCoordinateReferenceSystem ¶
Returns the CRS of the destination point.
See also
- Return type
- isEnabled(self) bool ¶
Returns
True
if the point is currently enabled.See also
- Return type
bool
- setDestinationPoint(self, point: QgsPointXY)¶
Sets the destination coordinates.
See also
- Parameters
point (QgsPointXY) –
- setDestinationPointCrs(self, crs: QgsCoordinateReferenceSystem)¶
Sets the
crs
of the destination point.See also
- Parameters
crs (QgsCoordinateReferenceSystem) –
- setEnabled(self, enabled: bool)¶
Sets whether the point is currently enabled.
See also
- Parameters
enabled (bool) –
- setSourcePoint(self, point: QgsPointXY)¶
Sets the source coordinates.
This may either be in pixels (for completely non-referenced images) OR in the source layer CRS.
See also
- Parameters
point (QgsPointXY) –
- sourcePoint(self) QgsPointXY ¶
Returns the source coordinates.
This may either be in pixels (for completely non-referenced images) OR in the source layer CRS.
See also
- Return type
- transformedDestinationPoint(self, targetCrs: QgsCoordinateReferenceSystem, context: QgsCoordinateTransformContext) QgsPointXY ¶
Returns the
destionationPoint()
transformed to the given target CRS.- Parameters
targetCrs (QgsCoordinateReferenceSystem) –
context (QgsCoordinateTransformContext) –
- Return type