QGIS API Documentation 3.28.14-Firenze (exported)
Loading...
Searching...
No Matches
qgsraster.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsraster.h - Raster namespace
3 --------------------------------------
4 Date : Apr 2013
5 Copyright : (C) 2013 by Radim Blazek
6 email : radim dot blazek at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSRASTER_H
19#define QGSRASTER_H
20
21#include "qgis_core.h"
22#include "qgis_sip.h"
23#include <QString>
24
25#include "qgis.h"
26
31class CORE_EXPORT QgsRaster
32{
33 public:
34 // This is modified copy of GDALColorInterp
36 {
37 UndefinedColorInterpretation = 0,
38 GrayIndex = 1,
39 PaletteIndex = 2,
40 RedBand = 3,
41 GreenBand = 4,
42 BlueBand = 5,
43 AlphaBand = 6,
44 HueBand = 7,
45 SaturationBand = 8,
46 LightnessBand = 9,
47 CyanBand = 10,
48 MagentaBand = 11,
49 YellowBand = 12,
50 BlackBand = 13,
51 YCbCr_YBand = 14,
52 YCbCr_CbBand = 15,
53 YCbCr_CrBand = 16,
54 ContinuousPalette = 17
55 };
56
58 {
59 IdentifyFormatUndefined = 0,
60 IdentifyFormatValue = 1, // numerical pixel value
61 IdentifyFormatText = 1 << 1, // WMS text
62 IdentifyFormatHtml = 1 << 2, // WMS HTML
63 IdentifyFormatFeature = 1 << 3, // WMS GML/JSON -> feature
64 };
65
67 {
68 PyramidsFlagNo = 0,
69 PyramidsFlagYes = 1,
70 PyramidsCopyExisting = 2
71 };
72
74 {
75 PyramidsGTiff = 0,
76 PyramidsInternal = 1,
77 PyramidsErdas = 2
78 };
79
82 {
84 SingleBandGray, // a single band image drawn as a range of gray colors
85 SingleBandPseudoColor, // a single band image drawn using a pseudocolor algorithm
86 PalettedColor, // a "Palette" image drawn using color table
87 PalettedSingleBandGray, // a "Palette" layer drawn in gray scale
88 PalettedSingleBandPseudoColor, // a "Palette" layerdrawn using a pseudocolor algorithm
89 PalettedMultiBandColor, // currently not supported
90 MultiBandSingleBandGray, // a layer containing 2 or more bands, but a single band drawn as a range of gray colors
91 MultiBandSingleBandPseudoColor, // a layer containing 2 or more bands, but a single band drawn using a pseudocolor algorithm
92 MultiBandColor, // a layer containing 2 or more bands, mapped to RGB color space. In the case of a multiband with only two bands, one band will be mapped to more than one color.
93 SingleBandColorDataStyle // ARGB values rendered directly
94 };
95
104 static bool isRepresentableValue( double value, Qgis::DataType dataType ) SIP_SKIP;
105
115 static double representableValue( double value, Qgis::DataType dataType );
116};
117
118#endif
119
120
DataType
Raster data types.
Definition qgis.h:129
Raster namespace.
Definition qgsraster.h:32
RasterPyramidsFormat
Definition qgsraster.h:74
RasterBuildPyramids
Definition qgsraster.h:67
ColorInterpretation
Definition qgsraster.h:36
DrawingStyle
This enumerator describes the different kinds of drawing we can do.
Definition qgsraster.h:82
@ MultiBandColor
Definition qgsraster.h:92
@ PalettedColor
Definition qgsraster.h:86
@ SingleBandPseudoColor
Definition qgsraster.h:85
@ PalettedSingleBandPseudoColor
Definition qgsraster.h:88
@ PalettedSingleBandGray
Definition qgsraster.h:87
@ SingleBandGray
Definition qgsraster.h:84
@ MultiBandSingleBandGray
Definition qgsraster.h:90
@ PalettedMultiBandColor
Definition qgsraster.h:89
@ UndefinedDrawingStyle
Definition qgsraster.h:83
@ MultiBandSingleBandPseudoColor
Definition qgsraster.h:91
#define SIP_SKIP
Definition qgis_sip.h:126