Class: QgsRaster

class qgis.core.QgsRaster

Bases: sip.wrapper

Raster namespace.

ColorInterpretation

alias of RasterColorInterpretation

DrawingStyle

alias of RasterDrawingStyle

IdentifyFormat

alias of RasterIdentifyFormat

RasterBuildPyramids

alias of RasterBuildPyramidOption

RasterPyramidsFormat

alias of RasterPyramidFormat

representableValue(value: float, dataType: Qgis.DataType) float

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:

New in version 2.1.

Return type:

float