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

PointType

Bases: enum.IntEnum

Methods

destinationPoint

Returns the destination coordinates.

destinationPointCrs

Returns the CRS of the destination point.

isEnabled

Returns True if the point is currently enabled.

setDestinationPoint

Sets the destination coordinates.

setDestinationPointCrs

Sets the crs of the destination point.

setEnabled

Sets whether the point is currently enabled.

setSourcePoint

Sets the source coordinates.

sourcePoint

Returns the source coordinates.

transformedDestinationPoint

Returns the destionationPoint() transformed to the given target CRS.

class PointType(value)

Bases: enum.IntEnum

Coordinate point types

  • Source: Source point

  • Destination: Destination point

Destination = 1
Source = 0
destinationPoint(self) QgsPointXY

Returns the destination coordinates.

Return type:

QgsPointXY

destinationPointCrs(self) QgsCoordinateReferenceSystem

Returns the CRS of the destination point.

Return type:

QgsCoordinateReferenceSystem

isEnabled(self) bool

Returns True if the point is currently enabled.

See also

setEnabled()

Return type:

bool

setDestinationPoint(self, point: QgsPointXY)

Sets the destination coordinates.

Parameters:

point (QgsPointXY) –

setDestinationPointCrs(self, crs: QgsCoordinateReferenceSystem)

Sets the crs of the destination point.

Parameters:

crs (QgsCoordinateReferenceSystem) –

setEnabled(self, enabled: bool)

Sets whether the point is currently enabled.

See also

isEnabled()

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

sourcePoint()

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

setSourcePoint()

Return type:

QgsPointXY

transformedDestinationPoint(self, targetCrs: QgsCoordinateReferenceSystem, context: QgsCoordinateTransformContext) QgsPointXY

Returns the destionationPoint() transformed to the given target CRS.

Parameters:
Return type:

QgsPointXY