QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Types | Static Public Member Functions | List of all members
QgsRaster Class Reference

Raster namespace. More...

#include <qgsraster.h>

Public Types

enum  ColorInterpretation {
  UndefinedColorInterpretation = 0, GrayIndex = 1, PaletteIndex = 2, RedBand = 3,
  GreenBand = 4, BlueBand = 5, AlphaBand = 6, HueBand = 7,
  SaturationBand = 8, LightnessBand = 9, CyanBand = 10, MagentaBand = 11,
  YellowBand = 12, BlackBand = 13, YCbCr_YBand = 14, YCbCr_CbBand = 15,
  YCbCr_CrBand = 16, ContinuousPalette = 17
}
 
enum  ContrastEnhancementLimits { ContrastEnhancementNone, ContrastEnhancementMinMax, ContrastEnhancementStdDev, ContrastEnhancementCumulativeCut }
 Contrast enhancement limits. More...
 
enum  DrawingStyle {
  UndefinedDrawingStyle, SingleBandGray, SingleBandPseudoColor, PalettedColor,
  PalettedSingleBandGray, PalettedSingleBandPseudoColor, PalettedMultiBandColor, MultiBandSingleBandGray,
  MultiBandSingleBandPseudoColor, MultiBandColor, SingleBandColorDataStyle
}
 This enumerator describes the different kinds of drawing we can do. More...
 
enum  IdentifyFormat {
  IdentifyFormatUndefined = 0, IdentifyFormatValue = 1, IdentifyFormatText = 1 << 1, IdentifyFormatHtml = 1 << 2,
  IdentifyFormatFeature = 1 << 3
}
 
enum  RasterBuildPyramids { PyramidsFlagNo = 0, PyramidsFlagYes = 1, PyramidsCopyExisting = 2 }
 
enum  RasterProgressType { ProgressHistogram = 0, ProgressPyramids = 1, ProgressStatistics = 2 }
 
enum  RasterPyramidsFormat { PyramidsGTiff = 0, PyramidsInternal = 1, PyramidsErdas = 2 }
 

Static Public Member Functions

static QString contrastEnhancementLimitsAsString (QgsRaster::ContrastEnhancementLimits theLimits)
 
static ContrastEnhancementLimits contrastEnhancementLimitsFromString (const QString &theLimits)
 
static bool isRepresentableValue (double value, QGis::DataType dataType)
 Check if the specified value is representable in the given data type. More...
 
static double representableValue (double value, QGis::DataType dataType)
 Get value representable by given data type. More...
 

Detailed Description

Raster namespace.

Definition at line 28 of file qgsraster.h.

Member Enumeration Documentation

◆ ColorInterpretation

Enumerator
UndefinedColorInterpretation 
GrayIndex 

Greyscale.

PaletteIndex 

Paletted (see associated color table)

RedBand 

Red band of RGBA image.

GreenBand 

Green band of RGBA image.

BlueBand 

Blue band of RGBA image.

AlphaBand 

Alpha (0=transparent, 255=opaque)

HueBand 

Hue band of HLS image.

SaturationBand 

Saturation band of HLS image.

LightnessBand 

Lightness band of HLS image.

CyanBand 

Cyan band of CMYK image.

MagentaBand 

Magenta band of CMYK image.

YellowBand 

Yellow band of CMYK image.

BlackBand 

Black band of CMLY image.

YCbCr_YBand 

Y Luminance.

YCbCr_CbBand 

Cb Chroma.

YCbCr_CrBand 

Cr Chroma.

ContinuousPalette 

Continuous palette, QGIS addition, GRASS.

Definition at line 32 of file qgsraster.h.

◆ ContrastEnhancementLimits

Contrast enhancement limits.

Enumerator
ContrastEnhancementNone 
ContrastEnhancementMinMax 
ContrastEnhancementStdDev 
ContrastEnhancementCumulativeCut 

Definition at line 86 of file qgsraster.h.

◆ DrawingStyle

This enumerator describes the different kinds of drawing we can do.

Enumerator
UndefinedDrawingStyle 
SingleBandGray 
SingleBandPseudoColor 
PalettedColor 
PalettedSingleBandGray 
PalettedSingleBandPseudoColor 
PalettedMultiBandColor 
MultiBandSingleBandGray 
MultiBandSingleBandPseudoColor 
MultiBandColor 
SingleBandColorDataStyle 

Definition at line 95 of file qgsraster.h.

◆ IdentifyFormat

Enumerator
IdentifyFormatUndefined 
IdentifyFormatValue 
IdentifyFormatText 
IdentifyFormatHtml 
IdentifyFormatFeature 

Definition at line 54 of file qgsraster.h.

◆ RasterBuildPyramids

Enumerator
PyramidsFlagNo 
PyramidsFlagYes 
PyramidsCopyExisting 

Definition at line 71 of file qgsraster.h.

◆ RasterProgressType

Enumerator
ProgressHistogram 
ProgressPyramids 
ProgressStatistics 

Definition at line 64 of file qgsraster.h.

◆ RasterPyramidsFormat

Enumerator
PyramidsGTiff 
PyramidsInternal 
PyramidsErdas 

Definition at line 78 of file qgsraster.h.

Member Function Documentation

◆ contrastEnhancementLimitsAsString()

QString QgsRaster::contrastEnhancementLimitsAsString ( QgsRaster::ContrastEnhancementLimits  theLimits)
static

Definition at line 22 of file qgsraster.cpp.

◆ contrastEnhancementLimitsFromString()

QgsRaster::ContrastEnhancementLimits QgsRaster::contrastEnhancementLimitsFromString ( const QString theLimits)
static

Definition at line 38 of file qgsraster.cpp.

◆ isRepresentableValue()

bool QgsRaster::isRepresentableValue ( double  value,
QGis::DataType  dataType 
)
static

Check if the specified value is representable in the given data type.

Supported are numerical types Byte, UInt16, Int16, UInt32, Int32, Float32, Float64.

Parameters
value
dataType
Note
added in version 2.16
not available in Python bindings

Definition at line 55 of file qgsraster.cpp.

◆ representableValue()

double QgsRaster::representableValue ( double  value,
QGis::DataType  dataType 
)
static

Get value representable by given data type.

Supported are numerical types Byte, 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
dataType
Note
added in version 2.1

Definition at line 78 of file qgsraster.cpp.


The documentation for this class was generated from the following files: