Debian Codegraph @

gcore/gdal_rasterband.h

raw symbols SCIP
1 /******************************************************************************
2 *
3 * Name: gdal_rasterband.h
4 * Project: GDAL Core
5 * Purpose: Declaration of GDALRasterBand class
6 * Author: Frank Warmerdam, [email protected]
7 *
8 ******************************************************************************
9 * Copyright (c) 1998, Frank Warmerdam
10 * Copyright (c) 2007-2014, Even Rouault <even dot rouault at spatialys.com>
11 *
12 * SPDX-License-Identifier: MIT
13 ****************************************************************************/
14
15 #ifndef GDALRASTERBAND_H_INCLUDEDcxx . . $ `gcore/gdal_rasterband.h:16:9`!
16 #define GDALRASTERBAND_H_INCLUDEDcxx . . $ `gcore/gdal_rasterband.h:16:9`!
17
18 #include "cpl_port.h"cxx . . $ `<file>/port/cpl_port.h`/
19 #include "gdal.h"cxx . . $ `<file>/gcore/gdal.h`/
20 #include "gdal_majorobject.h"cxx . . $ `<file>/gcore/gdal_majorobject.h`/
21
22 #include <cstddef>
23 #include <cstdint>
24 #include <complex>
25 #include <iterator>
26 #include <memory>
27 #if __cpluspluscxx . . $ `<built-in>:484:9`! >= 201703L
28 #include <optional>
29 #endif
30 #if __cpluspluscxx . . $ `<built-in>:471:9`! >= 202002L
31 #include <span>
32 #endif
33 #include <vector>
34
35 //! @cond Doxygen_Suppress
36 #if !defined(OPTIONAL_OUTSIDE_GDALcxx . . $ `gcore/gdal_dataset.h:57:9`!)
37 #if defined(GDAL_COMPILATIONcxx . . $ `<built-in>:482:9`!)
38 #define OPTIONAL_OUTSIDE_GDALcxx . . $ `gcore/gdal_rasterband.h:38:9`!(val)
39 #else
40 #define OPTIONAL_OUTSIDE_GDAL(val) = val
41 #endif
42 #endif
43 //! @endcond
44
45 /* ******************************************************************** */
46 /* GDALRasterBand */
47 /* ******************************************************************** */
48
49 class GDALAbstractBandBlockCachecxx . . $ GDALAbstractBandBlockCache#;
50 class GDALColorTablecxx . . $ GDALColorTable#;
51 class GDALDatasetcxx . . $ GDALDataset#;
52 class GDALDoublePointsCachecxx . . $ GDALDoublePointsCache#;
53 class GDALRasterAttributeTablecxx . . $ GDALRasterAttributeTable#;
54 class GDALRasterBlockcxx . . $ GDALRasterBlock#;
55 class GDALMDArraycxx . . $ GDALMDArray#;
56 class OGRSpatialReferencecxx . . $ OGRSpatialReference#;
57
58 /** Range of values found in a mask band */
59 typedef enumcxx . . $ $anonymous_type_531d7963c9e8631d_0#
60 {
61 GMVR_UNKNOWNcxx . . $ GMVR_UNKNOWN., /*! Unknown (can also be used for any values between 0 and 255
62 for a Byte band) */
63 GMVR_0_AND_1_ONLYcxx . . $ GMVR_0_AND_1_ONLY., /*! Only 0 and 1 */
64 GMVR_0_AND_255_ONLYcxx . . $ GMVR_0_AND_255_ONLY., /*! Only 0 and 255 */
65 } GDALMaskValueRangecxx . . $ GDALMaskValueRange#;
66
67 /** Suggested/most efficient access pattern to blocks. */
68 typedef int GDALSuggestedBlockAccessPatterncxx . . $ GDALSuggestedBlockAccessPattern#;
69
70 /** Unknown, or no particular read order is suggested. */
71 constexpr GDALSuggestedBlockAccessPatterncxx . . $ GDALSuggestedBlockAccessPattern# GSBAP_UNKNOWNcxx . . $ GSBAP_UNKNOWN. = 0;
72
73 /** Random access to blocks is efficient. */
74 constexpr GDALSuggestedBlockAccessPatterncxx . . $ GDALSuggestedBlockAccessPattern# GSBAP_RANDOMcxx . . $ GSBAP_RANDOM. = 1;
75
76 /** Reading by strips from top to bottom is the most efficient. */
77 constexpr GDALSuggestedBlockAccessPatterncxx . . $ GDALSuggestedBlockAccessPattern# GSBAP_TOP_TO_BOTTOMcxx . . $ GSBAP_TOP_TO_BOTTOM. = 2;
78
79 /** Reading by strips from bottom to top is the most efficient. */
80 constexpr GDALSuggestedBlockAccessPatterncxx . . $ GDALSuggestedBlockAccessPattern# GSBAP_BOTTOM_TO_TOPcxx . . $ GSBAP_BOTTOM_TO_TOP. = 3;
81
82 /** Reading the largest chunk from the raster is the most efficient (can be
83 * combined with above values). */
84 constexpr GDALSuggestedBlockAccessPatterncxx . . $ GDALSuggestedBlockAccessPattern# GSBAP_LARGEST_CHUNK_POSSIBLEcxx . . $ GSBAP_LARGEST_CHUNK_POSSIBLE. = 0x100;
85
86 class GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#;
87
88 /** A rectangular subset of pixels within a raster */
89 class GDALRasterWindowcxx . . $ GDALRasterWindow#
90 {
91 public:
92 /** left offset of the window */
93 int nXOffcxx . . $ GDALRasterWindow#nXOff.;
94
95 /** top offset of the window */
96 int nYOffcxx . . $ GDALRasterWindow#nYOff.;
97
98 /** window width */
99 int nXSizecxx . . $ GDALRasterWindow#nXSize.;
100
101 /** window height */
102 int nYSizecxx . . $ GDALRasterWindow#nYSize.;
103 };
104
105 /** A single raster band (or channel). */
106
107 class CPL_DLLcxx . . $ `port/cpl_port.h:295:9`! GDALRasterBandcxx . . $ GDALRasterBand# : public GDALMajorObjectcxx . . $ GDALMajorObject#
108 {
109 private:
110 friend class GDALArrayBandBlockCachecxx . . $ GDALArrayBandBlockCache#;
111 friend class GDALHashSetBandBlockCachecxx . . $ GDALHashSetBandBlockCache#;
112 friend class GDALRasterBlockcxx . . $ GDALRasterBlock#;
113 friend class GDALDatasetcxx . . $ GDALDataset#;
114
115 CPLErr eFlushBlockErrcxx . . $ GDALRasterBand#eFlushBlockErr. = CE_None;
116 GDALAbstractBandBlockCachecxx . . $ GDALAbstractBandBlockCache# *poBandBlockCachecxx . . $ GDALRasterBand#poBandBlockCache. = nullptr;
117
118 CPL_INTERNALcxx . . $ `port/cpl_port.h:297:9`! void SetFlushBlockErrcxx . . $ GDALRasterBand#SetFlushBlockErr(312df95dd31e60dd).(CPLErr eErr);
119 CPL_INTERNALcxx . . $ `port/cpl_port.h:297:9`! CPLErr UnreferenceBlockcxx . . $ GDALRasterBand#UnreferenceBlock(3a19e1054e47d448).(GDALRasterBlockcxx . . $ GDALRasterBlock# *poBlock);
120 CPL_INTERNALcxx . . $ `port/cpl_port.h:297:9`! void IncDirtyBlockscxx . . $ GDALRasterBand#IncDirtyBlocks(d4f767463ce0a6b3).(int nInc);
121
122 CPL_INTERNALcxx . . $ `port/cpl_port.h:297:9`! CPLErr RasterIOInternalcxx . . $ GDALRasterBand#RasterIOInternal(b70cc820beb1726b).(
123 GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize, int nYSize,
124 void *pData, int nBufXSize, int nBufYSize, GDALDataType eBufType,
125 GSpacing nPixelSpace, GSpacing nLineSpace,
126 GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
127
128 CPL_INTERNALcxx . . $ `port/cpl_port.h:297:9`! bool HasNoDatacxx . . $ GDALRasterBand#HasNoData(50ce9a9e25b4a850).() const;
129
130 protected:
131 GDALRasterBandcxx . . $ GDALRasterBand#GDALRasterBand(49f6e7a06ebc5aa8).();
132 explicit GDALRasterBandcxx . . $ GDALRasterBand#GDALRasterBand(d4f767463ce0a6b3).(int bForceCachedIO);
133
134 //! @cond Doxygen_Suppress
135 GDALRasterBandcxx . . $ GDALRasterBand#GDALRasterBand(cb63fe4399e65658).(GDALRasterBandcxx . . $ GDALRasterBand# &&) = default;
136 //! @endcond
137
138 //! @cond Doxygen_Suppress
139 GDALDatasetcxx . . $ GDALDataset# *poDScxx . . $ GDALRasterBand#poDS. = nullptr;
140 int nBandcxx . . $ GDALRasterBand#nBand. = 0; /* 1 based */
141
142 int nRasterXSizecxx . . $ GDALRasterBand#nRasterXSize. = 0;
143 int nRasterYSizecxx . . $ GDALRasterBand#nRasterYSize. = 0;
144
145 GDALDataType eDataTypecxx . . $ GDALRasterBand#eDataType. = GDT_UInt8;
146 GDALAccess eAccesscxx . . $ GDALRasterBand#eAccess. = GA_ReadOnly;
147
148 /* stuff related to blocking, and raster cache */
149 int nBlockXSizecxx . . $ GDALRasterBand#nBlockXSize. = -1;
150 int nBlockYSizecxx . . $ GDALRasterBand#nBlockYSize. = -1;
151 int nBlocksPerRowcxx . . $ GDALRasterBand#nBlocksPerRow. = 0;
152 int nBlocksPerColumncxx . . $ GDALRasterBand#nBlocksPerColumn. = 0;
153
154 int nBlockReadscxx . . $ GDALRasterBand#nBlockReads. = 0;
155 int bForceCachedIOcxx . . $ GDALRasterBand#bForceCachedIO. = 0;
156
157 friend class GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#;
158 friend class GDALComputedDatasetcxx . . $ GDALComputedDataset#;
159
160 class GDALRasterBandOwnedOrNotcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#
161 {
162 public:
163 GDALRasterBandOwnedOrNotcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#GDALRasterBandOwnedOrNot(ced63f7c635d850d).() = default;
164
165 GDALRasterBandOwnedOrNotcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#GDALRasterBandOwnedOrNot(dc7f07e0a9c68469).(GDALRasterBandOwnedOrNotcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot# &&) = default;
166
167 void resetcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#reset(49f6e7a06ebc5aa8).()
168 {
169 m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned..resetcxx . . $ std/unique_ptr#reset(c8c3025d73122d7d).();
170 m_poBandRefcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandRef. = nullptr;
171 }
172
173 void resetNotOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#resetNotOwned(f7dadd63f994ba74).(GDALRasterBandcxx . . $ GDALRasterBand# *poBand)
174 {
175 m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned..resetcxx . . $ std/unique_ptr#reset(c8c3025d73122d7d).();
176 m_poBandRefcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandRef. = poBand;
177 }
178
179 void resetcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#reset(9ccb5a863108e13a).(stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<GDALRasterBandcxx . . $ GDALRasterBand#> poBand)
180 {
181 m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned. =cxx . . $ std/unique_ptr#`operator=`(1b63e42eaa758a73). stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(poBand);
182 m_poBandRefcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandRef. = nullptr;
183 }
184
185 const GDALRasterBandcxx . . $ GDALRasterBand# *getcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#get(bd23f62210bdfda1).() const
186 {
187 return static_cast<const GDALRasterBandcxx . . $ GDALRasterBand# *>(*this);
188 }
189
190 GDALRasterBandcxx . . $ GDALRasterBand# *getcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#get(111a65e5324080aa).()
191 {
192 return static_cast<GDALRasterBandcxx . . $ GDALRasterBand# *>(*this);
193 }
194
195 bool IsOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#IsOwned(50ce9a9e25b4a850).() const
196 {
197 return m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned. !=cxx . . $ std/`operator!=`(e445595a98297a59). nullptr;
198 }
199
200 operatorcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#`operator const GDALRasterBand *`(bd23f62210bdfda1). const GDALRasterBandcxx . . $ GDALRasterBand# *() const
201 {
202 return m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned. ? m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned..getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).() : m_poBandRefcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandRef.;
203 }
204
205 operatorcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#`operator GDALRasterBand *`(111a65e5324080aa). GDALRasterBandcxx . . $ GDALRasterBand# *()
206 {
207 return m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned. ? m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned..getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).() : m_poBandRefcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandRef.;
208 }
209
210 private:
211 CPL_DISALLOW_COPY_ASSIGNcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#`operator=`(e3a9e23194f2e82b).(GDALRasterBandOwnedOrNot)
212 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<GDALRasterBandcxx . . $ GDALRasterBand#> m_poBandOwnedcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandOwned.{cxx . . $ std/unique_ptr#unique_ptr(ced63f7c635d850d).};
213 GDALRasterBandcxx . . $ GDALRasterBand# *m_poBandRefcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#m_poBandRef. = nullptr;
214 };
215
216 GDALRasterBandOwnedOrNotcxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot# poMaskcxx . . $ GDALRasterBand#poMask.{cxx . . $ GDALRasterBand#GDALRasterBandOwnedOrNot#GDALRasterBandOwnedOrNot(ced63f7c635d850d).};
217 bool m_bEnablePixelTypeSignedByteWarningcxx . . $ GDALRasterBand#m_bEnablePixelTypeSignedByteWarning. =
218 true; // Remove me in GDAL 4.0. See GetMetadataItem() implementation
219 int nMaskFlagscxx . . $ GDALRasterBand#nMaskFlags. = 0;
220
221 void InvalidateMaskBandcxx . . $ GDALRasterBand#InvalidateMaskBand(49f6e7a06ebc5aa8).();
222
223 friend class GDALProxyRasterBandcxx . . $ GDALProxyRasterBand#;
224 friend class GDALDefaultOverviewscxx . . $ GDALDefaultOverviews#;
225
226 CPLErr
227 RasterIOResampledcxx . . $ GDALRasterBand#RasterIOResampled(b70cc820beb1726b).(GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
228 int nYSize, void *pData, int nBufXSize, int nBufYSize,
229 GDALDataType eBufType, GSpacing nPixelSpace,
230 GSpacing nLineSpace,
231 GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
232
233 int EnterReadWritecxx . . $ GDALRasterBand#EnterReadWrite(ed493a0480de7029).(GDALRWFlag eRWFlag);
234 void LeaveReadWritecxx . . $ GDALRasterBand#LeaveReadWrite(49f6e7a06ebc5aa8).();
235 void InitRWLockcxx . . $ GDALRasterBand#InitRWLock(49f6e7a06ebc5aa8).();
236 void SetValidPercentcxx . . $ GDALRasterBand#SetValidPercent(dbaf739bf07cdd1d).(GUIntBigcxx . . $ GUIntBig# nSampleCount, GUIntBigcxx . . $ GUIntBig# nValidCount);
237
238 mutable GDALDoublePointsCachecxx . . $ GDALDoublePointsCache# *m_poPointsCachecxx . . $ GDALRasterBand#m_poPointsCache. = nullptr;
239
240 //! @endcond
241
242 protected:
243 virtual CPLErr IReadBlockcxx . . $ GDALRasterBand#IReadBlock(282c12597d894d0d).(int nBlockXOff, int nBlockYOff, void *pData) = 0;
244 virtual CPLErr IWriteBlockcxx . . $ GDALRasterBand#IWriteBlock(282c12597d894d0d).(int nBlockXOff, int nBlockYOff, void *pData);
245
246 virtual CPLErr
247 IRasterIOcxx . . $ GDALRasterBand#IRasterIO(b70cc820beb1726b).(GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize, int nYSize,
248 void *pData, int nBufXSize, int nBufYSize, GDALDataType eBufType,
249 GSpacing nPixelSpace, GSpacing nLineSpace,
250 GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
251
252 virtual int IGetDataCoverageStatuscxx . . $ GDALRasterBand#IGetDataCoverageStatus(96de1b30085f222c).(int nXOff, int nYOff, int nXSize,
253 int nYSize, int nMaskFlagStop,
254 double *pdfDataPct);
255
256 virtual bool
257 EmitErrorMessageIfWriteNotSupportedcxx . . $ GDALRasterBand#EmitErrorMessageIfWriteNotSupported(7d4bdb1abc417636).(const char *pszCaller) const;
258
259 //! @cond Doxygen_Suppress
260 CPLErr
261 OverviewRasterIOcxx . . $ GDALRasterBand#OverviewRasterIO(b70cc820beb1726b).(GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
262 int nYSize, void *pData, int nBufXSize, int nBufYSize,
263 GDALDataType eBufType, GSpacing nPixelSpace,
264 GSpacing nLineSpace,
265 GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
266
267 CPLErr TryOverviewRasterIOcxx . . $ GDALRasterBand#TryOverviewRasterIO(60844a8edef8571a).(GDALRWFlag eRWFlag, int nXOff, int nYOff,
268 int nXSize, int nYSize, void *pData,
269 int nBufXSize, int nBufYSize,
270 GDALDataType eBufType, GSpacing nPixelSpace,
271 GSpacing nLineSpace,
272 GDALRasterIOExtraArg *psExtraArg, int *pbTried);
273
274 CPLErr SplitRasterIOcxx . . $ GDALRasterBand#SplitRasterIO(b70cc820beb1726b).(GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
275 int nYSize, void *pData, int nBufXSize, int nBufYSize,
276 GDALDataType eBufType, GSpacing nPixelSpace,
277 GSpacing nLineSpace, GDALRasterIOExtraArg *psExtraArg)
278 CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
279
280 int InitBlockInfocxx . . $ GDALRasterBand#InitBlockInfo(b126dc7c1de90089).();
281
282 void AddBlockToFreeListcxx . . $ GDALRasterBand#AddBlockToFreeList(10991a2400f8629b).(GDALRasterBlockcxx . . $ GDALRasterBlock# *);
283
284 bool HasBlockCachecxx . . $ GDALRasterBand#HasBlockCache(50ce9a9e25b4a850).() const
285 {
286 return poBandBlockCachecxx . . $ GDALRasterBand#poBandBlockCache. != nullptr;
287 }
288
289 bool HasDirtyBlockscxx . . $ GDALRasterBand#HasDirtyBlocks(50ce9a9e25b4a850).() const;
290
291 //! @endcond
292
293 public:
294 ~cxx . . $ GDALRasterBand#`~GDALRasterBand`(ced63f7c635d850d).GDALRasterBandcxx . . $ GDALRasterBand#() override;
295
296 int GetXSizecxx . . $ GDALRasterBand#GetXSize(455f465bc33b4cdf).() const;
297 int GetYSizecxx . . $ GDALRasterBand#GetYSize(455f465bc33b4cdf).() const;
298 int GetBandcxx . . $ GDALRasterBand#GetBand(455f465bc33b4cdf).() const;
299 GDALDatasetcxx . . $ GDALDataset# *GetDatasetcxx . . $ GDALRasterBand#GetDataset(b7ce89a678967886).() const;
300
301 GDALDataType GetRasterDataTypecxx . . $ GDALRasterBand#GetRasterDataType(67b7c31f6dead7f).(void) const;
302 void GetBlockSizecxx . . $ GDALRasterBand#GetBlockSize(17144c1a7896dbb).(int *pnXSize, int *pnYSize) const;
303 CPLErr GetActualBlockSizecxx . . $ GDALRasterBand#GetActualBlockSize(c2c6fa4de455d709).(int nXBlockOff, int nYBlockOff, int *pnXValid,
304 int *pnYValid) const;
305
306 virtual GDALSuggestedBlockAccessPatterncxx . . $ GDALSuggestedBlockAccessPattern#
307 GetSuggestedBlockAccessPatterncxx . . $ GDALRasterBand#GetSuggestedBlockAccessPattern(455f465bc33b4cdf).() const;
308
309 GDALAccess GetAccesscxx . . $ GDALRasterBand#GetAccess(2bb5fc578d4caf40).();
310
311 #ifndef DOXYGEN_SKIP
312 CPLErr RasterIOcxx . . $ GDALRasterBand#RasterIO(b70cc820beb1726b).(GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
313 int nYSize, void *pData, int nBufXSize, int nBufYSize,
314 GDALDataType eBufType, GSpacing nPixelSpace,
315 GSpacing nLineSpace,
316 GDALRasterIOExtraArg *psExtraArg
317 OPTIONAL_OUTSIDE_GDALcxx . . $ `gcore/gdal_dataset.h:57:9`!(nullptr)) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
318 #else
319 CPLErr RasterIO(GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
320 int nYSize, void *pData, int nBufXSize, int nBufYSize,
321 GDALDataType eBufType, GSpacing nPixelSpace,
322 GSpacing nLineSpace,
323 GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULT;
324 #endif
325
326 template <class T>
327 CPLErr ReadRastercxx . . $ GDALRasterBand#ReadRaster(6e21374e9a207d37).(T *pData, size_t nArrayEltCount = 0, double dfXOff = 0,
328 double dfYOff = 0, double dfXSize = 0, double dfYSize = 0,
329 size_t nBufXSize = 0, size_t nBufYSize = 0,
330 GDALRIOResampleAlg eResampleAlg = GRIORA_NearestNeighbour,
331 GDALProgressFunc pfnProgress = nullptr,
332 void *pProgressData = nullptr) const;
333
334 template <class T>
335 CPLErr ReadRastercxx . . $ GDALRasterBand#ReadRaster(4b2f05d59de9543c).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<T> &vData, double dfXOff = 0,
336 double dfYOff = 0, double dfXSize = 0, double dfYSize = 0,
337 size_t nBufXSize = 0, size_t nBufYSize = 0,
338 GDALRIOResampleAlg eResampleAlg = GRIORA_NearestNeighbour,
339 GDALProgressFunc pfnProgress = nullptr,
340 void *pProgressData = nullptr) const;
341
342 #if __cpluspluscxx . . $ `<built-in>:471:9`! >= 202002L
343 //! @cond Doxygen_Suppress
344 template <class T>
345 inline CPLErr
346 ReadRastercxx . . $ GDALRasterBand#ReadRaster(c41dfbfc6e5c899c).(stdcxx . . $ std/::spancxx . . $ std/span#<T> pData, double dfXOff = 0, double dfYOff = 0,
347 double dfXSize = 0, double dfYSize = 0, size_t nBufXSize = 0,
348 size_t nBufYSize = 0,
349 GDALRIOResampleAlg eResampleAlg = GRIORA_NearestNeighbour,
350 GDALProgressFunc pfnProgress = nullptr,
351 void *pProgressData = nullptr) const
352 {
353 return ReadRastercxx . . $ GDALRasterBand#ReadRaster(c41dfbfc6e5c899c).(pData.datacxx . . $ std/span#data(34d6acfd341ba7ab).(), pData.sizecxx . . $ std/span#size(c9b1e749b64d5edc).(), dfXOff, dfYOff, dfXSize,
354 dfYSize, nBufXSize, nBufYSize, eResampleAlg,
355 pfnProgress, pProgressData);
356 }
357
358 //! @endcond
359 #endif
360
361 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
362 operatorcxx . . $ GDALRasterBand#operator+(c0a4985fc4badcd6).+(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
363 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#operator+(715de9de73eee09e).+(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
364 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
365 operatorcxx . . $ operator+(77115d3de8a92e68).+(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
366
367 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
368 operatorcxx . . $ GDALRasterBand#operator-(c0a4985fc4badcd6).-(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
369 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#operator-(715de9de73eee09e).-(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
370 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
371 operatorcxx . . $ operator-(77115d3de8a92e68).-(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
372
373 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
374 operatorcxx . . $ GDALRasterBand#`operator*`(c0a4985fc4badcd6).*(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
375 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator*`(715de9de73eee09e).*(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
376 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
377 operatorcxx . . $ `operator*`(77115d3de8a92e68).*(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
378
379 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
380 operatorcxx . . $ GDALRasterBand#`operator/`(c0a4985fc4badcd6)./(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
381 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator/`(715de9de73eee09e)./(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
382 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
383 operatorcxx . . $ `operator/`(77115d3de8a92e68)./(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
384
385 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
386 operatorcxx . . $ GDALRasterBand#`operator>`(c0a4985fc4badcd6).>(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
387 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator>`(715de9de73eee09e).>(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
388 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
389 operatorcxx . . $ `operator>`(77115d3de8a92e68).>(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
390
391 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
392 operatorcxx . . $ GDALRasterBand#`operator>=`(c0a4985fc4badcd6).>=(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
393 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator>=`(715de9de73eee09e).>=(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
394 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
395 operatorcxx . . $ `operator>=`(77115d3de8a92e68).>=(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
396
397 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
398 operatorcxx . . $ GDALRasterBand#`operator<`(c0a4985fc4badcd6).<(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
399 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator<`(715de9de73eee09e).<(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
400 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
401 operatorcxx . . $ `operator<`(77115d3de8a92e68).<(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
402
403 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
404 operatorcxx . . $ GDALRasterBand#`operator<=`(c0a4985fc4badcd6).<=(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
405 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator<=`(715de9de73eee09e).<=(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
406 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
407 operatorcxx . . $ `operator<=`(77115d3de8a92e68).<=(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
408
409 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
410 operatorcxx . . $ GDALRasterBand#`operator==`(c0a4985fc4badcd6).==(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
411 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator==`(715de9de73eee09e).==(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
412 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
413 operatorcxx . . $ `operator==`(77115d3de8a92e68).==(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
414
415 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
416 operatorcxx . . $ GDALRasterBand#`operator!=`(c0a4985fc4badcd6).!=(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
417 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator!=`(715de9de73eee09e).!=(double cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
418 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
419 operatorcxx . . $ `operator!=`(77115d3de8a92e68).!=(double cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
420
421 #if defined(__GNUC__cxx . . $ `<built-in>:8:9`!)
422 #pragma GCC diagnostic push
423 #pragma GCC diagnostic ignored "-Weffc++"
424 #endif
425
426 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
427 operatorcxx . . $ GDALRasterBand#`operator&&`(c0a4985fc4badcd6).&&(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
428 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator&&`(feb5d20bbef79cab).&&(bool cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
429 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
430 operatorcxx . . $ `operator&&`(8f9b2b9f289a8008).&&(bool cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
431
432 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand#
433 operatorcxx . . $ GDALRasterBand#`operator||`(c0a4985fc4badcd6).||(const GDALRasterBandcxx . . $ GDALRasterBand# &other) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
434 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator||`(feb5d20bbef79cab).||(bool cst) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
435 friend GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# CPL_DLLcxx . . $ `port/cpl_port.h:295:9`!
436 operatorcxx . . $ `operator||`(8f9b2b9f289a8008).||(bool cst, const GDALRasterBandcxx . . $ GDALRasterBand# &other) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
437
438 #if defined(__GNUC__cxx . . $ `<built-in>:8:9`!)
439 #pragma GCC diagnostic pop
440 #endif
441
442 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#`operator!`(ef692f20d17bc50d).!() const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
443
444 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# operatorcxx . . $ GDALRasterBand#operator-(ef692f20d17bc50d).-() const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
445
446 GDALComputedRasterBandcxx . . $ GDALComputedRasterBand# AsTypecxx . . $ GDALRasterBand#AsType(dbb1cf2a9af1ad78).(GDALDataType) const CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
447
448 CPLErr ReadBlockcxx . . $ GDALRasterBand#ReadBlock(282c12597d894d0d).(int nXBlockOff, int nYBlockOff,
449 void *pImage) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
450
451 CPLErr WriteBlockcxx . . $ GDALRasterBand#WriteBlock(282c12597d894d0d).(int nXBlockOff, int nYBlockOff,
452 void *pImage) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
453
454 // This method should only be overloaded by GDALProxyRasterBand
455 virtual GDALRasterBlockcxx . . $ GDALRasterBlock# *
456 GetLockedBlockRefcxx . . $ GDALRasterBand#GetLockedBlockRef(6091878fad84eac5).(int nXBlockOff, int nYBlockOff,
457 int bJustInitialize = FALSEcxx . . $ `port/cpl_port.h:1180:9`!) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
458
459 // This method should only be overloaded by GDALProxyRasterBand
460 virtual GDALRasterBlockcxx . . $ GDALRasterBlock# *
461 TryGetLockedBlockRefcxx . . $ GDALRasterBand#TryGetLockedBlockRef(94196bcc86569949).(int nXBlockOff,
462 int nYBlockYOff) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
463
464 // This method should only be overloaded by GDALProxyRasterBand
465 virtual CPLErr FlushBlockcxx . . $ GDALRasterBand#FlushBlock(35a487020589a61c).(int nXBlockOff, int nYBlockOff,
466 int bWriteDirtyBlock = TRUEcxx . . $ `port/cpl_port.h:1184:9`!);
467
468 unsigned char *
469 GetIndexColorTranslationTocxx . . $ GDALRasterBand#GetIndexColorTranslationTo(7cb04ec3f41f9715).(/* const */ GDALRasterBandcxx . . $ GDALRasterBand# *poReferenceBand,
470 unsigned char *pTranslationTable = nullptr,
471 int *pApproximateMatching = nullptr);
472
473 // New OpengIS CV_SampleDimension stuff.
474
475 virtual CPLErr FlushCachecxx . . $ GDALRasterBand#FlushCache(426a86739463d040).(bool bAtClosing = false);
476 virtual CPLErr DropCachecxx . . $ GDALRasterBand#DropCache(1953a311f24b2543).();
477 virtual char **GetCategoryNamescxx . . $ GDALRasterBand#GetCategoryNames(de5739791ae7584).();
478 virtual double GetNoDataValuecxx . . $ GDALRasterBand#GetNoDataValue(3e6f4119bf25dad8).(int *pbSuccess = nullptr);
479 virtual int64_t GetNoDataValueAsInt64cxx . . $ GDALRasterBand#GetNoDataValueAsInt64(53e981deeddb4f44).(int *pbSuccess = nullptr);
480 virtual uint64_tcxx . . $ uint64_t# GetNoDataValueAsUInt64cxx . . $ GDALRasterBand#GetNoDataValueAsUInt64(7cc5a8ba677b59b3).(int *pbSuccess = nullptr);
481
482 #if __cpluspluscxx . . $ `<built-in>:484:9`! >= 201703L
483 template <class T> inline stdcxx . . $ std/::optionalcxx . . $ std/optional#<T> GetNoDataValuecxx . . $ GDALRasterBand#GetNoDataValue(af95876f91a4b24c).() const
484 {
485 int bSuccess = false;
486 if constexpr (stdcxx . . $ std/::is_same_v<T, int64_t>)
487 {
488 const int64_t v =
489 const_cast<GDALRasterBandcxx . . $ GDALRasterBand# *>(this)->GetNoDataValueAsInt64cxx . . $ GDALRasterBand#GetNoDataValueAsInt64(53e981deeddb4f44).(
490 &bSuccess);
491 if (!bSuccess)
492 return {};
493 return v;
494 }
495 else if constexpr (stdcxx . . $ std/::is_same_v<T, uint64_tcxx . . $ uint64_t#>)
496 {
497 const uint64_tcxx . . $ uint64_t# v =
498 const_cast<GDALRasterBandcxx . . $ GDALRasterBand# *>(this)->GetNoDataValueAsUInt64cxx . . $ GDALRasterBand#GetNoDataValueAsUInt64(7cc5a8ba677b59b3).(
499 &bSuccess);
500 if (!bSuccess)
501 return {};
502 return v;
503 }
504 else
505 {
506 const double v =
507 const_cast<GDALRasterBandcxx . . $ GDALRasterBand# *>(this)->GetNoDataValuecxx . . $ GDALRasterBand#GetNoDataValue(3e6f4119bf25dad8).(&bSuccess);
508 if (!bSuccess)
509 return {};
510 return v;
511 }
512 }
513 #endif
514
515 virtual double GetMinimumcxx . . $ GDALRasterBand#GetMinimum(3e6f4119bf25dad8).(int *pbSuccess = nullptr);
516 virtual double GetMaximumcxx . . $ GDALRasterBand#GetMaximum(3e6f4119bf25dad8).(int *pbSuccess = nullptr);
517 virtual double GetOffsetcxx . . $ GDALRasterBand#GetOffset(3e6f4119bf25dad8).(int *pbSuccess = nullptr);
518 virtual double GetScalecxx . . $ GDALRasterBand#GetScale(3e6f4119bf25dad8).(int *pbSuccess = nullptr);
519 virtual const char *GetUnitTypecxx . . $ GDALRasterBand#GetUnitType(33a1f659e94feb42).();
520 virtual GDALColorInterp GetColorInterpretationcxx . . $ GDALRasterBand#GetColorInterpretation(35c4b535829078b5).();
521 virtual GDALColorTablecxx . . $ GDALColorTable# *GetColorTablecxx . . $ GDALRasterBand#GetColorTable(bb3b733f241ea394).();
522 virtual CPLErr Fillcxx . . $ GDALRasterBand#Fill(d80696ac2558d659).(double dfRealValue, double dfImaginaryValue = 0);
523
524 virtual CPLErr SetCategoryNamescxx . . $ GDALRasterBand#SetCategoryNames(74fdccf3e7038a20).(char **papszNames);
525 virtual CPLErr SetNoDataValuecxx . . $ GDALRasterBand#SetNoDataValue(e675d8b745d1cf66).(double dfNoData);
526 virtual CPLErr SetNoDataValueAsInt64cxx . . $ GDALRasterBand#SetNoDataValueAsInt64(70d695b0b30fb7a1).(int64_t nNoData);
527 virtual CPLErr SetNoDataValueAsUInt64cxx . . $ GDALRasterBand#SetNoDataValueAsUInt64(d89d8a2165715b73).(uint64_tcxx . . $ uint64_t# nNoData);
528 CPLErr SetNoDataValueAsStringcxx . . $ GDALRasterBand#SetNoDataValueAsString(5cf0619c5d2938a0).(const char *pszNoData,
529 bool *pbCannotBeExactlyRepresented = nullptr);
530 virtual CPLErr DeleteNoDataValuecxx . . $ GDALRasterBand#DeleteNoDataValue(1953a311f24b2543).();
531 virtual CPLErr SetColorTablecxx . . $ GDALRasterBand#SetColorTable(a567fd1abdfca9c2).(GDALColorTablecxx . . $ GDALColorTable# *poCT);
532 virtual CPLErr SetColorInterpretationcxx . . $ GDALRasterBand#SetColorInterpretation(c011c7294b0c36f0).(GDALColorInterp eColorInterp);
533 virtual CPLErr SetOffsetcxx . . $ GDALRasterBand#SetOffset(e675d8b745d1cf66).(double dfNewOffset);
534 virtual CPLErr SetScalecxx . . $ GDALRasterBand#SetScale(e675d8b745d1cf66).(double dfNewScale);
535 virtual CPLErr SetUnitTypecxx . . $ GDALRasterBand#SetUnitType(80d06f1dc84b2c8f).(const char *pszNewValue);
536
537 virtual CPLErr GetStatisticscxx . . $ GDALRasterBand#GetStatistics(635903cb44342101).(int bApproxOK, int bForce, double *pdfMin,
538 double *pdfMax, double *pdfMean,
539 double *padfStdDev);
540 virtual CPLErr ComputeStatisticscxx . . $ GDALRasterBand#ComputeStatistics(8c201b4353aeff4).(int bApproxOK, double *pdfMin,
541 double *pdfMax, double *pdfMean,
542 double *pdfStdDev, GDALProgressFunc,
543 void *pProgressData);
544 virtual CPLErr SetStatisticscxx . . $ GDALRasterBand#SetStatistics(2ae1f24f66ee369d).(double dfMin, double dfMax, double dfMean,
545 double dfStdDev);
546 virtual CPLErr ComputeRasterMinMaxcxx . . $ GDALRasterBand#ComputeRasterMinMax(36ff1254a5121fec).(int bApproxOK, double *adfMinMax);
547 virtual CPLErr ComputeRasterMinMaxLocationcxx . . $ GDALRasterBand#ComputeRasterMinMaxLocation(8b89245c2dad4328).(double *pdfMin, double *pdfMax,
548 int *pnMinX, int *pnMinY,
549 int *pnMaxX, int *pnMaxY);
550
551 // Only defined when Doxygen enabled
552 #ifdef DOXYGEN_SKIP
553 CPLErr SetMetadata(char **papszMetadata, const char *pszDomain) override;
554 CPLErr SetMetadataItem(const char *pszName, const char *pszValue,
555 const char *pszDomain) override;
556 #endif
557 virtual const char *GetMetadataItemcxx . . $ GDALRasterBand#GetMetadataItem(1320557f0feba62c).(const char *pszName,
558 const char *pszDomain = "") override;
559
560 virtual int HasArbitraryOverviewscxx . . $ GDALRasterBand#HasArbitraryOverviews(b126dc7c1de90089).();
561 virtual int GetOverviewCountcxx . . $ GDALRasterBand#GetOverviewCount(b126dc7c1de90089).();
562 virtual GDALRasterBandcxx . . $ GDALRasterBand# *GetOverviewcxx . . $ GDALRasterBand#GetOverview(b7317453d4fdb323).(int i);
563 virtual GDALRasterBandcxx . . $ GDALRasterBand# *GetRasterSampleOverviewcxx . . $ GDALRasterBand#GetRasterSampleOverview(4fcab2b4adc3cac2).(GUIntBigcxx . . $ GUIntBig#);
564 virtual CPLErr BuildOverviewscxx . . $ GDALRasterBand#BuildOverviews(58c3adcf6e2475ad).(const char *pszResampling, int nOverviews,
565 const int *panOverviewList,
566 GDALProgressFunc pfnProgress,
567 void *pProgressData,
568 CSLConstListcxx . . $ CSLConstList# papszOptions);
569
570 virtual CPLErr AdviseReadcxx . . $ GDALRasterBand#AdviseRead(5e7a34d519061f20).(int nXOff, int nYOff, int nXSize, int nYSize,
571 int nBufXSize, int nBufYSize,
572 GDALDataType eBufType, CSLConstListcxx . . $ CSLConstList# papszOptions);
573
574 virtual CPLErr GetHistogramcxx . . $ GDALRasterBand#GetHistogram(56d705a0638c987a).(double dfMin, double dfMax, int nBuckets,
575 GUIntBigcxx . . $ GUIntBig# *panHistogram, int bIncludeOutOfRange,
576 int bApproxOK, GDALProgressFunc,
577 void *pProgressData);
578
579 virtual CPLErr GetDefaultHistogramcxx . . $ GDALRasterBand#GetDefaultHistogram(87f28817729f5722).(double *pdfMin, double *pdfMax,
580 int *pnBuckets, GUIntBigcxx . . $ GUIntBig# **ppanHistogram,
581 int bForce, GDALProgressFunc,
582 void *pProgressData);
583 virtual CPLErr SetDefaultHistogramcxx . . $ GDALRasterBand#SetDefaultHistogram(a4df1539b05b2920).(double dfMin, double dfMax, int nBuckets,
584 GUIntBigcxx . . $ GUIntBig# *panHistogram);
585
586 virtual GDALRasterAttributeTablecxx . . $ GDALRasterAttributeTable# *GetDefaultRATcxx . . $ GDALRasterBand#GetDefaultRAT(8f07481e09ec6e41).();
587 virtual CPLErr SetDefaultRATcxx . . $ GDALRasterBand#SetDefaultRAT(45de0b5f7bd2e3de).(const GDALRasterAttributeTablecxx . . $ GDALRasterAttributeTable# *poRAT);
588
589 virtual GDALRasterBandcxx . . $ GDALRasterBand# *GetMaskBandcxx . . $ GDALRasterBand#GetMaskBand(111a65e5324080aa).();
590 virtual int GetMaskFlagscxx . . $ GDALRasterBand#GetMaskFlags(b126dc7c1de90089).();
591 virtual CPLErr CreateMaskBandcxx . . $ GDALRasterBand#CreateMaskBand(12afea9a06158a59).(int nFlagsIn);
592 virtual bool IsMaskBandcxx . . $ GDALRasterBand#IsMaskBand(50ce9a9e25b4a850).() const;
593 virtual GDALMaskValueRangecxx . . $ GDALMaskValueRange# GetMaskValueRangecxx . . $ GDALRasterBand#GetMaskValueRange(6f5d8b4669f1287f).() const;
594 bool HasConflictingMaskSourcescxx . . $ GDALRasterBand#HasConflictingMaskSources(542f9929cdd24435).(stdcxx . . $ std/::stringcxx . . $ std/string# *posDetailMessage = nullptr,
595 bool bMentionPrioritarySource = true) const;
596
597 virtual CPLVirtualMem *
598 GetVirtualMemAutocxx . . $ GDALRasterBand#GetVirtualMemAuto(eb82f5e1bfa158d7).(GDALRWFlag eRWFlag, int *pnPixelSpace,
599 GIntBigcxx . . $ GIntBig# *pnLineSpace,
600 CSLConstListcxx . . $ CSLConstList# papszOptions) CPL_WARN_UNUSED_RESULTcxx . . $ `port/cpl_port.h:1032:9`!;
601
602 int GetDataCoverageStatuscxx . . $ GDALRasterBand#GetDataCoverageStatus(96de1b30085f222c).(int nXOff, int nYOff, int nXSize, int nYSize,
603 int nMaskFlagStop = 0,
604 double *pdfDataPct = nullptr);
605
606 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<GDALMDArraycxx . . $ GDALMDArray#> AsMDArraycxx . . $ GDALRasterBand#AsMDArray(af1e5622ed36ffc9).() const;
607
608 CPLErr InterpolateAtGeolocationcxx . . $ GDALRasterBand#InterpolateAtGeolocation(651cdfe6ae11856e).(
609 double dfGeolocX, double dfGeolocY, const OGRSpatialReferencecxx . . $ OGRSpatialReference# *poSRS,
610 GDALRIOResampleAlg eInterpolation, double *pdfRealValue,
611 double *pdfImagValue = nullptr,
612 CSLConstListcxx . . $ CSLConstList# papszTransformerOptions = nullptr) const;
613
614 virtual CPLErr InterpolateAtPointcxx . . $ GDALRasterBand#InterpolateAtPoint(1a75f99ccaaa5c5).(double dfPixel, double dfLine,
615 GDALRIOResampleAlg eInterpolation,
616 double *pdfRealValue,
617 double *pdfImagValue = nullptr) const;
618
619 //! @cond Doxygen_Suppress
620 class CPL_DLLcxx . . $ `port/cpl_port.h:295:9`! WindowIteratorcxx . . $ GDALRasterBand#WindowIterator#
621 {
622 public:
623 using iterator_categorycxx . . $ GDALRasterBand#WindowIterator#iterator_category# = stdcxx . . $ std/::input_iterator_tagcxx . . $ std/input_iterator_tag#;
624 using difference_typecxx . . $ GDALRasterBand#WindowIterator#difference_type# = stdcxx . . $ std/::ptrdiff_tcxx . . $ std/ptrdiff_t#;
625
626 using value_typecxx . . $ GDALRasterBand#WindowIterator#value_type# = GDALRasterWindowcxx . . $ GDALRasterWindow#;
627 using pointercxx . . $ GDALRasterBand#WindowIterator#pointer# = value_typecxx . . $ GDALRasterBand#WindowIterator#value_type# *;
628 using referencecxx . . $ GDALRasterBand#WindowIterator#reference# = value_typecxx . . $ GDALRasterBand#WindowIterator#value_type# &;
629
630 WindowIteratorcxx . . $ GDALRasterBand#WindowIterator#WindowIterator(4df37d5d0c1dcce).(int nRasterXSize, int nRasterYSize, int nBlockXSize,
631 int nBlockYSize, int nRow, int nCol);
632
633 bool operatorcxx . . $ GDALRasterBand#WindowIterator#`operator==`(73df133645b42ecc).==(const WindowIteratorcxx . . $ GDALRasterBand#WindowIterator# &other) const;
634
635 bool operatorcxx . . $ GDALRasterBand#WindowIterator#`operator!=`(73df133645b42ecc).!=(const WindowIteratorcxx . . $ GDALRasterBand#WindowIterator# &other) const;
636
637 value_typecxx . . $ GDALRasterBand#WindowIterator#value_type# operatorcxx . . $ GDALRasterBand#WindowIterator#`operator*`(7e87e46ddd461504).*() const;
638
639 WindowIteratorcxx . . $ GDALRasterBand#WindowIterator# &operatorcxx . . $ GDALRasterBand#WindowIterator#operator++(fe11dd981a24ed4b).++();
640
641 private:
642 int m_nRasterXSizecxx . . $ GDALRasterBand#WindowIterator#m_nRasterXSize.;
643 int m_nRasterYSizecxx . . $ GDALRasterBand#WindowIterator#m_nRasterYSize.;
644 int m_nBlockXSizecxx . . $ GDALRasterBand#WindowIterator#m_nBlockXSize.;
645 int m_nBlockYSizecxx . . $ GDALRasterBand#WindowIterator#m_nBlockYSize.;
646 int m_rowcxx . . $ GDALRasterBand#WindowIterator#m_row.;
647 int m_colcxx . . $ GDALRasterBand#WindowIterator#m_col.;
648 };
649
650 class CPL_DLLcxx . . $ `port/cpl_port.h:295:9`! WindowIteratorWrappercxx . . $ GDALRasterBand#WindowIteratorWrapper#
651 {
652 public:
653 explicit WindowIteratorWrappercxx . . $ GDALRasterBand#WindowIteratorWrapper#WindowIteratorWrapper(1307f8d22b6de77f).(const GDALRasterBandcxx . . $ GDALRasterBand# &band,
654 size_t maxSize = 0);
655
656 explicit WindowIteratorWrappercxx . . $ GDALRasterBand#WindowIteratorWrapper#WindowIteratorWrapper(78ecc645aa37bfcc).(const GDALRasterBandcxx . . $ GDALRasterBand# &band1,
657 const GDALRasterBandcxx . . $ GDALRasterBand# &band2,
658 size_t maxSize = 0);
659
660 uint64_tcxx . . $ uint64_t# countcxx . . $ GDALRasterBand#WindowIteratorWrapper#count(fe4d2d262d4164a8).() const;
661
662 WindowIteratorcxx . . $ GDALRasterBand#WindowIterator# begincxx . . $ GDALRasterBand#WindowIteratorWrapper#begin(502e4640a6710159).() const;
663
664 WindowIteratorcxx . . $ GDALRasterBand#WindowIterator# endcxx . . $ GDALRasterBand#WindowIteratorWrapper#end(502e4640a6710159).() const;
665
666 private:
667 const int m_nRasterXSizecxx . . $ GDALRasterBand#WindowIteratorWrapper#m_nRasterXSize.;
668 const int m_nRasterYSizecxx . . $ GDALRasterBand#WindowIteratorWrapper#m_nRasterYSize.;
669 int m_nBlockXSizecxx . . $ GDALRasterBand#WindowIteratorWrapper#m_nBlockXSize.;
670 int m_nBlockYSizecxx . . $ GDALRasterBand#WindowIteratorWrapper#m_nBlockYSize.;
671
672 WindowIteratorWrappercxx . . $ GDALRasterBand#WindowIteratorWrapper#WindowIteratorWrapper(eb51b7a8e85811f6).(int nRasterXSize, int nRasterYSize,
673 int nBlockXSize, int nBlockYSize, size_t maxSize);
674 };
675
676 //! @endcond
677
678 WindowIteratorWrappercxx . . $ GDALRasterBand#WindowIteratorWrapper# IterateWindowscxx . . $ GDALRasterBand#IterateWindows(5b716f76e6f1eb8a).(size_t maxSize = 0) const;
679
680 virtual bool MayMultiBlockReadingBeMultiThreadedcxx . . $ GDALRasterBand#MayMultiBlockReadingBeMultiThreaded(50ce9a9e25b4a850).() const;
681
682 #ifndef DOXYGEN_XML
683 void ReportErrorcxx . . $ GDALRasterBand#ReportError(e42ccf14ddaff0e3).(CPLErr eErrClass, CPLErrorNum err_no, const char *fmt,
684 ...) const CPL_PRINT_FUNC_FORMATcxx . . $ `port/cpl_port.h:1002:9`!(4, 5);
685 #endif
686
687 //! @cond Doxygen_Suppress
688 static void ThrowIfNotSameDimensionscxx . . $ GDALRasterBand#ThrowIfNotSameDimensions(3bcbba48edb0f903).(const GDALRasterBandcxx . . $ GDALRasterBand# &first,
689 const GDALRasterBandcxx . . $ GDALRasterBand# &second);
690
691 //! @endcond
692
693 /** Convert a GDALRasterBand* to a GDALRasterBandH.
694 */
695 static inline GDALRasterBandH ToHandlecxx . . $ GDALRasterBand#ToHandle(56d7afe699559f57).(GDALRasterBandcxx . . $ GDALRasterBand# *poBand)
696 {
697 return static_cast<GDALRasterBandH>(poBand);
698 }
699
700 /** Convert a GDALRasterBandH to a GDALRasterBand*.
701 */
702 static inline GDALRasterBandcxx . . $ GDALRasterBand# *FromHandlecxx . . $ GDALRasterBand#FromHandle(542b6f2e59a6550c).(GDALRasterBandH hBand)
703 {
704 return static_cast<GDALRasterBandcxx . . $ GDALRasterBand# *>(hBand);
705 }
706
707 //! @cond Doxygen_Suppress
708 // Remove me in GDAL 4.0. See GetMetadataItem() implementation
709 // Internal use in GDAL only !
710 virtual void EnablePixelTypeSignedByteWarningcxx . . $ GDALRasterBand#EnablePixelTypeSignedByteWarning(b45ddcbc8423892c).(bool b)
711 #ifndef GDAL_COMPILATIONcxx . . $ `<built-in>:483:9`!
712 CPL_WARN_DEPRECATED("Do not use that method outside of GDAL!")
713 #endif
714 ;
715
716 //! @endcond
717
718 private:
719 CPL_DISALLOW_COPY_ASSIGNcxx . . $ GDALRasterBand#`operator=`(9428f538010c0f70).(GDALRasterBand)
720 };
721
722 //! @cond Doxygen_Suppress
723 #define GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(T) \
724 extern template CPLErr GDALRasterBand::ReadRaster<T>( \
725 T * pData, size_t nArrayEltCount, double dfXOff, double dfYOff, \
726 double dfXSize, double dfYSize, size_t nBufXSize, size_t nBufYSize, \
727 GDALRIOResampleAlg eResampleAlg, GDALProgressFunc pfnProgress, \
728 void *pProgressData) const;
729
730 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(uint8_t)
731 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(int8_t)
732 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(uint16_t)
733 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(int16_t)
734 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(uint32_t)
735 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(int32_t)
736 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(uint64_t)
737 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(int64_t)
738 #ifdef CPL_FLOAT_H_INCLUDEDcxx . . $ `port/cpl_float.h:48:9`!
739 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(GFloat16)
740 #endif
741 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(float)
742 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(double)
743 // Not allowed by C++ standard
744 // GDAL_EXTERN_TEMPLATE_READ_RASTER(std::complex<int16_t>)
745 // GDAL_EXTERN_TEMPLATE_READ_RASTER(std::complex<int32_t>)
746 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(std::complex<float>)
747 GDAL_EXTERN_TEMPLATE_READ_RASTERcxx . . $ `gcore/gdal_rasterband.h:723:9`!(std::complex<double>)
748
749 #define GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(T) \
750 extern template CPLErr GDALRasterBand::ReadRaster<T>( \
751 std::vector<T> & vData, double dfXOff, double dfYOff, double dfXSize, \
752 double dfYSize, size_t nBufXSize, size_t nBufYSize, \
753 GDALRIOResampleAlg eResampleAlg, GDALProgressFunc pfnProgress, \
754 void *pProgressData) const;
755
756 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(uint8_t)
757 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(int8_t)
758 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(uint16_t)
759 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(int16_t)
760 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(uint32_t)
761 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(int32_t)
762 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(uint64_t)
763 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(int64_t)
764 #ifdef CPL_FLOAT_H_INCLUDEDcxx . . $ `port/cpl_float.h:48:9`!
765 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(GFloat16)
766 #endif
767 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(float)
768 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(double)
769 // Not allowed by C++ standard
770 // GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTOR(std::complex<int16_t>)
771 // GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTOR(std::complex<int32_t>)
772 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(std::complex<float>)
773 GDAL_EXTERN_TEMPLATE_READ_RASTER_VECTORcxx . . $ `gcore/gdal_rasterband.h:749:9`!(std::complex<double>)
774
775 //! @endcond
776
777 #include "gdal_computedrasterband.h"cxx . . $ `<file>/gcore/gdal_computedrasterband.h`/
778
779 #endif