Class: QgsRasterProjector¶
-
class
qgis.core.
QgsRasterProjector
¶ Bases:
qgis._core.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.
Enums
Methods
Calculate destination extent and size from source extent and size
Returns the destination CRS
Calculate destination extent and size from source extent and size
Sets the source and destination CRS
Returns the source CRS
Signals
Attributes
-
Approximate
= 0¶
-
Exact
= 1¶
-
class
Precision
¶ Bases:
int
-
baseClass
¶ alias of
QgsRasterProjector
-
-
bandCount
(self) → int¶
-
block
(self, bandNo: int, extent: QgsRectangle, width: int, height: int, feedback: QgsRasterBlockFeedback = None) → QgsRasterBlock¶
-
clone
(self) → QgsRasterProjector¶
-
dataType
(self, bandNo: int) → 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
-
destinationCrs
(self) → QgsCoordinateReferenceSystem¶ Returns the destination CRS
-
extentSize
(ct: QgsCoordinateTransform, srcExtent: QgsRectangle, srcXSize: int, srcYSize: int) → Tuple[bool, QgsRectangle, int, int]¶ Calculate destination extent and size from source extent and size
-
initHistogram
()¶
-
initStatistics
()¶
-
precision
(self) → QgsRasterProjector.Precision¶
-
precisionLabel
(precision: QgsRasterProjector.Precision) → str¶
-
setCrs
(self, srcCRS: QgsCoordinateReferenceSystem, destCRS: QgsCoordinateReferenceSystem, srcDatumTransform: int = -1, destDatumTransform: int = -1)¶ Sets the source and destination CRS
Deprecated since version since: QGIS 3.8, use transformContext version instead
setCrs(self, srcCRS: QgsCoordinateReferenceSystem, destCRS: QgsCoordinateReferenceSystem, transformContext: QgsCoordinateTransformContext) Sets source CRS to
srcCRS
and destination CRS todestCRS
and the transformation context totransformContext
New in version 3.8.
-
setPrecision
(self, precision: QgsRasterProjector.Precision)¶
-
sourceCrs
(self) → QgsCoordinateReferenceSystem¶ Returns the source CRS
-
staticMetaObject
= <PyQt5.QtCore.QMetaObject object>¶
-