Class: QgsRaster

Raster namespace.

Enums

ColorInterpretation

alias of RasterColorInterpretation

DrawingStyle

alias of RasterDrawingStyle

IdentifyFormat

alias of RasterIdentifyFormat

RasterBuildPyramids

alias of RasterBuildPyramidOption

RasterPyramidsFormat

alias of RasterPyramidFormat

Static Methods

representableValue

Gets value representable by given data type.

class qgis.core.QgsRaster[source]

Bases: object

ColorInterpretation

alias of RasterColorInterpretation

DrawingStyle

alias of RasterDrawingStyle

IdentifyFormat

alias of RasterIdentifyFormat

RasterBuildPyramids

alias of RasterBuildPyramidOption

RasterPyramidsFormat

alias of RasterPyramidFormat

static representableValue(value: float, dataType: Qgis.DataType) float[source]

Gets value representable by given data type. Supported are numerical types Byte, Int8, UInt16, Int16, UInt32, Int32, Float32, Float64. This is done through C casting, so you have to be sure that the provided value is representable in the output data type. This can be checked with isRepresentableValue().

Parameters:
Return type:

float