Class: QgsRaster¶
- class qgis.core.QgsRaster¶
Bases:
sip.wrapper
Raster namespace.
Enums
alias of
RasterColorInterpretation
alias of
RasterDrawingStyle
alias of
RasterIdentifyFormat
alias of
RasterBuildPyramidOption
alias of
RasterPyramidFormat
Methods
Gets value representable by given data type.
- 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:
value (float) –
dataType (Qgis.DataType) –
- Return type:
float