Class: QgsRasterProjector

class qgis.core.QgsRasterProjector

Bases: QgsRasterInterface

QgsRasterProjector implements approximate projection support for it calculates grid of points in source CRS for target CRS + extent which are used to calculate affine transformation matrices.

Methods

bandCount

rtype

int

block

param bandNo

clone

rtype

QgsRasterProjector

dataType

param bandNo

destExtentSize

Calculate destination extent and size from source extent and size

destinationCrs

Returns the destination CRS

extentSize

Calculate destination extent and size from source extent and size

initHistogram

initStatistics

precision

rtype

QgsRasterProjector.Precision

precisionLabel

param precision

setCrs

Sets the source and destination CRS

setPrecision

param precision

sourceCrs

Returns the source CRS

Attributes

Approximate

Exact

staticMetaObject

Approximate = 0
Exact = 1
class Precision

Bases: int

baseClass

alias of QgsRasterProjector

bandCount(self) → int
Return type

int

block(self, bandNo: int, extent: QgsRectangle, width: int, height: int, feedback: QgsRasterBlockFeedback = None) → QgsRasterBlock
Parameters
Return type

QgsRasterBlock

clone(self) → QgsRasterProjector
Return type

QgsRasterProjector

dataType(self, bandNo: int) → Qgis.DataType
Parameters

bandNo (int) –

Return type

Qgis.DataType

destExtentSize(self, srcExtent: QgsRectangle, srcXSize: int, srcYSize: int) → Tuple[bool, QgsRectangle, int, int]

Calculate destination extent and size from source extent and size

Parameters
  • srcExtent (QgsRectangle) –

  • srcXSize (int) –

  • srcYSize (int) –

Return type

Tuple[bool, QgsRectangle, int, int]

destinationCrs(self) → QgsCoordinateReferenceSystem

Returns the destination CRS

Return type

QgsCoordinateReferenceSystem

extentSize(ct: QgsCoordinateTransform, srcExtent: QgsRectangle, srcXSize: int, srcYSize: int) → Tuple[bool, QgsRectangle, int, int]

Calculate destination extent and size from source extent and size

Parameters
Return type

Tuple[bool, QgsRectangle, int, int]

initHistogram()
initStatistics()
precision(self) → QgsRasterProjector.Precision
Return type

QgsRasterProjector.Precision

precisionLabel(precision: QgsRasterProjector.Precision) → str
Parameters

precision (QgsRasterProjector.Precision) –

Return type

str

setCrs(self, srcCRS: QgsCoordinateReferenceSystem, destCRS: QgsCoordinateReferenceSystem, srcDatumTransform: int = -1, destDatumTransform: int = -1)

Sets the source and destination CRS

Parameters
setPrecision(self, precision: QgsRasterProjector.Precision)
Parameters

precision (QgsRasterProjector.Precision) –

sourceCrs(self) → QgsCoordinateReferenceSystem

Returns the source CRS

Return type

QgsCoordinateReferenceSystem

staticMetaObject = <PyQt5.QtCore.QMetaObject object>