Subgroup: Raster
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.
Methods
bandCount
bandStatistics
Get band statistics. block
capabilities
Returns a bitmask containing the supported capabilities capabilitiesString
Returns the above in friendly format. clone
cumulativeCut
Find values for cumulative pixel count cut. dataType
dataTypeSize
destExtentSize
Calculate destination extent and size from source extent and size destinationCrs
Get destination CRS extent
Get the extent of the interface. extentSize
Calculate destination extent and size from source extent and size generateBandName
helper function to create zero padded band names hasHistogram
Returns true if histogram is available (cached, already calculated) hasStatistics
Returns true if histogram is available (cached, already calculated). histogram
Get histogram. initHistogram
initStatistics
input
Current input on
Is on/off precision
precisionLabel
readXml
Sets base class members from xml. setCrs
set source and destination CRS setInput
Set input. setOn
Set on/off setPrecision
sourceCrs
Get source CRS sourceDataType
Returns source data type for the band specified by number, sourceInput
Get source / raw input, the first in pipe, usually provider. writeXml
Write base class members to xml. xBlockSize
Get block size xSize
Get raster size yBlockSize
ySize
Attributes
Approximate
BuildPyramids
Create
Exact
Identify
IdentifyFeature
IdentifyHtml
IdentifyText
IdentifyValue
NoCapabilities
Remove
Size
-
Approximate
= 0¶
-
Exact
= 1¶
-
class
Precision
¶ Bases:
int
-
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¶ Get 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)¶ set source and destination CRS
-
setPrecision
(self, precision: QgsRasterProjector.Precision)¶
-
sourceCrs
(self) → QgsCoordinateReferenceSystem¶ Get source CRS
-