forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgdalproxydataset.cpp
507 lines (467 loc) · 25.6 KB
/
gdalproxydataset.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
/******************************************************************************
*
* Project: GDAL Core
* Purpose: A dataset and raster band classes that act as proxy for underlying
* GDALDataset* and GDALRasterBand*
* Author: Even Rouault <even dot rouault at spatialys.com>
*
******************************************************************************
* Copyright (c) 2008-2014, Even Rouault <even dot rouault at spatialys.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
****************************************************************************/
#include "cpl_port.h"
#include "gdal_proxy.h"
#include <cstddef>
#include "cpl_error.h"
#include "cpl_progress.h"
#include "cpl_virtualmem.h"
#include "gdal.h"
#include "gdal_priv.h"
/*! @cond Doxygen_Suppress */
/* ******************************************************************** */
/* GDALProxyDataset */
/* ******************************************************************** */
#define D_PROXY_METHOD_WITH_RET(retType, retErrValue, methodName, argList, \
argParams) \
retType GDALProxyDataset::methodName argList \
{ \
retType ret; \
GDALDataset *poUnderlyingDataset = RefUnderlyingDataset(); \
if (poUnderlyingDataset) \
{ \
ret = poUnderlyingDataset->methodName argParams; \
UnrefUnderlyingDataset(poUnderlyingDataset); \
} \
else \
{ \
ret = retErrValue; \
} \
return ret; \
}
CPLErr GDALProxyDataset::IRasterIO(GDALRWFlag eRWFlag, int nXOff, int nYOff,
int nXSize, int nYSize, void *pData,
int nBufXSize, int nBufYSize,
GDALDataType eBufType, int nBandCount,
int *panBandMap, GSpacing nPixelSpace,
GSpacing nLineSpace, GSpacing nBandSpace,
GDALRasterIOExtraArg *psExtraArg)
{
CPLErr ret;
GDALDataset *poUnderlyingDataset = RefUnderlyingDataset();
if (poUnderlyingDataset)
{
/* --------------------------------------------------------------------
*/
/* Do some validation of parameters. */
/* --------------------------------------------------------------------
*/
if (nXOff + nXSize > poUnderlyingDataset->GetRasterXSize() ||
nYOff + nYSize > poUnderlyingDataset->GetRasterYSize())
{
ReportError(CE_Failure, CPLE_IllegalArg,
"Access window out of range in RasterIO(). Requested\n"
"(%d,%d) of size %dx%d on raster of %dx%d.",
nXOff, nYOff, nXSize, nYSize,
poUnderlyingDataset->GetRasterXSize(),
poUnderlyingDataset->GetRasterYSize());
ret = CE_Failure;
}
else if (panBandMap == nullptr &&
nBandCount > poUnderlyingDataset->GetRasterCount())
{
ReportError(CE_Failure, CPLE_IllegalArg,
"%s: nBandCount cannot be greater than %d", "IRasterIO",
poUnderlyingDataset->GetRasterCount());
ret = CE_Failure;
}
else
{
ret = CE_None;
for (int i = 0; i < nBandCount && ret == CE_None; ++i)
{
int iBand = (panBandMap != nullptr) ? panBandMap[i] : i + 1;
if (iBand < 1 || iBand > poUnderlyingDataset->GetRasterCount())
{
ReportError(CE_Failure, CPLE_IllegalArg,
"%s: panBandMap[%d] = %d, this band does not "
"exist on dataset.",
"IRasterIO", i, iBand);
ret = CE_Failure;
}
if (ret == CE_None &&
poUnderlyingDataset->GetRasterBand(iBand) == nullptr)
{
ReportError(CE_Failure, CPLE_IllegalArg,
"%s: panBandMap[%d]=%d, this band should exist "
"but is NULL!",
"IRasterIO", i, iBand);
ret = CE_Failure;
}
}
if (ret != CE_Failure)
{
ret = poUnderlyingDataset->IRasterIO(
eRWFlag, nXOff, nYOff, nXSize, nYSize, pData, nBufXSize,
nBufYSize, eBufType, nBandCount, panBandMap, nPixelSpace,
nLineSpace, nBandSpace, psExtraArg);
}
}
UnrefUnderlyingDataset(poUnderlyingDataset);
}
else
{
ret = CE_Failure;
}
return ret;
}
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, IBuildOverviews,
(const char *pszResampling, int nOverviews,
const int *panOverviewList, int nListBands,
const int *panBandList, GDALProgressFunc pfnProgress,
void *pProgressData, CSLConstList papszOptions),
(pszResampling, nOverviews, panOverviewList, nListBands,
panBandList, pfnProgress, pProgressData, papszOptions))
D_PROXY_METHOD_WITH_RET(CPLStringList, CPLStringList(), GetCompressionFormats,
(int nXOff, int nYOff, int nXSize, int nYSize,
int nBandCount, const int *panBandList),
(nXOff, nYOff, nXSize, nYSize, nBandCount, panBandList))
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, ReadCompressedData,
(const char *pszFormat, int nXOff, int nYOff,
int nXSize, int nYSize, int nBandCount,
const int *panBandList, void **ppBuffer,
size_t *pnBufferSize, char **ppszDetailedFormat),
(pszFormat, nXOff, nYOff, nXSize, nYSize, nBandCount,
panBandList, ppBuffer, pnBufferSize,
ppszDetailedFormat))
CPLErr GDALProxyDataset::FlushCache(bool bAtClosing)
{
CPLErr eErr = CE_None;
GDALDataset *poUnderlyingDataset = RefUnderlyingDataset();
if (poUnderlyingDataset)
{
eErr = poUnderlyingDataset->FlushCache(bAtClosing);
UnrefUnderlyingDataset(poUnderlyingDataset);
}
return eErr;
}
D_PROXY_METHOD_WITH_RET(char **, nullptr, GetMetadataDomainList, (), ())
D_PROXY_METHOD_WITH_RET(char **, nullptr, GetMetadata, (const char *pszDomain),
(pszDomain))
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetMetadata,
(char **papszMetadata, const char *pszDomain),
(papszMetadata, pszDomain))
D_PROXY_METHOD_WITH_RET(const char *, nullptr, GetMetadataItem,
(const char *pszName, const char *pszDomain),
(pszName, pszDomain))
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetMetadataItem,
(const char *pszName, const char *pszValue,
const char *pszDomain),
(pszName, pszValue, pszDomain))
D_PROXY_METHOD_WITH_RET(const OGRSpatialReference *, nullptr, GetSpatialRef,
() const, ())
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetSpatialRef,
(const OGRSpatialReference *poSRS), (poSRS))
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, GetGeoTransform,
(double *padfGeoTransform), (padfGeoTransform))
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetGeoTransform,
(double *padfGeoTransform), (padfGeoTransform))
D_PROXY_METHOD_WITH_RET(void *, nullptr, GetInternalHandle, (const char *arg1),
(arg1))
D_PROXY_METHOD_WITH_RET(GDALDriver *, nullptr, GetDriver, (), ())
D_PROXY_METHOD_WITH_RET(char **, nullptr, GetFileList, (), ())
D_PROXY_METHOD_WITH_RET(int, 0, GetGCPCount, (), ())
D_PROXY_METHOD_WITH_RET(const OGRSpatialReference *, nullptr, GetGCPSpatialRef,
() const, ())
D_PROXY_METHOD_WITH_RET(const GDAL_GCP *, nullptr, GetGCPs, (), ())
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetGCPs,
(int nGCPCount, const GDAL_GCP *pasGCPList,
const OGRSpatialReference *poGCP_SRS),
(nGCPCount, pasGCPList, poGCP_SRS))
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, AdviseRead,
(int nXOff, int nYOff, int nXSize, int nYSize,
int nBufXSize, int nBufYSize, GDALDataType eDT,
int nBandCount, int *panBandList, char **papszOptions),
(nXOff, nYOff, nXSize, nYSize, nBufXSize, nBufYSize,
eDT, nBandCount, panBandList, papszOptions))
D_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, CreateMaskBand, (int nFlagsIn),
(nFlagsIn))
/************************************************************************/
/* UnrefUnderlyingDataset() */
/************************************************************************/
void GDALProxyDataset::UnrefUnderlyingDataset(
GDALDataset * /* poUnderlyingDataset */) const
{
}
/* ******************************************************************** */
/* GDALProxyRasterBand */
/* ******************************************************************** */
#define RB_PROXY_METHOD_WITH_RET(retType, retErrValue, methodName, argList, \
argParams) \
retType GDALProxyRasterBand::methodName argList \
{ \
retType ret; \
GDALRasterBand *poSrcBand = RefUnderlyingRasterBand(); \
if (poSrcBand) \
{ \
ret = poSrcBand->methodName argParams; \
UnrefUnderlyingRasterBand(poSrcBand); \
} \
else \
{ \
ret = retErrValue; \
} \
return ret; \
}
#define RB_PROXY_METHOD_WITH_RET_WITH_INIT_BLOCK( \
retType, retErrValue, methodName, argList, argParams) \
retType GDALProxyRasterBand::methodName argList \
{ \
retType ret; \
GDALRasterBand *poSrcBand = RefUnderlyingRasterBand(); \
if (poSrcBand) \
{ \
if (!poSrcBand->InitBlockInfo()) \
ret = CE_Failure; \
else \
{ \
int nSrcBlockXSize, nSrcBlockYSize; \
poSrcBand->GetBlockSize(&nSrcBlockXSize, &nSrcBlockYSize); \
if (poSrcBand->GetRasterDataType() != GetRasterDataType()) \
{ \
CPLError( \
CE_Failure, CPLE_AppDefined, \
"Inconsistent datatype between proxy and source"); \
ret = CE_Failure; \
} \
else if (nSrcBlockXSize != nBlockXSize || \
nSrcBlockYSize != nBlockYSize) \
{ \
CPLError(CE_Failure, CPLE_AppDefined, \
"Inconsistent block dimensions between proxy " \
"and source"); \
ret = CE_Failure; \
} \
else \
{ \
ret = poSrcBand->methodName argParams; \
} \
} \
UnrefUnderlyingRasterBand(poSrcBand); \
} \
else \
{ \
ret = retErrValue; \
} \
return ret; \
}
RB_PROXY_METHOD_WITH_RET_WITH_INIT_BLOCK(CPLErr, CE_Failure, IReadBlock,
(int nXBlockOff, int nYBlockOff,
void *pImage),
(nXBlockOff, nYBlockOff, pImage))
RB_PROXY_METHOD_WITH_RET_WITH_INIT_BLOCK(CPLErr, CE_Failure, IWriteBlock,
(int nXBlockOff, int nYBlockOff,
void *pImage),
(nXBlockOff, nYBlockOff, pImage))
CPLErr GDALProxyRasterBand::IRasterIO(GDALRWFlag eRWFlag, int nXOff, int nYOff,
int nXSize, int nYSize, void *pData,
int nBufXSize, int nBufYSize,
GDALDataType eBufType,
GSpacing nPixelSpace, GSpacing nLineSpace,
GDALRasterIOExtraArg *psExtraArg)
{
CPLErr ret;
GDALRasterBand *poSrcBand = RefUnderlyingRasterBand();
if (poSrcBand)
{
/* --------------------------------------------------------------------
*/
/* Do some validation of parameters. */
/* --------------------------------------------------------------------
*/
if (nXOff + nXSize > poSrcBand->GetXSize() ||
nYOff + nYSize > poSrcBand->GetYSize())
{
ReportError(CE_Failure, CPLE_IllegalArg,
"Access window out of range in RasterIO(). Requested\n"
"(%d,%d) of size %dx%d on raster of %dx%d.",
nXOff, nYOff, nXSize, nYSize, poSrcBand->GetXSize(),
poSrcBand->GetYSize());
ret = CE_Failure;
}
else
{
ret = poSrcBand->IRasterIO(eRWFlag, nXOff, nYOff, nXSize, nYSize,
pData, nBufXSize, nBufYSize, eBufType,
nPixelSpace, nLineSpace, psExtraArg);
}
UnrefUnderlyingRasterBand(poSrcBand);
}
else
{
ret = CE_Failure;
}
return ret;
}
RB_PROXY_METHOD_WITH_RET(char **, nullptr, GetMetadataDomainList, (), ())
RB_PROXY_METHOD_WITH_RET(char **, nullptr, GetMetadata, (const char *pszDomain),
(pszDomain))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetMetadata,
(char **papszMetadata, const char *pszDomain),
(papszMetadata, pszDomain))
const char *GDALProxyRasterBand::GetMetadataItem(const char *pszKey,
const char *pszDomain)
{
const char *pszRet = nullptr;
GDALRasterBand *poSrcBand = RefUnderlyingRasterBand();
if (poSrcBand)
{
if (!m_bEnablePixelTypeSignedByteWarning)
poSrcBand->EnablePixelTypeSignedByteWarning(false);
pszRet = poSrcBand->GetMetadataItem(pszKey, pszDomain);
poSrcBand->EnablePixelTypeSignedByteWarning(true);
UnrefUnderlyingRasterBand(poSrcBand);
}
return pszRet;
}
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetMetadataItem,
(const char *pszName, const char *pszValue,
const char *pszDomain),
(pszName, pszValue, pszDomain))
CPLErr GDALProxyRasterBand::FlushCache(bool bAtClosing)
{
// We need to make sure that all cached bocks at the proxy level are
// first flushed
CPLErr ret = GDALRasterBand::FlushCache(bAtClosing);
if (ret == CE_None)
{
GDALRasterBand *poSrcBand = RefUnderlyingRasterBand();
if (poSrcBand)
{
ret = poSrcBand->FlushCache(bAtClosing);
UnrefUnderlyingRasterBand(poSrcBand);
}
else
{
ret = CE_Failure;
}
}
return ret;
}
RB_PROXY_METHOD_WITH_RET(char **, nullptr, GetCategoryNames, (), ())
RB_PROXY_METHOD_WITH_RET(double, 0, GetNoDataValue, (int *pbSuccess),
(pbSuccess))
RB_PROXY_METHOD_WITH_RET(double, 0, GetMinimum, (int *pbSuccess), (pbSuccess))
RB_PROXY_METHOD_WITH_RET(double, 0, GetMaximum, (int *pbSuccess), (pbSuccess))
RB_PROXY_METHOD_WITH_RET(double, 0, GetOffset, (int *pbSuccess), (pbSuccess))
RB_PROXY_METHOD_WITH_RET(double, 0, GetScale, (int *pbSuccess), (pbSuccess))
RB_PROXY_METHOD_WITH_RET(const char *, nullptr, GetUnitType, (), ())
RB_PROXY_METHOD_WITH_RET(GDALColorInterp, GCI_Undefined, GetColorInterpretation,
(), ())
RB_PROXY_METHOD_WITH_RET(GDALColorTable *, nullptr, GetColorTable, (), ())
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, Fill,
(double dfRealValue, double dfImaginaryValue),
(dfRealValue, dfImaginaryValue))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetCategoryNames, (char **arg),
(arg))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetNoDataValue, (double arg),
(arg))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, DeleteNoDataValue, (), ())
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetColorTable,
(GDALColorTable * arg), (arg))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetColorInterpretation,
(GDALColorInterp arg), (arg))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetOffset, (double arg), (arg))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetScale, (double arg), (arg))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetUnitType, (const char *arg),
(arg))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, GetStatistics,
(int bApproxOK, int bForce, double *pdfMin,
double *pdfMax, double *pdfMean, double *padfStdDev),
(bApproxOK, bForce, pdfMin, pdfMax, pdfMean,
padfStdDev))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, ComputeStatistics,
(int bApproxOK, double *pdfMin, double *pdfMax,
double *pdfMean, double *pdfStdDev,
GDALProgressFunc pfn, void *pProgressData),
(bApproxOK, pdfMin, pdfMax, pdfMean, pdfStdDev, pfn,
pProgressData))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetStatistics,
(double dfMin, double dfMax, double dfMean,
double dfStdDev),
(dfMin, dfMax, dfMean, dfStdDev))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, ComputeRasterMinMax,
(int arg1, double *arg2), (arg1, arg2))
RB_PROXY_METHOD_WITH_RET(int, 0, HasArbitraryOverviews, (), ())
RB_PROXY_METHOD_WITH_RET(int, 0, GetOverviewCount, (), ())
RB_PROXY_METHOD_WITH_RET(GDALRasterBand *, nullptr, GetOverview, (int arg1),
(arg1))
RB_PROXY_METHOD_WITH_RET(GDALRasterBand *, nullptr, GetRasterSampleOverview,
(GUIntBig arg1), (arg1))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, BuildOverviews,
(const char *arg1, int arg2, const int *arg3,
GDALProgressFunc arg4, void *arg5,
CSLConstList papszOptions),
(arg1, arg2, arg3, arg4, arg5, papszOptions))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, AdviseRead,
(int nXOff, int nYOff, int nXSize, int nYSize,
int nBufXSize, int nBufYSize, GDALDataType eDT,
char **papszOptions),
(nXOff, nYOff, nXSize, nYSize, nBufXSize, nBufYSize,
eDT, papszOptions))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, GetHistogram,
(double dfMin, double dfMax, int nBuckets,
GUIntBig *panHistogram, int bIncludeOutOfRange,
int bApproxOK, GDALProgressFunc pfn,
void *pProgressData),
(dfMin, dfMax, nBuckets, panHistogram,
bIncludeOutOfRange, bApproxOK, pfn, pProgressData))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, GetDefaultHistogram,
(double *pdfMin, double *pdfMax, int *pnBuckets,
GUIntBig **ppanHistogram, int bForce,
GDALProgressFunc pfn, void *pProgressData),
(pdfMin, pdfMax, pnBuckets, ppanHistogram, bForce, pfn,
pProgressData))
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetDefaultHistogram,
(double dfMin, double dfMax, int nBuckets,
GUIntBig *panHistogram),
(dfMin, dfMax, nBuckets, panHistogram))
RB_PROXY_METHOD_WITH_RET(GDALRasterAttributeTable *, nullptr, GetDefaultRAT, (),
())
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, SetDefaultRAT,
(const GDALRasterAttributeTable *arg1), (arg1))
RB_PROXY_METHOD_WITH_RET(GDALRasterBand *, nullptr, GetMaskBand, (), ())
RB_PROXY_METHOD_WITH_RET(int, 0, GetMaskFlags, (), ())
RB_PROXY_METHOD_WITH_RET(CPLErr, CE_Failure, CreateMaskBand, (int nFlagsIn),
(nFlagsIn))
RB_PROXY_METHOD_WITH_RET(bool, false, IsMaskBand, () const, ())
RB_PROXY_METHOD_WITH_RET(GDALMaskValueRange, GMVR_UNKNOWN, GetMaskValueRange,
() const, ())
RB_PROXY_METHOD_WITH_RET(CPLVirtualMem *, nullptr, GetVirtualMemAuto,
(GDALRWFlag eRWFlag, int *pnPixelSpace,
GIntBig *pnLineSpace, char **papszOptions),
(eRWFlag, pnPixelSpace, pnLineSpace, papszOptions))
/************************************************************************/
/* UnrefUnderlyingRasterBand() */
/************************************************************************/
void GDALProxyRasterBand::UnrefUnderlyingRasterBand(
GDALRasterBand * /* poUnderlyingRasterBand */) const
{
}
/*! @endcond */