GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- File List
- File Members

gdal_proxy.h
1 /******************************************************************************
2 * $Id$
3 *
4 * Project: GDAL Core
5 * Purpose: GDAL Core C++/Private declarations
6 * Author: Even Rouault <even dot rouault at mines dash paris dot org>
7 *
8 ******************************************************************************
9 * Copyright (c) 2008-2014, Even Rouault <even dot rouault at mines-paris dot org>
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
28 ****************************************************************************/
29
30 #ifndef GDAL_PROXY_H_INCLUDED
31 #define GDAL_PROXY_H_INCLUDED
32
33 #ifndef DOXYGEN_SKIP
34
35 #include "gdal.h"
36
37 #ifdef __cplusplus
38
39 #include "gdal_priv.h"
40 #include "cpl_hash_set.h"
41
42 /* ******************************************************************** */
43 /* GDALProxyDataset */
44 /* ******************************************************************** */
45
46 class CPL_DLL GDALProxyDataset : public GDALDataset
47 {
48 protected:
49 GDALProxyDataset() {}
50
51 virtual GDALDataset *RefUnderlyingDataset() = 0;
52 virtual void UnrefUnderlyingDataset(GDALDataset* poUnderlyingDataset);
53
54 CPLErr IBuildOverviews( const char *, int, int *,
55 int, int *, GDALProgressFunc, void * ) override;
56 CPLErr IRasterIO( GDALRWFlag, int, int, int, int,
57 void *, int, int, GDALDataType,
58 int, int *, GSpacing, GSpacing, GSpacing,
59 GDALRasterIOExtraArg* psExtraArg ) override;
60
61 public:
62 char **GetMetadataDomainList() override;
63 char **GetMetadata( const char * pszDomain ) override;
64 CPLErr SetMetadata( char ** papszMetadata,
65 const char * pszDomain ) override;
66 const char *GetMetadataItem( const char * pszName,
67 const char * pszDomain ) override;
68 CPLErr SetMetadataItem( const char * pszName,
69 const char * pszValue,
70 const char * pszDomain ) override;
71
72 void FlushCache() override;
73
74 const char *GetProjectionRef(void) override;
75 CPLErr SetProjection( const char * ) override;
76
77 CPLErr GetGeoTransform( double * ) override;
78 CPLErr SetGeoTransform( double * ) override;
79
80 void *GetInternalHandle( const char * ) override;
81 GDALDriver *GetDriver() override;
82 char **GetFileList() override;
83
84 int GetGCPCount() override;
85 const char *GetGCPProjection() override;
86 const GDAL_GCP *GetGCPs() override;
87 CPLErr SetGCPs( int nGCPCount, const GDAL_GCP *pasGCPList,
88 const char *pszGCPProjection ) override;
89
90 CPLErr AdviseRead( int nXOff, int nYOff, int nXSize, int nYSize,
91 int nBufXSize, int nBufYSize,
92 GDALDataType eDT,
93 int nBandCount, int *panBandList,
94 char **papszOptions ) override;
95
96 CPLErr CreateMaskBand( int nFlags ) override;
97
98 private:
99 CPL_DISALLOW_COPY_ASSIGN(GDALProxyDataset)
100 };
101
102 /* ******************************************************************** */
103 /* GDALProxyRasterBand */
104 /* ******************************************************************** */
105
106 class CPL_DLL GDALProxyRasterBand : public GDALRasterBand
107 {
108 protected:
109 GDALProxyRasterBand() {}
110
111 virtual GDALRasterBand* RefUnderlyingRasterBand() = 0;
112 virtual void UnrefUnderlyingRasterBand(GDALRasterBand* poUnderlyingRasterBand);
113
114 CPLErr IReadBlock( int, int, void * ) override;
115 CPLErr IWriteBlock( int, int, void * ) override;
116 CPLErr IRasterIO( GDALRWFlag, int, int, int, int,
117 void *, int, int, GDALDataType,
118 GSpacing, GSpacing, GDALRasterIOExtraArg* psExtraArg ) override;
119
120 public:
121 char **GetMetadataDomainList() override;
122 char **GetMetadata( const char * pszDomain ) override;
123 CPLErr SetMetadata( char ** papszMetadata,
124 const char * pszDomain ) override;
125 const char *GetMetadataItem( const char * pszName,
126 const char * pszDomain ) override;
127 CPLErr SetMetadataItem( const char * pszName,
128 const char * pszValue,
129 const char * pszDomain ) override;
130 CPLErr FlushCache() override;
131 char **GetCategoryNames() override;
132 double GetNoDataValue( int *pbSuccess = nullptr ) override;
133 double GetMinimum( int *pbSuccess = nullptr ) override;
134 double GetMaximum(int *pbSuccess = nullptr ) override;
135 double GetOffset( int *pbSuccess = nullptr ) override;
136 double GetScale( int *pbSuccess = nullptr ) override;
137 const char *GetUnitType() override;
138 GDALColorInterp GetColorInterpretation() override;
139 GDALColorTable *GetColorTable() override;
140 CPLErr Fill(double dfRealValue, double dfImaginaryValue = 0) override;
141
142 CPLErr SetCategoryNames( char ** ) override;
143 CPLErr SetNoDataValue( double ) override;
144 CPLErr DeleteNoDataValue() override;
145 CPLErr SetColorTable( GDALColorTable * ) override;
146 CPLErr SetColorInterpretation( GDALColorInterp ) override;
147 CPLErr SetOffset( double ) override;
148 CPLErr SetScale( double ) override;
149 CPLErr SetUnitType( const char * ) override;
150
151 CPLErr GetStatistics( int bApproxOK, int bForce,
152 double *pdfMin, double *pdfMax,
153 double *pdfMean, double *padfStdDev ) override;
154 CPLErr ComputeStatistics( int bApproxOK,
155 double *pdfMin, double *pdfMax,
156 double *pdfMean, double *pdfStdDev,
157 GDALProgressFunc, void *pProgressData ) override;
158 CPLErr SetStatistics( double dfMin, double dfMax,
159 double dfMean, double dfStdDev ) override;
160 CPLErr ComputeRasterMinMax( int, double* ) override;
161
162 int HasArbitraryOverviews() override;
163 int GetOverviewCount() override;
164 GDALRasterBand *GetOverview( int ) override;
165 GDALRasterBand *GetRasterSampleOverview( GUIntBig ) override;
166 CPLErr BuildOverviews( const char *, int, int *,
167 GDALProgressFunc, void * ) override;
168
169 CPLErr AdviseRead( int nXOff, int nYOff, int nXSize, int nYSize,
170 int nBufXSize, int nBufYSize,
171 GDALDataType eDT, char **papszOptions ) override;
172
173 CPLErr GetHistogram( double dfMin, double dfMax,
174 int nBuckets, GUIntBig * panHistogram,
175 int bIncludeOutOfRange, int bApproxOK,
176 GDALProgressFunc, void *pProgressData ) override;
177
178 CPLErr GetDefaultHistogram( double *pdfMin, double *pdfMax,
179 int *pnBuckets, GUIntBig ** ppanHistogram,
180 int bForce,
181 GDALProgressFunc, void *pProgressData) override;
182 CPLErr SetDefaultHistogram( double dfMin, double dfMax,
183 int nBuckets, GUIntBig *panHistogram ) override;
184
185 GDALRasterAttributeTable *GetDefaultRAT() override;
186 CPLErr SetDefaultRAT( const GDALRasterAttributeTable * ) override;
187
188 GDALRasterBand *GetMaskBand() override;
189 int GetMaskFlags() override;
190 CPLErr CreateMaskBand( int nFlags ) override;
191
192 CPLVirtualMem *GetVirtualMemAuto( GDALRWFlag eRWFlag,
193 int *pnPixelSpace,
194 GIntBig *pnLineSpace,
195 char **papszOptions ) override;
196
197 private:
198 CPL_DISALLOW_COPY_ASSIGN(GDALProxyRasterBand)
199 };
200
201 /* ******************************************************************** */
202 /* GDALProxyPoolDataset */
203 /* ******************************************************************** */
204
205 typedef struct _GDALProxyPoolCacheEntry GDALProxyPoolCacheEntry;
206 class GDALProxyPoolRasterBand;
207
208 class CPL_DLL GDALProxyPoolDataset : public GDALProxyDataset
209 {
210 private:
211 GIntBig responsiblePID;
212
213 char *pszProjectionRef;
214 double adfGeoTransform[6];
215 int bHasSrcProjection;
216 int bHasSrcGeoTransform;
217 char *pszGCPProjection;
218 int nGCPCount;
219 GDAL_GCP *pasGCPList;
220 CPLHashSet *metadataSet;
221 CPLHashSet *metadataItemSet;
222
223 GDALProxyPoolCacheEntry* cacheEntry;
224 char *m_pszOwner;
225
226 GDALDataset *RefUnderlyingDataset(bool bForceOpen);
227
228 protected:
229 GDALDataset *RefUnderlyingDataset() override;
230 void UnrefUnderlyingDataset(GDALDataset* poUnderlyingDataset) override;
231
232 friend class GDALProxyPoolRasterBand;
233
234 public:
235 GDALProxyPoolDataset( const char* pszSourceDatasetDescription,
236 int nRasterXSize, int nRasterYSize,
237 GDALAccess eAccess = GA_ReadOnly,
238 int bShared = FALSE,
239 const char * pszProjectionRef = nullptr,
240 double * padfGeoTransform = nullptr,
241 const char* pszOwner = nullptr );
242 ~GDALProxyPoolDataset() override;
243
244 void SetOpenOptions( char** papszOpenOptions );
245 void AddSrcBandDescription( GDALDataType eDataType, int nBlockXSize,
246 int nBlockYSize );
247
248 void FlushCache() override;
249
250 const char *GetProjectionRef() override;
251 CPLErr SetProjection( const char * ) override;
252
253 CPLErr GetGeoTransform( double * ) override;
254 CPLErr SetGeoTransform( double * ) override;
255
256 // Special behaviour for the following methods : they return a pointer
257 // data type, that must be cached by the proxy, so it doesn't become invalid
258 // when the underlying object get closed.
259 char **GetMetadata( const char * pszDomain ) override;
260 const char *GetMetadataItem( const char * pszName,
261 const char * pszDomain ) override;
262
263 void *GetInternalHandle( const char * pszRequest ) override;
264
265 const char *GetGCPProjection() override;
266 const GDAL_GCP *GetGCPs() override;
267
268 private:
269 CPL_DISALLOW_COPY_ASSIGN(GDALProxyPoolDataset)
270 };
271
272 /* ******************************************************************** */
273 /* GDALProxyPoolRasterBand */
274 /* ******************************************************************** */
275
276 class GDALProxyPoolOverviewRasterBand;
277 class GDALProxyPoolMaskBand;
278
279 class CPL_DLL GDALProxyPoolRasterBand : public GDALProxyRasterBand
280 {
281 private:
282 CPLHashSet *metadataSet;
283 CPLHashSet *metadataItemSet;
284 char *pszUnitType;
285 char **papszCategoryNames;
286 GDALColorTable *poColorTable;
287
288 int nSizeProxyOverviewRasterBand;
289 GDALProxyPoolOverviewRasterBand **papoProxyOverviewRasterBand;
290 GDALProxyPoolMaskBand *poProxyMaskBand;
291
292 void Init();
293
294 GDALRasterBand* RefUnderlyingRasterBand( bool bForceOpen );
295
296 protected:
297 GDALRasterBand* RefUnderlyingRasterBand() override;
298 void UnrefUnderlyingRasterBand( GDALRasterBand* poUnderlyingRasterBand )
299 override;
300
301 friend class GDALProxyPoolOverviewRasterBand;
302 friend class GDALProxyPoolMaskBand;
303
304 public:
305 GDALProxyPoolRasterBand( GDALProxyPoolDataset* poDS, int nBand,
306 GDALDataType eDataType,
307 int nBlockXSize, int nBlockYSize );
308 GDALProxyPoolRasterBand( GDALProxyPoolDataset* poDS,
309 GDALRasterBand* poUnderlyingRasterBand );
310 ~GDALProxyPoolRasterBand() override;
311
312 void AddSrcMaskBandDescription( GDALDataType eDataType, int nBlockXSize,
313 int nBlockYSize );
314
315 // Special behaviour for the following methods : they return a pointer
316 // data type, that must be cached by the proxy, so it doesn't become invalid
317 // when the underlying object get closed.
318 char **GetMetadata( const char * pszDomain ) override;
319 const char *GetMetadataItem( const char * pszName,
320 const char * pszDomain ) override;
321 char **GetCategoryNames() override;
322 const char *GetUnitType() override;
323 GDALColorTable *GetColorTable() override;
324 GDALRasterBand *GetOverview( int ) override;
325 GDALRasterBand *GetRasterSampleOverview( GUIntBig nDesiredSamples ) override; // TODO
326 GDALRasterBand *GetMaskBand() override;
327
328 CPLErr FlushCache() override;
329
330 private:
331 CPL_DISALLOW_COPY_ASSIGN(GDALProxyPoolRasterBand)
332 };
333
334 /* ******************************************************************** */
335 /* GDALProxyPoolOverviewRasterBand */
336 /* ******************************************************************** */
337
338 class GDALProxyPoolOverviewRasterBand : public GDALProxyPoolRasterBand
339 {
340 private:
341 GDALProxyPoolRasterBand *poMainBand;
342 int nOverviewBand;
343
344 GDALRasterBand *poUnderlyingMainRasterBand;
345 int nRefCountUnderlyingMainRasterBand;
346
347 protected:
348 GDALRasterBand* RefUnderlyingRasterBand() override;
349 void UnrefUnderlyingRasterBand( GDALRasterBand* poUnderlyingRasterBand )
350 override;
351
352 public:
353 GDALProxyPoolOverviewRasterBand( GDALProxyPoolDataset* poDS,
354 GDALRasterBand* poUnderlyingOverviewBand,
355 GDALProxyPoolRasterBand* poMainBand,
356 int nOverviewBand );
357 ~GDALProxyPoolOverviewRasterBand() override;
358 };
359
360 /* ******************************************************************** */
361 /* GDALProxyPoolMaskBand */
362 /* ******************************************************************** */
363
364 class GDALProxyPoolMaskBand : public GDALProxyPoolRasterBand
365 {
366 private:
367 GDALProxyPoolRasterBand *poMainBand;
368
369 GDALRasterBand *poUnderlyingMainRasterBand;
370 int nRefCountUnderlyingMainRasterBand;
371
372 protected:
373 GDALRasterBand* RefUnderlyingRasterBand() override;
374 void UnrefUnderlyingRasterBand( GDALRasterBand* poUnderlyingRasterBand )
375 override;
376
377 public:
378 GDALProxyPoolMaskBand( GDALProxyPoolDataset* poDS,
379 GDALRasterBand* poUnderlyingMaskBand,
380 GDALProxyPoolRasterBand* poMainBand );
381 GDALProxyPoolMaskBand( GDALProxyPoolDataset* poDS,
382 GDALProxyPoolRasterBand* poMainBand,
383 GDALDataType eDataType,
384 int nBlockXSize, int nBlockYSize );
385 ~GDALProxyPoolMaskBand() override;
386 };
387
388 #endif
389
390 /* ******************************************************************** */
391 /* C types and methods declarations */
392 /* ******************************************************************** */
393
394 CPL_C_START
395
396 typedef struct GDALProxyPoolDatasetHS *GDALProxyPoolDatasetH;
397
398 GDALProxyPoolDatasetH CPL_DLL GDALProxyPoolDatasetCreate(const char* pszSourceDatasetDescription,
399 int nRasterXSize, int nRasterYSize,
400 GDALAccess eAccess, int bShared,
401 const char * pszProjectionRef,
402 double * padfGeoTransform);
403
404 void CPL_DLL GDALProxyPoolDatasetDelete(GDALProxyPoolDatasetH hProxyPoolDataset);
405
406 void CPL_DLL GDALProxyPoolDatasetAddSrcBandDescription( GDALProxyPoolDatasetH hProxyPoolDataset,
407 GDALDataType eDataType,
408 int nBlockXSize, int nBlockYSize);
409
410 CPL_C_END
411
412 #endif /* #ifndef DOXYGEN_SKIP */
413
414 #endif /* GDAL_PROXY_H_INCLUDED */
GDALRasterAttributeTable
The GDALRasterAttributeTable (or RAT) class is used to encapsulate a table used to provide attribute ...
Definition: gdal_rat.h:47
GDALDataset::GetDriver
virtual GDALDriver * GetDriver(void)
Fetch the driver to which this dataset relates.
Definition: gdaldataset.cpp:1092
GDALDataset::GetGeoTransform
virtual CPLErr GetGeoTransform(double *padfTransform)
Fetch the affine transformation coefficients.
Definition: gdaldataset.cpp:954
GDALDataType
GDALDataType
Definition: gdal.h:60
GDALRasterBand::SetCategoryNames
virtual CPLErr SetCategoryNames(char **papszNames)
Set the category names for this band.
Definition: gdalrasterband.cpp:1579
GDALRasterBand::GetMaskBand
virtual GDALRasterBand * GetMaskBand()
Return the mask band associated with the band.
Definition: gdalrasterband.cpp:5880
GDALRasterBand::GetCategoryNames
virtual char ** GetCategoryNames()
Fetch the list of category names for this raster.
Definition: gdalrasterband.cpp:1531
GDALDataset::FlushCache
virtual void FlushCache(void)
Flush all write cached data to disk.
Definition: gdaldataset.cpp:428
GDALRasterBand::HasArbitraryOverviews
virtual int HasArbitraryOverviews()
Check for arbitrary overviews.
Definition: gdalrasterband.cpp:2163
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:335
GDALRasterBand::GetOverview
virtual GDALRasterBand * GetOverview(int)
Fetch overview raster band object.
Definition: gdalrasterband.cpp:2242
GDALRasterBand::GetDefaultHistogram
virtual CPLErr GetDefaultHistogram(double *pdfMin, double *pdfMax, int *pnBuckets, GUIntBig **ppanHistogram, int bForce, GDALProgressFunc, void *pProgressData)
Fetch default raster histogram.
Definition: gdalrasterband.cpp:3468
gdal_priv.h
C++ GDAL entry points.
GDALDataset::AdviseRead
virtual CPLErr AdviseRead(int nXOff, int nYOff, int nXSize, int nYSize, int nBufXSize, int nBufYSize, GDALDataType eDT, int nBandCount, int *panBandList, char **papszOptions)
Advise driver of upcoming read requests.
Definition: gdaldataset.cpp:2295
GDALRasterBand::IRasterIO
virtual CPLErr IRasterIO(GDALRWFlag, int, int, int, int, void *, int, int, GDALDataType, GSpacing, GSpacing, GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULT
Read/write a region of image data for this band.
Definition: rasterio.cpp:68
GDALRasterBand::GetColorInterpretation
virtual GDALColorInterp GetColorInterpretation()
How should this band be interpreted as color?
Definition: gdalrasterband.cpp:1974
GDALDataset::GetProjectionRef
virtual const char * GetProjectionRef(void)
Fetch the projection definition string for this dataset.
Definition: gdaldataset.cpp:856
GDALRasterBand::SetDefaultRAT
virtual CPLErr SetDefaultRAT(const GDALRasterAttributeTable *poRAT)
Set default Raster Attribute Table.
Definition: gdalrasterband.cpp:5798
GDALRWFlag
GDALRWFlag
Definition: gdal.h:119
GDALRasterBand::SetStatistics
virtual CPLErr SetStatistics(double dfMin, double dfMax, double dfMean, double dfStdDev)
Set statistics on band.
Definition: gdalrasterband.cpp:5325
GDALDataset::GetInternalHandle
virtual void * GetInternalHandle(const char *pszHandleName)
Fetch a format specific internally meaningful handle.
Definition: gdaldataset.cpp:1054
GDALRasterBand::GetMaskFlags
virtual int GetMaskFlags()
Return the status flags of the mask band associated with the band.
Definition: gdalrasterband.cpp:6127
GDALRasterBand::GetDefaultRAT
virtual GDALRasterAttributeTable * GetDefaultRAT()
Fetch default Raster Attribute Table.
Definition: gdalrasterband.cpp:5750
GDALRasterBand::BuildOverviews
virtual CPLErr BuildOverviews(const char *pszResampling, int nOverviews, int *panOverviewList, GDALProgressFunc pfnProgress, void *pProgressData)
Build raster overview(s)
Definition: gdalrasterband.cpp:2400
GDALRasterBand::GetHistogram
virtual CPLErr GetHistogram(double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc, void *pProgressData)
Compute raster histogram.
Definition: gdalrasterband.cpp:2921
cpl_hash_set.h
Hash set implementation.
GDALDataset::SetGCPs
virtual CPLErr SetGCPs(int nGCPCount, const GDAL_GCP *pasGCPList, const char *pszGCPProjection)
Assign GCPs.
Definition: gdaldataset.cpp:1414
GDALRasterBand::ComputeStatistics
virtual CPLErr ComputeStatistics(int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GDALProgressFunc, void *pProgressData)
Compute image statistics.
Definition: gdalrasterband.cpp:4830
GDALRasterBand::SetOffset
virtual CPLErr SetOffset(double dfNewOffset)
Set scaling offset.
Definition: gdalrasterband.cpp:2490
GDALRasterBand::SetMetadata
CPLErr SetMetadata(char **papszMetadata, const char *pszDomain) override
Set metadata.
CPLVirtualMem
struct CPLVirtualMem CPLVirtualMem
Opaque type that represents a virtual memory mapping.
Definition: cpl_virtualmem.h:62
GDALDataset::GetMetadata
void char ** GetMetadata(const char *pszDomain="") override
Fetch metadata.
Definition: gdaldataset.cpp:3484
GDALRasterBand::SetMetadataItem
CPLErr SetMetadataItem(const char *pszName, const char *pszValue, const char *pszDomain) override
Set single metadata item.
GDALRasterBand::IReadBlock
virtual CPLErr IReadBlock(int nBlockXOff, int nBlockYOff, void *pData)=0
Read a block of data.
GDALRasterBand::FlushCache
virtual CPLErr FlushCache()
Flush raster data cache.
Definition: gdalrasterband.cpp:1032
GSpacing
GIntBig GSpacing
Type to express pixel, line or band spacing.
Definition: gdal.h:273
GDALRasterBand::SetDefaultHistogram
virtual CPLErr SetDefaultHistogram(double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram)
Set default histogram.
Definition: gdalrasterband.cpp:5651
GDALRasterBand::GetMetadataItem
const char * GetMetadataItem(const char *pszName, const char *pszDomain) override
Fetch single metadata item.
GDALRasterBand::GetScale
virtual double GetScale(int *pbSuccess=nullptr)
Fetch the raster value scale.
Definition: gdalrasterband.cpp:2547
GDALRasterBand::AdviseRead
virtual CPLErr AdviseRead(int nXOff, int nYOff, int nXSize, int nYSize, int nBufXSize, int nBufYSize, GDALDataType eBufType, char **papszOptions)
Advise driver of upcoming read requests.
Definition: gdalrasterband.cpp:3683
GDALDataset::GetGCPs
virtual const GDAL_GCP * GetGCPs()
Fetch GCPs.
Definition: gdaldataset.cpp:1364
gdal.h
Public (C callable) GDAL entry points.
GDALRasterBand::DeleteNoDataValue
virtual CPLErr DeleteNoDataValue()
Remove the no data value for this band.
Definition: gdalrasterband.cpp:1744
GDALDataset::SetGeoTransform
virtual CPLErr SetGeoTransform(double *padfTransform)
Set the affine transformation coefficients.
Definition: gdaldataset.cpp:1009
GDALRasterBand::GetNoDataValue
virtual double GetNoDataValue(int *pbSuccess=nullptr)
Fetch the no data value for this band.
Definition: gdalrasterband.cpp:1631
GDALDataset::GetGCPCount
virtual int GetGCPCount()
Get number of GCPs.
Definition: gdaldataset.cpp:1296
GDALRasterBand::ComputeRasterMinMax
virtual CPLErr ComputeRasterMinMax(int, double *)
Compute the min/max values for a band.
Definition: gdalrasterband.cpp:5392
GDALRasterBand::SetColorInterpretation
virtual CPLErr SetColorInterpretation(GDALColorInterp eColorInterp)
Set color interpretation of a band.
Definition: gdalrasterband.cpp:2019
GDALRasterIOExtraArg
Structure to pass extra arguments to RasterIO() method.
Definition: gdal.h:147
GDALRasterBand::GetUnitType
virtual const char * GetUnitType()
Return raster unit type.
Definition: gdalrasterband.cpp:2643
GDALRasterBand::SetColorTable
virtual CPLErr SetColorTable(GDALColorTable *poCT)
Set the raster color table.
Definition: gdalrasterband.cpp:2115
GDALRasterBand::GetMinimum
virtual double GetMinimum(int *pbSuccess=nullptr)
Fetch the minimum value for this band.
Definition: gdalrasterband.cpp:1887
GDALRasterBand::GetColorTable
virtual GDALColorTable * GetColorTable()
Fetch the color table associated with band.
Definition: gdalrasterband.cpp:2066
GDALDataset::CreateMaskBand
virtual CPLErr CreateMaskBand(int nFlagsIn)
Adds a mask band to the dataset.
Definition: gdaldataset.cpp:2477
GUIntBig
unsigned long long GUIntBig
Large unsigned integer type (generally 64-bit unsigned integer type).
Definition: cpl_port.h:249
GDALDataset::GetFileList
virtual char ** GetFileList(void)
Fetch files forming dataset.
Definition: gdaldataset.cpp:2377
GDALRasterBand::GetMetadata
char ** GetMetadata(const char *pszDomain="") override
Fetch metadata.
GDALDataset::SetProjection
virtual CPLErr SetProjection(const char *pszProjection)
Set the projection reference string for this dataset.
Definition: gdaldataset.cpp:896
GDALDataset::GetGCPProjection
virtual const char * GetGCPProjection()
Get output projection for GCPs.
Definition: gdaldataset.cpp:1331
GDALRasterBand::SetScale
virtual CPLErr SetScale(double dfNewScale)
Set scaling ratio.
Definition: gdalrasterband.cpp:2596
GDALRasterBand::IWriteBlock
virtual CPLErr IWriteBlock(int nBlockXOff, int nBlockYOff, void *pData)
Write a block of data.
Definition: gdalrasterband.cpp:626
GDALRasterBand::GetOffset
virtual double GetOffset(int *pbSuccess=nullptr)
Fetch the raster value offset.
Definition: gdalrasterband.cpp:2441
GDALRasterBand::GetOverviewCount
virtual int GetOverviewCount()
Return the number of overview layers available.
Definition: gdalrasterband.cpp:2200
GDALDataset::SetMetadataItem
CPLErr SetMetadataItem(const char *pszName, const char *pszValue, const char *pszDomain) override
Set single metadata item.
GDALRasterBand::GetVirtualMemAuto
virtual CPLVirtualMem * GetVirtualMemAuto(GDALRWFlag eRWFlag, int *pnPixelSpace, GIntBig *pnLineSpace, char **papszOptions) CPL_WARN_UNUSED_RESULT
Create a CPLVirtualMem object from a GDAL raster band object.
Definition: gdalrasterband.cpp:6532
GDALRasterBand::SetUnitType
virtual CPLErr SetUnitType(const char *pszNewValue)
Set unit type.
Definition: gdalrasterband.cpp:2691
GDALRasterBand
A single raster band (or channel).
Definition: gdal_priv.h:1042
GDALAccess
GDALAccess
Definition: gdal.h:113
GDALRasterBand::CreateMaskBand
virtual CPLErr CreateMaskBand(int nFlagsIn)
Adds a mask band to the current band.
Definition: gdalrasterband.cpp:6208
GDALDataset
A set of associated raster bands, usually from one file.
Definition: gdal_priv.h:339
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:337
GIntBig
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:246
GDALRasterBand::GetMaximum
virtual double GetMaximum(int *pbSuccess=nullptr)
Fetch the maximum value for this band.
Definition: gdalrasterband.cpp:1794
GDALDataset::SetMetadata
CPLErr SetMetadata(char **papszMetadata, const char *pszDomain) override
Set metadata.
GDALRasterBand::GetRasterSampleOverview
virtual GDALRasterBand * GetRasterSampleOverview(GUIntBig)
Fetch best sampling overview.
Definition: gdalrasterband.cpp:2292
GDALDataset::GetMetadataDomainList
char ** GetMetadataDomainList() override
Fetch list of metadata domains.
Definition: gdaldataset.cpp:3585
GDALColorInterp
GDALColorInterp
Definition: gdal.h:190
GDALRasterBand::SetNoDataValue
virtual CPLErr SetNoDataValue(double dfNoData)
Set the no data value for this band.
Definition: gdalrasterband.cpp:1690
GDALDataset::GetMetadataItem
const char * GetMetadataItem(const char *pszName, const char *pszDomain) override
Fetch single metadata item.
CPLHashSet
struct _CPLHashSet CPLHashSet
Opaque type for a hash set.
Definition: cpl_hash_set.h:52
GDALRasterBand::GetStatistics
virtual CPLErr GetStatistics(int bApproxOK, int bForce, double *pdfMin, double *pdfMax, double *pdfMean, double *padfStdDev)
Fetch image statistics.
Definition: gdalrasterband.cpp:3763
GA_ReadOnly
Definition: gdal.h:114
GDALDriver
Format specific driver.
Definition: gdal_priv.h:1386
GDALColorTable
A color table / palette.
Definition: gdal_priv.h:949
GDALMajorObject::GetMetadataDomainList
virtual char ** GetMetadataDomainList()
Fetch list of metadata domains.
Definition: gdalmajorobject.cpp:161
GDALRasterBand::Fill
virtual CPLErr Fill(double dfRealValue, double dfImaginaryValue=0)
Fill this band with a constant value.
Definition: gdalrasterband.cpp:1386
GDAL_GCP
Ground Control Point.
Definition: gdal.h:560
CPLErr
CPLErr
Error category.
Definition: cpl_error.h:52
CPL_DISALLOW_COPY_ASSIGN
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Helper to remove the copy and assignment constructors so that the compiler will not generate the defa...
Definition: cpl_port.h:987

Generated for GDAL by 1.8.8.