GDAL
gdal.h
Go to the documentation of this file.
1 /******************************************************************************
2  * $Id: gdal.h 27044 2014-03-16 23:41:27Z rouault $
3  *
4  * Project: GDAL Core
5  * Purpose: GDAL Core C/Public declarations.
6  * Author: Frank Warmerdam, warmerdam@pobox.com
7  *
8  ******************************************************************************
9  * Copyright (c) 1998, 2002 Frank Warmerdam
10  * Copyright (c) 2007-2014, Even Rouault <even dot rouault at mines-paris dot org>
11  *
12  * Permission is hereby granted, free of charge, to any person obtaining a
13  * copy of this software and associated documentation files (the "Software"),
14  * to deal in the Software without restriction, including without limitation
15  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16  * and/or sell copies of the Software, and to permit persons to whom the
17  * Software is furnished to do so, subject to the following conditions:
18  *
19  * The above copyright notice and this permission notice shall be included
20  * in all copies or substantial portions of the Software.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28  * DEALINGS IN THE SOFTWARE.
29  ****************************************************************************/
30 
31 #ifndef GDAL_H_INCLUDED
32 #define GDAL_H_INCLUDED
33 
40 #ifndef DOXYGEN_SKIP
41 #include "gdal_version.h"
42 #include "cpl_port.h"
43 #include "cpl_error.h"
44 #include "cpl_progress.h"
45 #include "cpl_virtualmem.h"
46 #endif
47 
48 /* -------------------------------------------------------------------- */
49 /* Significant constants. */
50 /* -------------------------------------------------------------------- */
51 
52 CPL_C_START
53 
55 typedef enum { GDT_Unknown = 0, GDT_Byte = 1, GDT_UInt16 = 2, GDT_Int16 = 3, GDT_UInt32 = 4, GDT_Int32 = 5, GDT_Float32 = 6, GDT_Float64 = 7, GDT_CInt16 = 8, GDT_CInt32 = 9, GDT_CFloat32 = 10, GDT_CFloat64 = 11,
68  GDT_TypeCount = 12 /* maximum type # + 1 */
69 } GDALDataType;
70 
71 int CPL_DLL CPL_STDCALL GDALGetDataTypeSize( GDALDataType );
72 int CPL_DLL CPL_STDCALL GDALDataTypeIsComplex( GDALDataType );
73 const char CPL_DLL * CPL_STDCALL GDALGetDataTypeName( GDALDataType );
74 GDALDataType CPL_DLL CPL_STDCALL GDALGetDataTypeByName( const char * );
76 
80 typedef enum
81 {
82  GARIO_PENDING = 0,
83  GARIO_UPDATE = 1,
84  GARIO_ERROR = 2,
85  GARIO_COMPLETE = 3,
86  GARIO_TypeCount = 4
88 
89 const char CPL_DLL * CPL_STDCALL GDALGetAsyncStatusTypeName( GDALAsyncStatusType );
90 GDALAsyncStatusType CPL_DLL CPL_STDCALL GDALGetAsyncStatusTypeByName( const char * );
91 
93 typedef enum { GA_ReadOnly = 0, GA_Update = 1
96 } GDALAccess;
97 
99 typedef enum { GF_Read = 0, GF_Write = 1
102 } GDALRWFlag;
103 
105 typedef enum
106 {
126 
127 const char CPL_DLL *GDALGetColorInterpretationName( GDALColorInterp );
128 GDALColorInterp CPL_DLL GDALGetColorInterpretationByName( const char *pszName );
129 
131 typedef enum
132 { GPI_Gray=0, GPI_RGB=1, GPI_CMYK=2, GPI_HLS=3
138 
140 
141 /* "well known" metadata items. */
142 
143 #define GDALMD_AREA_OR_POINT "AREA_OR_POINT"
144 # define GDALMD_AOP_AREA "Area"
145 # define GDALMD_AOP_POINT "Point"
146 
147 /* -------------------------------------------------------------------- */
148 /* GDAL Specific error codes. */
149 /* */
150 /* error codes 100 to 299 reserved for GDAL. */
151 /* -------------------------------------------------------------------- */
152 #define CPLE_WrongFormat 200
153 
154 /* -------------------------------------------------------------------- */
155 /* Define handle types related to various internal classes. */
156 /* -------------------------------------------------------------------- */
157 
159 typedef void *GDALMajorObjectH;
160 
162 typedef void *GDALDatasetH;
163 
165 typedef void *GDALRasterBandH;
166 
168 typedef void *GDALDriverH;
169 
170 #ifndef DOXYGEN_SKIP
171 /* Deprecated / unused */
172 typedef void *GDALProjDefH;
173 #endif
174 
176 typedef void *GDALColorTableH;
177 
180 
182 typedef void *GDALAsyncReaderH;
183 
184 /* ==================================================================== */
185 /* Registration/driver related. */
186 /* ==================================================================== */
187 
188 #ifndef DOXYGEN_SKIP
189 /* Deprecated / unused */
190 typedef struct {
191  char *pszOptionName;
192  char *pszValueType; /* "boolean", "int", "float", "string",
193  "string-select" */
194  char *pszDescription;
195  char **papszOptions;
196 } GDALOptionDefinition;
197 #endif
198 
199 #define GDAL_DMD_LONGNAME "DMD_LONGNAME"
200 #define GDAL_DMD_HELPTOPIC "DMD_HELPTOPIC"
201 #define GDAL_DMD_MIMETYPE "DMD_MIMETYPE"
202 #define GDAL_DMD_EXTENSION "DMD_EXTENSION"
203 #define GDAL_DMD_CREATIONOPTIONLIST "DMD_CREATIONOPTIONLIST"
204 #define GDAL_DMD_CREATIONDATATYPES "DMD_CREATIONDATATYPES"
205 #define GDAL_DMD_SUBDATASETS "DMD_SUBDATASETS"
206 
207 #define GDAL_DCAP_CREATE "DCAP_CREATE"
208 #define GDAL_DCAP_CREATECOPY "DCAP_CREATECOPY"
209 #define GDAL_DCAP_VIRTUALIO "DCAP_VIRTUALIO"
210 
211 void CPL_DLL CPL_STDCALL GDALAllRegister( void );
212 
213 GDALDatasetH CPL_DLL CPL_STDCALL GDALCreate( GDALDriverH hDriver,
214  const char *, int, int, int, GDALDataType,
215  char ** ) CPL_WARN_UNUSED_RESULT;
216 GDALDatasetH CPL_DLL CPL_STDCALL
217 GDALCreateCopy( GDALDriverH, const char *, GDALDatasetH,
218  int, char **, GDALProgressFunc, void * ) CPL_WARN_UNUSED_RESULT;
219 
220 GDALDriverH CPL_DLL CPL_STDCALL GDALIdentifyDriver( const char * pszFilename,
221  char ** papszFileList );
222 GDALDatasetH CPL_DLL CPL_STDCALL
223 GDALOpen( const char *pszFilename, GDALAccess eAccess ) CPL_WARN_UNUSED_RESULT;
224 GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenShared( const char *, GDALAccess ) CPL_WARN_UNUSED_RESULT;
225 int CPL_DLL CPL_STDCALL GDALDumpOpenDatasets( FILE * );
226 
227 GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriverByName( const char * );
228 int CPL_DLL CPL_STDCALL GDALGetDriverCount( void );
229 GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriver( int );
230 void CPL_DLL CPL_STDCALL GDALDestroyDriver( GDALDriverH );
231 int CPL_DLL CPL_STDCALL GDALRegisterDriver( GDALDriverH );
232 void CPL_DLL CPL_STDCALL GDALDeregisterDriver( GDALDriverH );
233 void CPL_DLL CPL_STDCALL GDALDestroyDriverManager( void );
234 CPLErr CPL_DLL CPL_STDCALL GDALDeleteDataset( GDALDriverH, const char * );
235 CPLErr CPL_DLL CPL_STDCALL GDALRenameDataset( GDALDriverH,
236  const char * pszNewName,
237  const char * pszOldName );
238 CPLErr CPL_DLL CPL_STDCALL GDALCopyDatasetFiles( GDALDriverH,
239  const char * pszNewName,
240  const char * pszOldName);
241 int CPL_DLL CPL_STDCALL GDALValidateCreationOptions( GDALDriverH,
242  char** papszCreationOptions);
243 
244 /* The following are deprecated */
245 const char CPL_DLL * CPL_STDCALL GDALGetDriverShortName( GDALDriverH );
246 const char CPL_DLL * CPL_STDCALL GDALGetDriverLongName( GDALDriverH );
247 const char CPL_DLL * CPL_STDCALL GDALGetDriverHelpTopic( GDALDriverH );
248 const char CPL_DLL * CPL_STDCALL GDALGetDriverCreationOptionList( GDALDriverH );
249 
250 /* ==================================================================== */
251 /* GDAL_GCP */
252 /* ==================================================================== */
253 
255 typedef struct
256 {
258  char *pszId;
259 
261  char *pszInfo;
262 
264  double dfGCPPixel;
266  double dfGCPLine;
267 
269  double dfGCPX;
270 
272  double dfGCPY;
273 
275  double dfGCPZ;
276 } GDAL_GCP;
277 
278 void CPL_DLL CPL_STDCALL GDALInitGCPs( int, GDAL_GCP * );
279 void CPL_DLL CPL_STDCALL GDALDeinitGCPs( int, GDAL_GCP * );
280 GDAL_GCP CPL_DLL * CPL_STDCALL GDALDuplicateGCPs( int, const GDAL_GCP * );
281 
282 int CPL_DLL CPL_STDCALL
283 GDALGCPsToGeoTransform( int nGCPCount, const GDAL_GCP *pasGCPs,
284  double *padfGeoTransform, int bApproxOK ) CPL_WARN_UNUSED_RESULT;
285 int CPL_DLL CPL_STDCALL
286 GDALInvGeoTransform( double *padfGeoTransformIn,
287  double *padfInvGeoTransformOut ) CPL_WARN_UNUSED_RESULT;
288 void CPL_DLL CPL_STDCALL GDALApplyGeoTransform( double *, double, double,
289  double *, double * );
290 void CPL_DLL GDALComposeGeoTransforms(const double *padfGeoTransform1,
291  const double *padfGeoTransform2,
292  double *padfGeoTransformOut);
293 
294 /* ==================================================================== */
295 /* major objects (dataset, and, driver, drivermanager). */
296 /* ==================================================================== */
297 
298 char CPL_DLL ** CPL_STDCALL GDALGetMetadataDomainList( GDALMajorObjectH hObject );
299 char CPL_DLL ** CPL_STDCALL GDALGetMetadata( GDALMajorObjectH, const char * );
300 CPLErr CPL_DLL CPL_STDCALL GDALSetMetadata( GDALMajorObjectH, char **,
301  const char * );
302 const char CPL_DLL * CPL_STDCALL
303 GDALGetMetadataItem( GDALMajorObjectH, const char *, const char * );
304 CPLErr CPL_DLL CPL_STDCALL
305 GDALSetMetadataItem( GDALMajorObjectH, const char *, const char *,
306  const char * );
307 const char CPL_DLL * CPL_STDCALL GDALGetDescription( GDALMajorObjectH );
308 void CPL_DLL CPL_STDCALL GDALSetDescription( GDALMajorObjectH, const char * );
309 
310 /* ==================================================================== */
311 /* GDALDataset class ... normally this represents one file. */
312 /* ==================================================================== */
313 
314 GDALDriverH CPL_DLL CPL_STDCALL GDALGetDatasetDriver( GDALDatasetH );
315 char CPL_DLL ** CPL_STDCALL GDALGetFileList( GDALDatasetH );
316 void CPL_DLL CPL_STDCALL GDALClose( GDALDatasetH );
317 int CPL_DLL CPL_STDCALL GDALGetRasterXSize( GDALDatasetH );
318 int CPL_DLL CPL_STDCALL GDALGetRasterYSize( GDALDatasetH );
319 int CPL_DLL CPL_STDCALL GDALGetRasterCount( GDALDatasetH );
320 GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetRasterBand( GDALDatasetH, int );
321 
322 CPLErr CPL_DLL CPL_STDCALL GDALAddBand( GDALDatasetH hDS, GDALDataType eType,
323  char **papszOptions );
324 
325 GDALAsyncReaderH CPL_DLL CPL_STDCALL
326 GDALBeginAsyncReader(GDALDatasetH hDS, int nXOff, int nYOff,
327  int nXSize, int nYSize,
328  void *pBuf, int nBufXSize, int nBufYSize,
329  GDALDataType eBufType, int nBandCount, int* panBandMap,
330  int nPixelSpace, int nLineSpace, int nBandSpace,
331  char **papszOptions);
332 
333 void CPL_DLL CPL_STDCALL
334 GDALEndAsyncReader(GDALDatasetH hDS, GDALAsyncReaderH hAsynchReaderH);
335 
336 CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIO(
337  GDALDatasetH hDS, GDALRWFlag eRWFlag,
338  int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
339  void * pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType,
340  int nBandCount, int *panBandCount,
341  int nPixelSpace, int nLineSpace, int nBandSpace);
342 
343 CPLErr CPL_DLL CPL_STDCALL GDALDatasetAdviseRead( GDALDatasetH hDS,
344  int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
345  int nBXSize, int nBYSize, GDALDataType eBDataType,
346  int nBandCount, int *panBandCount, char **papszOptions );
347 
348 const char CPL_DLL * CPL_STDCALL GDALGetProjectionRef( GDALDatasetH );
349 CPLErr CPL_DLL CPL_STDCALL GDALSetProjection( GDALDatasetH, const char * );
350 CPLErr CPL_DLL CPL_STDCALL GDALGetGeoTransform( GDALDatasetH, double * );
351 CPLErr CPL_DLL CPL_STDCALL GDALSetGeoTransform( GDALDatasetH, double * );
352 
353 int CPL_DLL CPL_STDCALL GDALGetGCPCount( GDALDatasetH );
354 const char CPL_DLL * CPL_STDCALL GDALGetGCPProjection( GDALDatasetH );
355 const GDAL_GCP CPL_DLL * CPL_STDCALL GDALGetGCPs( GDALDatasetH );
356 CPLErr CPL_DLL CPL_STDCALL GDALSetGCPs( GDALDatasetH, int, const GDAL_GCP *,
357  const char * );
358 
359 void CPL_DLL * CPL_STDCALL GDALGetInternalHandle( GDALDatasetH, const char * );
360 int CPL_DLL CPL_STDCALL GDALReferenceDataset( GDALDatasetH );
361 int CPL_DLL CPL_STDCALL GDALDereferenceDataset( GDALDatasetH );
362 
363 CPLErr CPL_DLL CPL_STDCALL
364 GDALBuildOverviews( GDALDatasetH, const char *, int, int *,
365  int, int *, GDALProgressFunc, void * );
366 void CPL_DLL CPL_STDCALL GDALGetOpenDatasets( GDALDatasetH **hDS, int *pnCount );
367 int CPL_DLL CPL_STDCALL GDALGetAccess( GDALDatasetH hDS );
368 void CPL_DLL CPL_STDCALL GDALFlushCache( GDALDatasetH hDS );
369 
370 CPLErr CPL_DLL CPL_STDCALL
371  GDALCreateDatasetMaskBand( GDALDatasetH hDS, int nFlags );
372 
373 CPLErr CPL_DLL CPL_STDCALL GDALDatasetCopyWholeRaster(
374  GDALDatasetH hSrcDS, GDALDatasetH hDstDS, char **papszOptions,
375  GDALProgressFunc pfnProgress, void *pProgressData );
376 
377 CPLErr CPL_DLL CPL_STDCALL GDALRasterBandCopyWholeRaster(
378  GDALRasterBandH hSrcBand, GDALRasterBandH hDstBand, char **papszOptions,
379  GDALProgressFunc pfnProgress, void *pProgressData );
380 
381 CPLErr CPL_DLL
383  int nOverviewCount, GDALRasterBandH *pahOverviewBands,
384  const char *pszResampling,
385  GDALProgressFunc pfnProgress, void *pProgressData );
386 
387 /* ==================================================================== */
388 /* GDALRasterBand ... one band/channel in a dataset. */
389 /* ==================================================================== */
390 
395 #define SRCVAL(papoSource, eSrcType, ii) \
396  (eSrcType == GDT_Byte ? \
397  ((GByte *)papoSource)[ii] : \
398  (eSrcType == GDT_Float32 ? \
399  ((float *)papoSource)[ii] : \
400  (eSrcType == GDT_Float64 ? \
401  ((double *)papoSource)[ii] : \
402  (eSrcType == GDT_Int32 ? \
403  ((GInt32 *)papoSource)[ii] : \
404  (eSrcType == GDT_UInt16 ? \
405  ((GUInt16 *)papoSource)[ii] : \
406  (eSrcType == GDT_Int16 ? \
407  ((GInt16 *)papoSource)[ii] : \
408  (eSrcType == GDT_UInt32 ? \
409  ((GUInt32 *)papoSource)[ii] : \
410  (eSrcType == GDT_CInt16 ? \
411  ((GInt16 *)papoSource)[ii * 2] : \
412  (eSrcType == GDT_CInt32 ? \
413  ((GInt32 *)papoSource)[ii * 2] : \
414  (eSrcType == GDT_CFloat32 ? \
415  ((float *)papoSource)[ii * 2] : \
416  (eSrcType == GDT_CFloat64 ? \
417  ((double *)papoSource)[ii * 2] : 0)))))))))))
418 
419 typedef CPLErr
420 (*GDALDerivedPixelFunc)(void **papoSources, int nSources, void *pData,
421  int nBufXSize, int nBufYSize,
422  GDALDataType eSrcType, GDALDataType eBufType,
423  int nPixelSpace, int nLineSpace);
424 
425 GDALDataType CPL_DLL CPL_STDCALL GDALGetRasterDataType( GDALRasterBandH );
426 void CPL_DLL CPL_STDCALL
427 GDALGetBlockSize( GDALRasterBandH, int * pnXSize, int * pnYSize );
428 
429 CPLErr CPL_DLL CPL_STDCALL GDALRasterAdviseRead( GDALRasterBandH hRB,
430  int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
431  int nBXSize, int nBYSize, GDALDataType eBDataType, char **papszOptions );
432 
433 CPLErr CPL_DLL CPL_STDCALL
434 GDALRasterIO( GDALRasterBandH hRBand, GDALRWFlag eRWFlag,
435  int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
436  void * pBuffer, int nBXSize, int nBYSize,GDALDataType eBDataType,
437  int nPixelSpace, int nLineSpace );
438 CPLErr CPL_DLL CPL_STDCALL GDALReadBlock( GDALRasterBandH, int, int, void * );
439 CPLErr CPL_DLL CPL_STDCALL GDALWriteBlock( GDALRasterBandH, int, int, void * );
440 int CPL_DLL CPL_STDCALL GDALGetRasterBandXSize( GDALRasterBandH );
441 int CPL_DLL CPL_STDCALL GDALGetRasterBandYSize( GDALRasterBandH );
442 GDALAccess CPL_DLL CPL_STDCALL GDALGetRasterAccess( GDALRasterBandH );
443 int CPL_DLL CPL_STDCALL GDALGetBandNumber( GDALRasterBandH );
444 GDALDatasetH CPL_DLL CPL_STDCALL GDALGetBandDataset( GDALRasterBandH );
445 
446 GDALColorInterp CPL_DLL CPL_STDCALL
448 CPLErr CPL_DLL CPL_STDCALL
451 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterColorTable( GDALRasterBandH, GDALColorTableH );
452 int CPL_DLL CPL_STDCALL GDALHasArbitraryOverviews( GDALRasterBandH );
453 int CPL_DLL CPL_STDCALL GDALGetOverviewCount( GDALRasterBandH );
454 GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetOverview( GDALRasterBandH, int );
455 double CPL_DLL CPL_STDCALL GDALGetRasterNoDataValue( GDALRasterBandH, int * );
456 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterNoDataValue( GDALRasterBandH, double );
457 char CPL_DLL ** CPL_STDCALL GDALGetRasterCategoryNames( GDALRasterBandH );
458 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterCategoryNames( GDALRasterBandH, char ** );
459 double CPL_DLL CPL_STDCALL GDALGetRasterMinimum( GDALRasterBandH, int *pbSuccess );
460 double CPL_DLL CPL_STDCALL GDALGetRasterMaximum( GDALRasterBandH, int *pbSuccess );
461 CPLErr CPL_DLL CPL_STDCALL GDALGetRasterStatistics(
462  GDALRasterBandH, int bApproxOK, int bForce,
463  double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev );
464 CPLErr CPL_DLL CPL_STDCALL GDALComputeRasterStatistics(
465  GDALRasterBandH, int bApproxOK,
466  double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev,
467  GDALProgressFunc pfnProgress, void *pProgressData );
468 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterStatistics(
469  GDALRasterBandH hBand,
470  double dfMin, double dfMax, double dfMean, double dfStdDev );
471 
472 const char CPL_DLL * CPL_STDCALL GDALGetRasterUnitType( GDALRasterBandH );
473 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterUnitType( GDALRasterBandH hBand, const char *pszNewValue );
474 double CPL_DLL CPL_STDCALL GDALGetRasterOffset( GDALRasterBandH, int *pbSuccess );
475 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterOffset( GDALRasterBandH hBand, double dfNewOffset);
476 double CPL_DLL CPL_STDCALL GDALGetRasterScale( GDALRasterBandH, int *pbSuccess );
477 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterScale( GDALRasterBandH hBand, double dfNewOffset );
478 void CPL_DLL CPL_STDCALL
479 GDALComputeRasterMinMax( GDALRasterBandH hBand, int bApproxOK,
480  double adfMinMax[2] );
481 CPLErr CPL_DLL CPL_STDCALL GDALFlushRasterCache( GDALRasterBandH hBand );
482 CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram( GDALRasterBandH hBand,
483  double dfMin, double dfMax,
484  int nBuckets, int *panHistogram,
485  int bIncludeOutOfRange, int bApproxOK,
486  GDALProgressFunc pfnProgress,
487  void * pProgressData );
488 CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogram( GDALRasterBandH hBand,
489  double *pdfMin, double *pdfMax,
490  int *pnBuckets, int **ppanHistogram,
491  int bForce,
492  GDALProgressFunc pfnProgress,
493  void * pProgressData );
494 CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram( GDALRasterBandH hBand,
495  double dfMin, double dfMax,
496  int nBuckets, int *panHistogram );
497 int CPL_DLL CPL_STDCALL
498 GDALGetRandomRasterSample( GDALRasterBandH, int, float * );
499 GDALRasterBandH CPL_DLL CPL_STDCALL
501 CPLErr CPL_DLL CPL_STDCALL GDALFillRaster( GDALRasterBandH hBand,
502  double dfRealValue, double dfImaginaryValue );
503 CPLErr CPL_DLL CPL_STDCALL
504 GDALComputeBandStats( GDALRasterBandH hBand, int nSampleStep,
505  double *pdfMean, double *pdfStdDev,
506  GDALProgressFunc pfnProgress,
507  void *pProgressData );
508 CPLErr CPL_DLL GDALOverviewMagnitudeCorrection( GDALRasterBandH hBaseBand,
509  int nOverviewCount,
510  GDALRasterBandH *pahOverviews,
511  GDALProgressFunc pfnProgress,
512  void *pProgressData );
513 
514 GDALRasterAttributeTableH CPL_DLL CPL_STDCALL GDALGetDefaultRAT(
515  GDALRasterBandH hBand );
516 CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultRAT( GDALRasterBandH,
518 CPLErr CPL_DLL CPL_STDCALL GDALAddDerivedBandPixelFunc( const char *pszName,
519  GDALDerivedPixelFunc pfnPixelFunc );
520 
521 GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetMaskBand( GDALRasterBandH hBand );
522 int CPL_DLL CPL_STDCALL GDALGetMaskFlags( GDALRasterBandH hBand );
523 CPLErr CPL_DLL CPL_STDCALL
524  GDALCreateMaskBand( GDALRasterBandH hBand, int nFlags );
525 
526 #define GMF_ALL_VALID 0x01
527 #define GMF_PER_DATASET 0x02
528 #define GMF_ALPHA 0x04
529 #define GMF_NODATA 0x08
530 
531 /* ==================================================================== */
532 /* GDALAsyncReader */
533 /* ==================================================================== */
534 
535 GDALAsyncStatusType CPL_DLL CPL_STDCALL
536 GDALARGetNextUpdatedRegion(GDALAsyncReaderH hARIO, double dfTimeout,
537  int* pnXBufOff, int* pnYBufOff,
538  int* pnXBufSize, int* pnYBufSize );
539 int CPL_DLL CPL_STDCALL GDALARLockBuffer(GDALAsyncReaderH hARIO,
540  double dfTimeout);
541 void CPL_DLL CPL_STDCALL GDALARUnlockBuffer(GDALAsyncReaderH hARIO);
542 
543 /* -------------------------------------------------------------------- */
544 /* Helper functions. */
545 /* -------------------------------------------------------------------- */
546 int CPL_DLL CPL_STDCALL GDALGeneralCmdLineProcessor( int nArgc, char ***ppapszArgv,
547  int nOptions );
548 void CPL_DLL CPL_STDCALL GDALSwapWords( void *pData, int nWordSize, int nWordCount,
549  int nWordSkip );
550 void CPL_DLL CPL_STDCALL
551  GDALCopyWords( void * pSrcData, GDALDataType eSrcType, int nSrcPixelOffset,
552  void * pDstData, GDALDataType eDstType, int nDstPixelOffset,
553  int nWordCount );
554 
555 void CPL_DLL
556 GDALCopyBits( const GByte *pabySrcData, int nSrcOffset, int nSrcStep,
557  GByte *pabyDstData, int nDstOffset, int nDstStep,
558  int nBitCount, int nStepCount );
559 
560 int CPL_DLL CPL_STDCALL GDALLoadWorldFile( const char *, double * );
561 int CPL_DLL CPL_STDCALL GDALReadWorldFile( const char *, const char *,
562  double * );
563 int CPL_DLL CPL_STDCALL GDALWriteWorldFile( const char *, const char *,
564  double * );
565 int CPL_DLL CPL_STDCALL GDALLoadTabFile( const char *, double *, char **,
566  int *, GDAL_GCP ** );
567 int CPL_DLL CPL_STDCALL GDALReadTabFile( const char *, double *, char **,
568  int *, GDAL_GCP ** );
569 int CPL_DLL CPL_STDCALL GDALLoadOziMapFile( const char *, double *, char **,
570  int *, GDAL_GCP ** );
571 int CPL_DLL CPL_STDCALL GDALReadOziMapFile( const char * , double *,
572  char **, int *, GDAL_GCP ** );
573 char CPL_DLL ** CPL_STDCALL GDALLoadRPBFile( const char *pszFilename,
574  char **papszSiblingFiles );
575 char CPL_DLL ** CPL_STDCALL GDALLoadRPCFile( const char *pszFilename,
576  char **papszSiblingFiles );
577 CPLErr CPL_DLL CPL_STDCALL GDALWriteRPBFile( const char *pszFilename,
578  char **papszMD );
579 char CPL_DLL ** CPL_STDCALL GDALLoadIMDFile( const char *pszFilename,
580  char **papszSiblingFiles );
581 CPLErr CPL_DLL CPL_STDCALL GDALWriteIMDFile( const char *pszFilename,
582  char **papszMD );
583 
584 const char CPL_DLL * CPL_STDCALL GDALDecToDMS( double, const char *, int );
585 double CPL_DLL CPL_STDCALL GDALPackedDMSToDec( double );
586 double CPL_DLL CPL_STDCALL GDALDecToPackedDMS( double );
587 
588 /* Note to developers : please keep this section in sync with ogr_core.h */
589 
590 #ifndef GDAL_VERSION_INFO_DEFINED
591 #define GDAL_VERSION_INFO_DEFINED
592 const char CPL_DLL * CPL_STDCALL GDALVersionInfo( const char * );
593 #endif
594 
595 #ifndef GDAL_CHECK_VERSION
596 
597 int CPL_DLL CPL_STDCALL GDALCheckVersion( int nVersionMajor, int nVersionMinor,
598  const char* pszCallingComponentName);
599 
603 #define GDAL_CHECK_VERSION(pszCallingComponentName) \
604  GDALCheckVersion(GDAL_VERSION_MAJOR, GDAL_VERSION_MINOR, pszCallingComponentName)
605 
606 #endif
607 
608 typedef struct {
609  double dfLINE_OFF;
610  double dfSAMP_OFF;
611  double dfLAT_OFF;
612  double dfLONG_OFF;
613  double dfHEIGHT_OFF;
614 
615  double dfLINE_SCALE;
616  double dfSAMP_SCALE;
617  double dfLAT_SCALE;
618  double dfLONG_SCALE;
619  double dfHEIGHT_SCALE;
620 
621  double adfLINE_NUM_COEFF[20];
622  double adfLINE_DEN_COEFF[20];
623  double adfSAMP_NUM_COEFF[20];
624  double adfSAMP_DEN_COEFF[20];
625 
626  double dfMIN_LONG;
627  double dfMIN_LAT;
628  double dfMAX_LONG;
629  double dfMAX_LAT;
630 
631 } GDALRPCInfo;
632 
633 int CPL_DLL CPL_STDCALL GDALExtractRPCInfo( char **, GDALRPCInfo * );
634 
635 /* ==================================================================== */
636 /* Color tables. */
637 /* ==================================================================== */
638 
640 typedef struct
641 {
643  short c1;
644 
646  short c2;
647 
649  short c3;
650 
652  short c4;
654 
656 void CPL_DLL CPL_STDCALL GDALDestroyColorTable( GDALColorTableH );
659 int CPL_DLL CPL_STDCALL GDALGetColorEntryCount( GDALColorTableH );
660 const GDALColorEntry CPL_DLL * CPL_STDCALL GDALGetColorEntry( GDALColorTableH, int );
661 int CPL_DLL CPL_STDCALL GDALGetColorEntryAsRGB( GDALColorTableH, int, GDALColorEntry *);
662 void CPL_DLL CPL_STDCALL GDALSetColorEntry( GDALColorTableH, int, const GDALColorEntry * );
663 void CPL_DLL CPL_STDCALL GDALCreateColorRamp( GDALColorTableH hTable,
664  int nStartIndex, const GDALColorEntry *psStartColor,
665  int nEndIndex, const GDALColorEntry *psEndColor );
666 
667 /* ==================================================================== */
668 /* Raster Attribute Table */
669 /* ==================================================================== */
670 
672 typedef enum { GFT_Integer , GFT_Real, GFT_String
677 
679 typedef enum { GFU_Generic = 0, GFU_PixelCount = 1, GFU_Name = 2, GFU_Min = 3, GFU_Max = 4, GFU_MinMax = 5, GFU_Red = 6, GFU_Green = 7, GFU_Blue = 8, GFU_Alpha = 9, GFU_RedMin = 10, GFU_GreenMin = 11, GFU_BlueMin = 12, GFU_AlphaMin = 13, GFU_RedMax = 14, GFU_GreenMax = 15, GFU_BlueMax = 16, GFU_AlphaMax = 17, GFU_MaxCount
700 
701 GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
703 void CPL_DLL CPL_STDCALL GDALDestroyRasterAttributeTable(
705 
706 int CPL_DLL CPL_STDCALL GDALRATGetColumnCount( GDALRasterAttributeTableH );
707 
708 const char CPL_DLL * CPL_STDCALL GDALRATGetNameOfCol(
710 GDALRATFieldUsage CPL_DLL CPL_STDCALL GDALRATGetUsageOfCol(
712 GDALRATFieldType CPL_DLL CPL_STDCALL GDALRATGetTypeOfCol(
714 
715 int CPL_DLL CPL_STDCALL GDALRATGetColOfUsage( GDALRasterAttributeTableH,
717 int CPL_DLL CPL_STDCALL GDALRATGetRowCount( GDALRasterAttributeTableH );
718 
719 const char CPL_DLL * CPL_STDCALL GDALRATGetValueAsString(
720  GDALRasterAttributeTableH, int ,int);
721 int CPL_DLL CPL_STDCALL GDALRATGetValueAsInt(
722  GDALRasterAttributeTableH, int ,int);
723 double CPL_DLL CPL_STDCALL GDALRATGetValueAsDouble(
724  GDALRasterAttributeTableH, int ,int);
725 
726 void CPL_DLL CPL_STDCALL GDALRATSetValueAsString( GDALRasterAttributeTableH, int, int,
727  const char * );
728 void CPL_DLL CPL_STDCALL GDALRATSetValueAsInt( GDALRasterAttributeTableH, int, int,
729  int );
730 void CPL_DLL CPL_STDCALL GDALRATSetValueAsDouble( GDALRasterAttributeTableH, int, int,
731  double );
732 
733 int CPL_DLL CPL_STDCALL GDALRATChangesAreWrittenToFile( GDALRasterAttributeTableH hRAT );
734 
735 CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsDouble( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
736  int iField, int iStartRow, int iLength, double *pdfData );
737 CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsInteger( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
738  int iField, int iStartRow, int iLength, int *pnData);
739 CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsString( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
740  int iField, int iStartRow, int iLength, char **papszStrList);
741 
742 void CPL_DLL CPL_STDCALL GDALRATSetRowCount( GDALRasterAttributeTableH,
743  int );
744 CPLErr CPL_DLL CPL_STDCALL GDALRATCreateColumn( GDALRasterAttributeTableH,
745  const char *,
748 CPLErr CPL_DLL CPL_STDCALL GDALRATSetLinearBinning( GDALRasterAttributeTableH,
749  double, double );
750 int CPL_DLL CPL_STDCALL GDALRATGetLinearBinning( GDALRasterAttributeTableH,
751  double *, double * );
752 CPLErr CPL_DLL CPL_STDCALL GDALRATInitializeFromColorTable(
755  GDALRasterAttributeTableH, int nEntryCount );
756 void CPL_DLL CPL_STDCALL GDALRATDumpReadable( GDALRasterAttributeTableH,
757  FILE * );
758 GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
760 
761 int CPL_DLL CPL_STDCALL GDALRATGetRowOfValue( GDALRasterAttributeTableH , double );
762 
763 
764 /* ==================================================================== */
765 /* GDAL Cache Management */
766 /* ==================================================================== */
767 
768 void CPL_DLL CPL_STDCALL GDALSetCacheMax( int nBytes );
769 int CPL_DLL CPL_STDCALL GDALGetCacheMax(void);
770 int CPL_DLL CPL_STDCALL GDALGetCacheUsed(void);
771 void CPL_DLL CPL_STDCALL GDALSetCacheMax64( GIntBig nBytes );
772 GIntBig CPL_DLL CPL_STDCALL GDALGetCacheMax64(void);
773 GIntBig CPL_DLL CPL_STDCALL GDALGetCacheUsed64(void);
774 
775 int CPL_DLL CPL_STDCALL GDALFlushCacheBlock(void);
776 
777 /* ==================================================================== */
778 /* GDAL virtual memory */
779 /* ==================================================================== */
780 
782  GDALRWFlag eRWFlag,
783  int nXOff, int nYOff,
784  int nXSize, int nYSize,
785  int nBufXSize, int nBufYSize,
786  GDALDataType eBufType,
787  int nBandCount, int* panBandMap,
788  int nPixelSpace,
789  GIntBig nLineSpace,
790  GIntBig nBandSpace,
791  size_t nCacheSize,
792  size_t nPageSizeHint,
793  int bSingleThreadUsage,
794  char **papszOptions );
795 
797  GDALRWFlag eRWFlag,
798  int nXOff, int nYOff,
799  int nXSize, int nYSize,
800  int nBufXSize, int nBufYSize,
801  GDALDataType eBufType,
802  int nPixelSpace,
803  GIntBig nLineSpace,
804  size_t nCacheSize,
805  size_t nPageSizeHint,
806  int bSingleThreadUsage,
807  char **papszOptions );
808 
810  GDALRWFlag eRWFlag,
811  int *pnPixelSpace,
812  GIntBig *pnLineSpace,
813  char **papszOptions );
814 
815 typedef enum
816 {
824 
826  GDALRWFlag eRWFlag,
827  int nXOff, int nYOff,
828  int nXSize, int nYSize,
829  int nTileXSize, int nTileYSize,
830  GDALDataType eBufType,
831  int nBandCount, int* panBandMap,
832  GDALTileOrganization eTileOrganization,
833  size_t nCacheSize,
834  int bSingleThreadUsage,
835  char **papszOptions );
836 
838  GDALRWFlag eRWFlag,
839  int nXOff, int nYOff,
840  int nXSize, int nYSize,
841  int nTileXSize, int nTileYSize,
842  GDALDataType eBufType,
843  size_t nCacheSize,
844  int bSingleThreadUsage,
845  char **papszOptions );
846 
847 
848 CPL_C_END
849 
850 #endif /* ndef GDAL_H_INCLUDED */
double GDALRATGetValueAsDouble(GDALRasterAttributeTableH, int, int)
Fetch field value as a double.
Definition: gdal_rat.cpp:1372
int GDALRATGetColOfUsage(GDALRasterAttributeTableH, GDALRATFieldUsage)
Fetch column index for given usage.
Definition: gdal_rat.cpp:1164
CPLErr GDALGetRasterStatistics(GDALRasterBandH, int bApproxOK, int bForce, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev)
Fetch image statistics.
Definition: gdalrasterband.cpp:3423
Definition: gdal.h:115
CPLErr GDALAddBand(GDALDatasetH hDS, GDALDataType eType, char **papszOptions)
Add a band to a dataset.
Definition: gdaldataset.cpp:491
Definition: gdal.h:95
CPLErr GDALSetProjection(GDALDatasetH, const char *)
Set the projection reference string for this dataset.
Definition: gdaldataset.cpp:810
Definition: gdal.h:686
GDALColorInterp GDALGetColorInterpretationByName(const char *pszName)
Get color interpreation by symbolic name.
Definition: gdal_misc.cpp:577
CPLErr GDALDatasetCopyWholeRaster(GDALDatasetH hSrcDS, GDALDatasetH hDstDS, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Copy all dataset raster data.
Definition: rasterio.cpp:2846
GDALDataType
Definition: gdal.h:55
CPLErr GDALComputeRasterStatistics(GDALRasterBandH, int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData)
Compute image statistics.
Definition: gdalrasterband.cpp:3835
Definition: gdal.h:680
int GDALGetOverviewCount(GDALRasterBandH)
Return the number of overview layers available.
Definition: gdalrasterband.cpp:2044
Definition: gdal.h:65
char * pszInfo
Informational message or "".
Definition: gdal.h:261
Definition: gdal.h:698
Definition: gdal.h:688
double dfGCPPixel
Pixel (x) location of GCP on raster.
Definition: gdal.h:264
double GDALPackedDMSToDec(double)
Convert a packed DMS value (DDDMMMSSS.SS) into decimal degrees.
Definition: gdal_misc.cpp:1874
Definition: gdal.h:692
Definition: gdal.h:822
GDALDataType GDALDataTypeUnion(GDALDataType, GDALDataType)
Return the smallest data type that can fully express both input data types.
Definition: gdal_misc.cpp:74
Definition: gdal.h:674
Definition: gdal.h:116
Definition: gdal.h:57
CPLErr GDALCreateDatasetMaskBand(GDALDatasetH hDS, int nFlags)
Adds a mask band to the dataset.
Definition: gdaldataset.cpp:2198
Definition: gdal.h:134
GDALDriverH GDALGetDriver(int)
Fetch driver by index.
Definition: gdaldrivermanager.cpp:370
CPLErr GDALSetRasterOffset(GDALRasterBandH hBand, double dfNewOffset)
Set scaling offset.
Definition: gdalrasterband.cpp:2303
CPLErr GDALBuildOverviews(GDALDatasetH, const char *, int, int *, int, int *, GDALProgressFunc, void *)
Build raster overview(s)
Definition: gdaldataset.cpp:1401
int GDALGetColorEntryAsRGB(GDALColorTableH, int, GDALColorEntry *)
Fetch a table entry in RGB format.
Definition: gdalcolortable.cpp:183
GDALColorTableH GDALCloneColorTable(GDALColorTableH)
Make a copy of a color table.
Definition: gdalcolortable.cpp:280
Core portability definitions for CPL.
const GDALColorEntry * GDALGetColorEntry(GDALColorTableH, int)
Fetch a color entry from table.
Definition: gdalcolortable.cpp:134
void * GDALAsyncReaderH
Opaque type used for the C bindings of the C++ GDALAsyncReader class.
Definition: gdal.h:182
int GDALRATGetColumnCount(GDALRasterAttributeTableH)
Fetch table column count.
Definition: gdal_rat.cpp:1032
Definition: gdal.h:121
GDALRasterAttributeTableH GDALCreateRasterAttributeTable(void)
Construct empty table.
Definition: gdal_rat.cpp:944
GDALColorTableH GDALRATTranslateToColorTable(GDALRasterAttributeTableH, int nEntryCount)
Translate to a color table.
Definition: gdal_rat.cpp:846
int GDALGetColorEntryCount(GDALColorTableH)
Get number of color entries in table.
Definition: gdalcolortable.cpp:315
void GDALAllRegister(void)
Register all known configured GDAL drivers.
Definition: gdalallregister.cpp:74
Definition: gdal.h:113
int GDALGCPsToGeoTransform(int nGCPCount, const GDAL_GCP *pasGCPs, double *padfGeoTransform, int bApproxOK) CPL_WARN_UNUSED_RESULT
Generate Geotransform from GCPs.
Definition: gdal_misc.cpp:1924
CPLErr GDALSetRasterUnitType(GDALRasterBandH hBand, const char *pszNewValue)
Set unit type.
Definition: gdalrasterband.cpp:2493
GDALAsyncStatusType GDALGetAsyncStatusTypeByName(const char *)
Get AsyncStatusType by symbolic name.
Definition: gdal_misc.cpp:386
Definition: gdal.h:101
Definition: gdal.h:690
CPLErr GDALSetGCPs(GDALDatasetH, int, const GDAL_GCP *, const char *)
Assign GCPs.
Definition: gdaldataset.cpp:1311
CPLErr GDALSetDefaultHistogram(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, int *panHistogram)
Set default histogram.
Definition: gdalrasterband.cpp:4310
GDALRATFieldType
Field type of raster attribute table.
Definition: gdal.h:672
Definition: gdal.h:58
Definition: gdal.h:61
const char * GDALGetDriverHelpTopic(GDALDriverH)
Return the URL to the help that describes the driver.
Definition: gdaldriver.cpp:1203
void GDALDeregisterDriver(GDALDriverH)
Deregister the passed driver.
Definition: gdaldrivermanager.cpp:509
const char * GDALGetProjectionRef(GDALDatasetH)
Fetch the projection definition string for this dataset.
Definition: gdaldataset.cpp:765
CPLErr GDALAddDerivedBandPixelFunc(const char *pszName, GDALDerivedPixelFunc pfnPixelFunc)
This adds a pixel function to the global list of available pixel functions for derived bands...
Definition: vrtderivedrasterband.cpp:104
GDALDatasetH GDALOpenShared(const char *, GDALAccess) CPL_WARN_UNUSED_RESULT
Open a raster file as a GDALDataset.
Definition: gdaldataset.cpp:2408
Definition: gdal.h:683
GDALColorTableH GDALCreateColorTable(GDALPaletteInterp)
Construct a new color table.
Definition: gdalcolortable.cpp:63
Definition: gdal.h:696
CPLErr GDALSetRasterScale(GDALRasterBandH hBand, double dfNewOffset)
Set scaling ratio.
Definition: gdalrasterband.cpp:2402
CPLVirtualMem * GDALDatasetGetTiledVirtualMem(GDALDatasetH hDS, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize, int nYSize, int nTileXSize, int nTileYSize, GDALDataType eBufType, int nBandCount, int *panBandMap, GDALTileOrganization eTileOrganization, size_t nCacheSize, int bSingleThreadUsage, char **papszOptions)
Create a CPLVirtualMem object from a GDAL dataset object, with tiling organization.
Definition: gdalvirtualmem.cpp:1423
int GDALCheckVersion(int nVersionMajor, int nVersionMinor, const char *pszCallingComponentName)
Return TRUE if GDAL library version at runtime matches nVersionMajor.nVersionMinor.
Definition: gdal_misc.cpp:1833
int GDALRATGetValueAsInt(GDALRasterAttributeTableH, int, int)
Fetch field value as a integer.
Definition: gdal_rat.cpp:1315
int GDALHasArbitraryOverviews(GDALRasterBandH)
Check for arbitrary overviews.
Definition: gdalrasterband.cpp:2004
GDALRasterAttributeTableH GDALGetDefaultRAT(GDALRasterBandH hBand)
Fetch default Raster Attribute Table.
Definition: gdalrasterband.cpp:4353
void GDALComputeRasterMinMax(GDALRasterBandH hBand, int bApproxOK, double adfMinMax[2])
Compute the min/max values for a band.
Definition: gdalrasterband.cpp:4270
CPLErr GDALSetRasterColorInterpretation(GDALRasterBandH, GDALColorInterp)
Set color interpretation of a band.
Definition: gdalrasterband.cpp:1868
GDALDriverH GDALGetDriverByName(const char *)
Fetch a driver based on the short name.
Definition: gdaldrivermanager.cpp:558
int GDALGetDataTypeSize(GDALDataType)
Get data type size in bits.
Definition: gdal_misc.cpp:216
Definition: gdal.h:694
CPLErr GDALDatasetRasterIO(GDALDatasetH hDS, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType, int nBandCount, int *panBandCount, int nPixelSpace, int nLineSpace, int nBandSpace)
Read/write a region of image data from multiple bands.
Definition: gdaldataset.cpp:1781
const char * GDALGetDriverCreationOptionList(GDALDriverH)
Return the list of creation options of the driver.
Definition: gdaldriver.cpp:1227
GDALRWFlag
Definition: gdal.h:99
CPLVirtualMem * GDALRasterBandGetVirtualMem(GDALRasterBandH hBand, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize, int nYSize, int nBufXSize, int nBufYSize, GDALDataType eBufType, int nPixelSpace, GIntBig nLineSpace, size_t nCacheSize, size_t nPageSizeHint, int bSingleThreadUsage, char **papszOptions)
Create a CPLVirtualMem object from a GDAL raster band object.
Definition: gdalvirtualmem.cpp:997
int GDALGeneralCmdLineProcessor(int nArgc, char ***ppapszArgv, int nOptions)
General utility option processing.
Definition: gdal_misc.cpp:2279
void * GDALDatasetH
Opaque type used for the C bindings of the C++ GDALDataset class.
Definition: gdal.h:162
Color tuple.
Definition: gdal.h:640
Definition: gdal.h:119
void GDALDestroyDriverManager(void)
Destroy the driver manager.
Definition: gdaldrivermanager.cpp:828
const char * GDALRATGetValueAsString(GDALRasterAttributeTableH, int, int)
Fetch field value as a string.
Definition: gdal_rat.cpp:1258
Definition: gdal.h:608
void GDALRATSetValueAsString(GDALRasterAttributeTableH, int, int, const char *)
Set field value from string.
Definition: gdal_rat.cpp:1465
int GDALDataTypeIsComplex(GDALDataType)
Is data type complex?
Definition: gdal_misc.cpp:259
const char * GDALGetDriverLongName(GDALDriverH)
Return the long name of a driver.
Definition: gdaldriver.cpp:1173
void * GDALRasterBandH
Opaque type used for the C bindings of the C++ GDALRasterBand class.
Definition: gdal.h:165
char ** GDALGetRasterCategoryNames(GDALRasterBandH)
Fetch the list of category names for this raster.
Definition: gdalrasterband.cpp:1457
const char * GDALGetPaletteInterpretationName(GDALPaletteInterp)
Get name of palette interpretation.
Definition: gdal_misc.cpp:459
GDALRasterAttributeTableH GDALRATClone(GDALRasterAttributeTableH)
Copy Raster Attribute Table.
Definition: gdal_rat.cpp:1814
Definition: gdal.h:56
Definition: gdal.h:685
Definition: gdal.h:681
CPLErr GDALRATInitializeFromColorTable(GDALRasterAttributeTableH, GDALColorTableH)
Initialize from color table.
Definition: gdal_rat.cpp:733
void GDALFlushCache(GDALDatasetH hDS)
Flush all write cached data to disk.
Definition: gdaldataset.cpp:359
void * GDALGetInternalHandle(GDALDatasetH, const char *)
Fetch a format specific internally meaningful handle.
Definition: gdaldataset.cpp:960
int GDALGetRasterCount(GDALDatasetH)
Fetch the number of raster bands on this dataset.
Definition: gdaldataset.cpp:719
const char * GDALGetDescription(GDALMajorObjectH)
Fetch object description.
Definition: gdalmajorobject.cpp:91
Virtual memory management.
GDALRasterBandH GDALGetMaskBand(GDALRasterBandH hBand)
Return the mask band associated with the band.
Definition: gdalrasterband.cpp:4594
Definition: gdal.h:111
CPLErr GDALReadBlock(GDALRasterBandH, int, int, void *)
Read a block of image data efficiently.
Definition: gdalrasterband.cpp:425
int GDALRATChangesAreWrittenToFile(GDALRasterAttributeTableH hRAT)
Determine whether changes made to this RAT are reflected directly in the dataset. ...
Definition: gdal_rat.cpp:1629
GDALRATFieldUsage GDALRATGetUsageOfCol(GDALRasterAttributeTableH, int)
Fetch column usage value.
Definition: gdal_rat.cpp:1096
Definition: gdal.h:818
short c1
Definition: gdal.h:643
CPLErr GDALSetMetadata(GDALMajorObjectH, char **, const char *)
Set metadata.
Definition: gdalmajorobject.cpp:305
GIntBig GDALGetCacheMax64(void)
Get maximum cache memory.
Definition: gdalrasterblock.cpp:165
void GDALSetCacheMax(int nBytes)
Set maximum cache memory.
Definition: gdalrasterblock.cpp:62
short c3
Definition: gdal.h:649
struct CPLVirtualMem CPLVirtualMem
Opaque type that represents a virtual memory mapping.
Definition: cpl_virtualmem.h:60
void GDALApplyGeoTransform(double *, double, double, double *, double *)
Apply GeoTransform to x/y coordinate.
Definition: gdaltransformer.cpp:2823
int GDALRegisterDriver(GDALDriverH)
Register a driver for use.
Definition: gdaldrivermanager.cpp:453
Definition: gdal.h:67
CPLErr GDALSetMetadataItem(GDALMajorObjectH, const char *, const char *, const char *)
Set single metadata item.
Definition: gdalmajorobject.cpp:394
void GDALGetOpenDatasets(GDALDatasetH **hDS, int *pnCount)
Fetch all open GDAL dataset handles.
Definition: gdaldataset.cpp:1859
GDALColorInterp GDALGetRasterColorInterpretation(GDALRasterBandH)
How should this band be interpreted as color?
Definition: gdalrasterband.cpp:1824
const char * GDALGetAsyncStatusTypeName(GDALAsyncStatusType)
Get name of AsyncStatus data type.
Definition: gdal_misc.cpp:422
const char * GDALVersionInfo(const char *)
Get runtime version information.
Definition: gdal_misc.cpp:1724
CPLErr GDALRATValuesIOAsString(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField, int iStartRow, int iLength, char **papszStrList)
Read or Write a block of strings to/from the Attribute Table.
Definition: gdal_rat.cpp:255
double dfGCPY
Y position of GCP in georeferenced space.
Definition: gdal.h:272
CPLErr GDALRasterBandCopyWholeRaster(GDALRasterBandH hSrcBand, GDALRasterBandH hDstBand, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Copy all raster band raster data.
Definition: rasterio.cpp:3093
int GDALRATGetLinearBinning(GDALRasterAttributeTableH, double *, double *)
Get linear binning information.
Definition: gdal_rat.cpp:484
void GDALCreateColorRamp(GDALColorTableH hTable, int nStartIndex, const GDALColorEntry *psStartColor, int nEndIndex, const GDALColorEntry *psEndColor)
Create color ramp.
Definition: gdalcolortable.cpp:454
GDALRasterBandH GDALGetRasterBand(GDALDatasetH, int)
Fetch a band object for a dataset.
Definition: gdaldataset.cpp:683
const GDAL_GCP * GDALGetGCPs(GDALDatasetH)
Fetch GCPs.
Definition: gdaldataset.cpp:1247
short c2
Definition: gdal.h:646
GDALAccess GDALGetRasterAccess(GDALRasterBandH)
Find out if we have update permission for this band.
Definition: gdalrasterband.cpp:1411
char ** GDALGetMetadataDomainList(GDALMajorObjectH hObject)
Fetch list of metadata domains.
Definition: gdalmajorobject.cpp:213
int GDALGetAccess(GDALDatasetH hDS)
Return access flag.
Definition: gdaldataset.cpp:1893
const char * GDALGetDataTypeName(GDALDataType)
Get name of data type.
Definition: gdal_misc.cpp:293
GDALDriverH GDALIdentifyDriver(const char *pszFilename, char **papszFileList)
Identify the driver that can open a raster file.
Definition: gdaldriver.cpp:1506
Definition: gdal.h:691
int GDALGetDriverCount(void)
Fetch the number of registered drivers.
Definition: gdaldrivermanager.cpp:329
Definition: gdal.h:117
Definition: gdal.h:123
Definition: gdal.h:60
CPLErr GDALCreateMaskBand(GDALRasterBandH hBand, int nFlags)
Adds a mask band to the current band.
Definition: gdalrasterband.cpp:4753
int GDALRATGetRowCount(GDALRasterAttributeTableH)
Fetch row count.
Definition: gdal_rat.cpp:1192
Definition: gdal.h:109
int GDALRATGetRowOfValue(GDALRasterAttributeTableH, double)
Get row for pixel value.
Definition: gdal_rat.cpp:335
CPLErr GDALRegenerateOverviews(GDALRasterBandH hSrcBand, int nOverviewCount, GDALRasterBandH *pahOverviewBands, const char *pszResampling, GDALProgressFunc pfnProgress, void *pProgressData)
Generate downsampled overviews.
Definition: overview.cpp:1548
Definition: gdal.h:693
CPLErr GDALFlushRasterCache(GDALRasterBandH hBand)
Flush raster data cache.
Definition: gdalrasterband.cpp:942
Definition: gdal.h:820
GDALAsyncStatusType
status of the asynchronous stream
Definition: gdal.h:80
double GDALGetRasterNoDataValue(GDALRasterBandH, int *)
Fetch the no data value for this band.
Definition: gdalrasterband.cpp:1554
void GDALRATSetRowCount(GDALRasterAttributeTableH, int)
Set row count.
Definition: gdal_rat.cpp:294
void GDALSetCacheMax64(GIntBig nBytes)
Set maximum cache memory.
Definition: gdalrasterblock.cpp:89
void GDALDestroyRasterAttributeTable(GDALRasterAttributeTableH)
Destroys a RAT.
Definition: gdal_rat.cpp:985
CPLErr GDALCopyDatasetFiles(GDALDriverH, const char *pszNewName, const char *pszOldName)
Copy the files of a dataset.
Definition: gdaldriver.cpp:1115
CPLErr GDALRATCreateColumn(GDALRasterAttributeTableH, const char *, GDALRATFieldType, GDALRATFieldUsage)
Create new column.
Definition: gdal_rat.cpp:393
Definition: gdal.h:59
int GDALLoadWorldFile(const char *, double *)
Read ESRI world file.
Definition: gdal_misc.cpp:1402
void * GDALRasterAttributeTableH
Opaque type used for the C bindings of the C++ GDALRasterAttributeTable class.
Definition: gdal.h:179
void GDALSetColorEntry(GDALColorTableH, int, const GDALColorEntry *)
Set entry in color table.
Definition: gdalcolortable.cpp:244
Definition: gdal.h:122
int GDALGetRasterYSize(GDALDatasetH)
Fetch raster height in pixels.
Definition: gdaldataset.cpp:631
GDALDataType GDALGetDataTypeByName(const char *)
Get data type by symbolic name.
Definition: gdal_misc.cpp:354
CPL error handling services.
Definition: gdal.h:110
CPLErr GDALDatasetAdviseRead(GDALDatasetH hDS, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, int nBXSize, int nBYSize, GDALDataType eBDataType, int nBandCount, int *panBandCount, char **papszOptions)
Advise driver of upcoming read requests.
Definition: gdaldataset.cpp:1998
int GDALValidateCreationOptions(GDALDriverH, char **papszCreationOptions)
Validate the list of creation options that are handled by a driver.
Definition: gdaldriver.cpp:1267
Definition: gdal.h:66
Definition: gdal.h:136
void GDALComposeGeoTransforms(const double *padfGeoTransform1, const double *padfGeoTransform2, double *padfGeoTransformOut)
Compose two geotransforms.
Definition: gdal_misc.cpp:2191
GDALDatasetH GDALOpen(const char *pszFilename, GDALAccess eAccess) CPL_WARN_UNUSED_RESULT
Open a raster file as a GDALDataset.
Definition: gdaldataset.cpp:2251
CPLErr GDALSetRasterNoDataValue(GDALRasterBandH, double)
Set the no data value for this band.
Definition: gdalrasterband.cpp:1602
CPLVirtualMem * GDALGetVirtualMemAuto(GDALRasterBandH hBand, GDALRWFlag eRWFlag, int *pnPixelSpace, GIntBig *pnLineSpace, char **papszOptions)
Create a CPLVirtualMem object from a GDAL raster band object.
Definition: gdalrasterband.cpp:5064
GDALPaletteInterp
Definition: gdal.h:131
CPLVirtualMem * GDALDatasetGetVirtualMem(GDALDatasetH hDS, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize, int nYSize, int nBufXSize, int nBufYSize, GDALDataType eBufType, int nBandCount, int *panBandMap, int nPixelSpace, GIntBig nLineSpace, GIntBig nBandSpace, size_t nCacheSize, size_t nPageSizeHint, int bSingleThreadUsage, char **papszOptions)
Create a CPLVirtualMem object from a GDAL dataset object.
Definition: gdalvirtualmem.cpp:873
double GDALGetRasterMinimum(GDALRasterBandH, int *pbSuccess)
Fetch the minimum value for this band.
Definition: gdalrasterband.cpp:1782
CPLErr GDALSetRasterCategoryNames(GDALRasterBandH, char **)
Set the category names for this band.
Definition: gdalrasterband.cpp:1505
Definition: gdal.h:697
const char * GDALRATGetNameOfCol(GDALRasterAttributeTableH, int)
Fetch name of indicated column.
Definition: gdal_rat.cpp:1063
int GDALGetGCPCount(GDALDatasetH)
Get number of GCPs.
Definition: gdaldataset.cpp:1171
CPLErr GDALDeleteDataset(GDALDriverH, const char *)
Delete named dataset.
Definition: gdaldriver.cpp:867
const char * GDALGetDriverShortName(GDALDriverH)
Return the short name of a driver.
Definition: gdaldriver.cpp:1151
Definition: gdal.h:689
const char * GDALGetGCPProjection(GDALDatasetH)
Get output projection for GCPs.
Definition: gdaldataset.cpp:1210
int GDALGetMaskFlags(GDALRasterBandH hBand)
Return the status flags of the mask band associated with the band.
Definition: gdalrasterband.cpp:4672
Definition: gdal.h:135
CPLErr GDALWriteBlock(GDALRasterBandH, int, int, void *)
Write a block of image data efficiently.
Definition: gdalrasterband.cpp:546
GDALColorTableH GDALGetRasterColorTable(GDALRasterBandH)
Fetch the color table associated with band.
Definition: gdalrasterband.cpp:1910
const char * GDALGetRasterUnitType(GDALRasterBandH)
Return raster unit type.
Definition: gdalrasterband.cpp:2444
CPLErr GDALGetGeoTransform(GDALDatasetH, double *)
Fetch the affine transformation coefficients.
Definition: gdaldataset.cpp:875
CPLVirtualMem * GDALRasterBandGetTiledVirtualMem(GDALRasterBandH hBand, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize, int nYSize, int nTileXSize, int nTileYSize, GDALDataType eBufType, size_t nCacheSize, int bSingleThreadUsage, char **papszOptions)
Create a CPLVirtualMem object from a GDAL rasterband object, with tiling organization.
Definition: gdalvirtualmem.cpp:1534
GDALDatasetH GDALCreate(GDALDriverH hDriver, const char *, int, int, int, GDALDataType, char **) CPL_WARN_UNUSED_RESULT
Create a new dataset with this driver.
Definition: gdaldriver.cpp:247
CPLErr GDALSetRasterColorTable(GDALRasterBandH, GDALColorTableH)
Set the raster color table.
Definition: gdalrasterband.cpp:1960
void * GDALDriverH
Opaque type used for the C bindings of the C++ GDALDriver class.
Definition: gdal.h:168
int GDALGetRasterXSize(GDALDatasetH)
Fetch raster width in pixels.
Definition: gdaldataset.cpp:592
const char * GDALGetColorInterpretationName(GDALColorInterp)
Get name of color interpretation.
Definition: gdal_misc.cpp:499
int GDALGetCacheMax(void)
Get maximum cache memory.
Definition: gdalrasterblock.cpp:129
void GDALClose(GDALDatasetH)
Close GDAL dataset.
Definition: gdaldataset.cpp:2482
int GDALReferenceDataset(GDALDatasetH)
Add one to dataset reference count.
Definition: gdaldataset.cpp:1035
void * GDALMajorObjectH
Opaque type used for the C bindings of the C++ GDALMajorObject class.
Definition: gdal.h:159
GDALDriverH GDALGetDatasetDriver(GDALDatasetH)
Fetch the driver to which this dataset relates.
Definition: gdaldataset.cpp:997
void GDALRATSetValueAsDouble(GDALRasterAttributeTableH, int, int, double)
Set field value from double.
Definition: gdal_rat.cpp:1599
Definition: gdal.h:63
GDALDataType GDALGetRasterDataType(GDALRasterBandH)
Fetch the pixel data type for this band.
Definition: gdalrasterband.cpp:586
CPLErr GDALRasterAdviseRead(GDALRasterBandH hRB, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, int nBXSize, int nBYSize, GDALDataType eBDataType, char **papszOptions)
Advise driver of upcoming read requests.
Definition: gdalrasterband.cpp:3299
Definition: gdal.h:114
int GDALWriteWorldFile(const char *, const char *, double *)
Write ESRI world file.
Definition: gdal_misc.cpp:1654
char * pszId
Unique identifier, often numeric.
Definition: gdal.h:258
void GDALSwapWords(void *pData, int nWordSize, int nWordCount, int nWordSkip)
Byte swap words in-place.
Definition: rasterio.cpp:553
CPLErr GDALGetRasterHistogram(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, int *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc pfnProgress, void *pProgressData)
Compute raster histogram.
Definition: gdalrasterband.cpp:3110
CPLErr GDALFillRaster(GDALRasterBandH hBand, double dfRealValue, double dfImaginaryValue)
Fill this band with a constant value.
Definition: gdalrasterband.cpp:1374
void GDALSetDescription(GDALMajorObjectH, const char *)
Set object description.
Definition: gdalmajorobject.cpp:132
Definition: gdal.h:682
CPLErr GDALRATSetLinearBinning(GDALRasterAttributeTableH, double, double)
Set linear binning information.
Definition: gdal_rat.cpp:441
Definition: gdal.h:112
GDALTileOrganization
Definition: gdal.h:815
int GDALReadWorldFile(const char *, const char *, double *)
Read ESRI world file.
Definition: gdal_misc.cpp:1496
GDALAccess
Definition: gdal.h:93
short c4
Definition: gdal.h:652
GDALRasterBandH GDALGetOverview(GDALRasterBandH, int)
Fetch overview raster band object.
Definition: gdalrasterband.cpp:2087
int GDALGetBandNumber(GDALRasterBandH)
Fetch the band number.
Definition: gdalrasterband.cpp:2609
void GDALDestroyColorTable(GDALColorTableH)
Destroys a color table.
Definition: gdalcolortable.cpp:94
double GDALGetRasterMaximum(GDALRasterBandH, int *pbSuccess)
Fetch the maximum value for this band.
Definition: gdalrasterband.cpp:1694
Definition: gdal.h:62
Definition: gdal.h:673
GDALRATFieldUsage
Field usage of raster attribute table.
Definition: gdal.h:679
Definition: gdal.h:118
void GDALRATSetValueAsInt(GDALRasterAttributeTableH, int, int, int)
Set field value from integer.
Definition: gdal_rat.cpp:1532
const char * GDALGetMetadataItem(GDALMajorObjectH, const char *, const char *)
Fetch single metadata item.
Definition: gdalmajorobject.cpp:348
CPLErr GDALRenameDataset(GDALDriverH, const char *pszNewName, const char *pszOldName)
Rename a dataset.
Definition: gdaldriver.cpp:992
Definition: gdal.h:687
void * GDALColorTableH
Opaque type used for the C bindings of the C++ GDALColorTable class.
Definition: gdal.h:176
double dfGCPX
X position of GCP in georeferenced space.
Definition: gdal.h:269
int GDALGetRasterBandYSize(GDALRasterBandH)
Fetch YSize of raster.
Definition: gdalrasterband.cpp:2567
CPLErr GDALRATValuesIOAsDouble(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField, int iStartRow, int iLength, double *pdfData)
Read or Write a block of doubles to/from the Attribute Table.
Definition: gdal_rat.cpp:137
Definition: gdal.h:695
Definition: gdal.h:120
CPLErr GDALRasterIO(GDALRasterBandH hRBand, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType, int nPixelSpace, int nLineSpace)
Read/write a region of image data for this band.
Definition: gdalrasterband.cpp:274
void GDALDestroyDriver(GDALDriverH)
Destroy a GDALDriver.
Definition: gdaldriver.cpp:82
GDALColorInterp
Definition: gdal.h:105
double GDALGetRasterScale(GDALRasterBandH, int *pbSuccess)
Fetch the raster value scale.
Definition: gdalrasterband.cpp:2356
GDALDatasetH GDALCreateCopy(GDALDriverH, const char *, GDALDatasetH, int, char **, GDALProgressFunc, void *) CPL_WARN_UNUSED_RESULT
Create a copy of a dataset.
Definition: gdaldriver.cpp:728
Definition: gdal.h:124
GDALRasterBandH GDALGetRasterSampleOverview(GDALRasterBandH, int)
Fetch best sampling overview.
Definition: gdalrasterband.cpp:2156
double dfGCPLine
Line (y) location of GCP on raster.
Definition: gdal.h:266
int GDALDumpOpenDatasets(FILE *)
List open datasets.
Definition: gdaldataset.cpp:2583
double GDALGetRasterOffset(GDALRasterBandH, int *pbSuccess)
Fetch the raster value offset.
Definition: gdalrasterband.cpp:2257
int GDALInvGeoTransform(double *padfGeoTransformIn, double *padfInvGeoTransformOut) CPL_WARN_UNUSED_RESULT
Invert Geotransform.
Definition: gdaltransformer.cpp:2849
Definition: gdal.h:64
Definition: gdal.h:108
int GDALFlushCacheBlock(void)
Try to flush one cached raster block.
Definition: gdalrasterblock.cpp:252
void GDALCopyBits(const GByte *pabySrcData, int nSrcOffset, int nSrcStep, GByte *pabyDstData, int nDstOffset, int nDstStep, int nBitCount, int nStepCount)
Bitwise word copying.
Definition: rasterio.cpp:2079
void GDALGetBlockSize(GDALRasterBandH, int *pnXSize, int *pnYSize)
Fetch the "natural" block size of this band.
Definition: gdalrasterband.cpp:653
CPLErr GDALSetDefaultRAT(GDALRasterBandH, GDALRasterAttributeTableH)
Set default Raster Attribute Table.
Definition: gdalrasterband.cpp:4400
char ** GDALGetFileList(GDALDatasetH)
Fetch files forming dataset.
Definition: gdaldataset.cpp:2126
CPLErr GDALRATValuesIOAsInteger(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField, int iStartRow, int iLength, int *pnData)
Read or Write a block of ints to/from the Attribute Table.
Definition: gdal_rat.cpp:195
Definition: gdal.h:94
void GDALCopyWords(void *pSrcData, GDALDataType eSrcType, int nSrcPixelOffset, void *pDstData, GDALDataType eDstType, int nDstPixelOffset, int nWordCount)
Copy pixel words from buffer to buffer.
Definition: rasterio.cpp:1228
void GDALRATDumpReadable(GDALRasterAttributeTableH, FILE *)
Dump RAT in readable form.
Definition: gdal_rat.cpp:899
double dfGCPZ
Elevation of GCP, or zero if not known.
Definition: gdal.h:275
Definition: gdal.h:675
double GDALDecToPackedDMS(double)
Convert decimal degrees into packed DMS value (DDDMMMSSS.SS).
Definition: gdal_misc.cpp:1890
Definition: gdal.h:133
CPLErr GDALSetRasterStatistics(GDALRasterBandH hBand, double dfMin, double dfMax, double dfMean, double dfStdDev)
Set statistics on band.
Definition: gdalrasterband.cpp:3909
Ground Control Point.
Definition: gdal.h:255
GDALPaletteInterp GDALGetPaletteInterpretation(GDALColorTableH)
Fetch palette interpretation.
Definition: gdalcolortable.cpp:353
CPLErr GDALGetDefaultHistogram(GDALRasterBandH hBand, double *pdfMin, double *pdfMax, int *pnBuckets, int **ppanHistogram, int bForce, GDALProgressFunc pfnProgress, void *pProgressData)
Fetch default raster histogram.
Definition: gdalrasterband.cpp:3219
GIntBig GDALGetCacheUsed64(void)
Get cache memory used.
Definition: gdalrasterblock.cpp:232
GDALDatasetH GDALGetBandDataset(GDALRasterBandH)
Fetch the owning dataset handle.
Definition: gdalrasterband.cpp:2650
int GDALGetRasterBandXSize(GDALRasterBandH)
Fetch XSize of raster.
Definition: gdalrasterband.cpp:2530
int GDALDereferenceDataset(GDALDatasetH)
Subtract one from dataset reference count.
Definition: gdaldataset.cpp:1074
GDALRATFieldType GDALRATGetTypeOfCol(GDALRasterAttributeTableH, int)
Fetch column type.
Definition: gdal_rat.cpp:1128
int GDALGetCacheUsed(void)
Get cache memory used.
Definition: gdalrasterblock.cpp:202
Definition: gdal.h:684
char ** GDALGetMetadata(GDALMajorObjectH, const char *)
Fetch metadata.
Definition: gdalmajorobject.cpp:260
Definition: gdal.h:100

Generated for GDAL by doxygen 1.8.11.