GDAL

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

- File List
- File Members

gdal.h
Go to the documentation of this file.
1 /******************************************************************************
2 * $Id$
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 #if defined(GDAL_COMPILATION)
42 #define DO_NOT_DEFINE_GDAL_RELEASE_DATE_AND_GDAL_RELEASE_NAME
43 #endif
44 #include "gdal_version.h"
45 #include "cpl_port.h"
46 #include "cpl_error.h"
47 #include "cpl_progress.h"
48 #include "cpl_virtualmem.h"
49 #include "cpl_minixml.h"
50 #include "ogr_api.h"
51 #endif
52
53 /* -------------------------------------------------------------------- */
54 /* Significant constants. */
55 /* -------------------------------------------------------------------- */
56
57 CPL_C_START
58
60 typedef enum { GDT_Unknown = 0, GDT_Byte = 1, GDT_UInt16 = 2, GDT_Int16 = 3, GDT_UInt32 = 4, GDT_Int32 = 5,
67 /* TODO?(#6879): GDT_UInt64 */
68 /* TODO?(#6879): GDT_Int64 */ GDT_Float32 = 6, GDT_Float64 = 7, GDT_CInt16 = 8, GDT_CInt32 = 9,
73 /* TODO?(#6879): GDT_CInt64 */ GDT_CFloat32 = 10, GDT_CFloat64 = 11,
76 GDT_TypeCount = 12 /* maximum type # + 1 */
77 } GDALDataType;
78
79 int CPL_DLL CPL_STDCALL GDALGetDataTypeSize( GDALDataType ); // Deprecated.
80 int CPL_DLL CPL_STDCALL GDALGetDataTypeSizeBits( GDALDataType eDataType );
81 int CPL_DLL CPL_STDCALL GDALGetDataTypeSizeBytes( GDALDataType );
82 int CPL_DLL CPL_STDCALL GDALDataTypeIsComplex( GDALDataType );
83 int CPL_DLL CPL_STDCALL GDALDataTypeIsInteger( GDALDataType );
84 int CPL_DLL CPL_STDCALL GDALDataTypeIsFloating( GDALDataType );
85 int CPL_DLL CPL_STDCALL GDALDataTypeIsSigned( GDALDataType );
86 const char CPL_DLL * CPL_STDCALL GDALGetDataTypeName( GDALDataType );
87 GDALDataType CPL_DLL CPL_STDCALL GDALGetDataTypeByName( const char * );
88 GDALDataType CPL_DLL CPL_STDCALL GDALDataTypeUnion( GDALDataType, GDALDataType );
89 GDALDataType CPL_DLL CPL_STDCALL GDALDataTypeUnionWithValue( GDALDataType eDT, double dValue, int bComplex );
90 GDALDataType CPL_DLL CPL_STDCALL GDALFindDataType( int nBits, int bSigned, int bFloating, int bComplex );
91 GDALDataType CPL_DLL CPL_STDCALL GDALFindDataTypeForValue( double dValue, int bComplex );
92 double CPL_DLL GDALAdjustValueToDataType( GDALDataType eDT, double dfValue, int* pbClamped, int* pbRounded );
93 GDALDataType CPL_DLL CPL_STDCALL GDALGetNonComplexDataType( GDALDataType );
94 int CPL_DLL CPL_STDCALL GDALDataTypeIsConversionLossy( GDALDataType eTypeFrom,
95 GDALDataType eTypeTo );
96
100 typedef enum
101 {
102 GARIO_PENDING = 0,
103 GARIO_UPDATE = 1,
104 GARIO_ERROR = 2,
105 GARIO_COMPLETE = 3,
106 GARIO_TypeCount = 4
107 } GDALAsyncStatusType;
108
109 const char CPL_DLL * CPL_STDCALL GDALGetAsyncStatusTypeName( GDALAsyncStatusType );
110 GDALAsyncStatusType CPL_DLL CPL_STDCALL GDALGetAsyncStatusTypeByName( const char * );
111
113 typedef enum { GA_ReadOnly = 0, GA_Update = 1
116 } GDALAccess;
117
119 typedef enum { GF_Read = 0, GF_Write = 1
122 } GDALRWFlag;
123
124 /* NOTE: values are selected to be consistent with GDALResampleAlg of alg/gdalwarper.h */
128 typedef enum
129 { GRIORA_NearestNeighbour = 0, GRIORA_Bilinear = 1, GRIORA_Cubic = 2, GRIORA_CubicSpline = 3, GRIORA_Lanczos = 4, GRIORA_Average = 5,
137 GRIORA_Mode = 6, GRIORA_Gauss = 7
139 /* NOTE: values 8 to 12 are reserved for max,min,med,Q1,Q3 */
140 } GDALRIOResampleAlg;
141
142 /* NOTE to developers: only add members, and if so edit INIT_RASTERIO_EXTRA_ARG */
143 /* and INIT_RASTERIO_EXTRA_ARG */
147 typedef struct
148 {
150 int nVersion;
151
153 GDALRIOResampleAlg eResampleAlg;
154
156 GDALProgressFunc pfnProgress;
158 void *pProgressData;
159
164 int bFloatingPointWindowValidity;
166 double dfXOff;
168 double dfYOff;
170 double dfXSize;
172 double dfYSize;
173 } GDALRasterIOExtraArg;
174
175 #ifndef DOXYGEN_SKIP
176 #define RASTERIO_EXTRA_ARG_CURRENT_VERSION 1
177 #endif
178
182 #define INIT_RASTERIO_EXTRA_ARG(s) \
183 do { (s).nVersion = RASTERIO_EXTRA_ARG_CURRENT_VERSION; \
184 (s).eResampleAlg = GRIORA_NearestNeighbour; \
185 (s).pfnProgress = CPL_NULLPTR; \
186 (s).pProgressData = CPL_NULLPTR; \
187 (s).bFloatingPointWindowValidity = FALSE; } while(0)
188
190 typedef enum
191 { GCI_Undefined=0, GCI_GrayIndex=1, GCI_PaletteIndex=2, GCI_RedBand=3, GCI_GreenBand=4, GCI_BlueBand=5, GCI_AlphaBand=6, GCI_HueBand=7, GCI_SaturationBand=8, GCI_LightnessBand=9, GCI_CyanBand=10, GCI_MagentaBand=11, GCI_YellowBand=12, GCI_BlackBand=13, GCI_YCbCr_YBand=14, GCI_YCbCr_CbBand=15, GCI_YCbCr_CrBand=16, GCI_Max=16
210 } GDALColorInterp;
211
212 const char CPL_DLL *GDALGetColorInterpretationName( GDALColorInterp );
213 GDALColorInterp CPL_DLL GDALGetColorInterpretationByName( const char *pszName );
214
216 typedef enum
217 { GPI_Gray=0, GPI_RGB=1, GPI_CMYK=2, GPI_HLS=3
222 } GDALPaletteInterp;
223
224 const char CPL_DLL *GDALGetPaletteInterpretationName( GDALPaletteInterp );
225
226 /* "well known" metadata items. */
227
230 #define GDALMD_AREA_OR_POINT "AREA_OR_POINT"
231
233 # define GDALMD_AOP_AREA "Area"
234
236 # define GDALMD_AOP_POINT "Point"
237
238 /* -------------------------------------------------------------------- */
239 /* GDAL Specific error codes. */
240 /* */
241 /* error codes 100 to 299 reserved for GDAL. */
242 /* -------------------------------------------------------------------- */
243 #ifndef DOXYGEN_SKIP
244 #define CPLE_WrongFormat (CPLErrorNum)200
245 #endif
246
247 /* -------------------------------------------------------------------- */
248 /* Define handle types related to various internal classes. */
249 /* -------------------------------------------------------------------- */
250
252 typedef void *GDALMajorObjectH;
253
255 typedef void *GDALDatasetH;
256
258 typedef void *GDALRasterBandH;
259
261 typedef void *GDALDriverH;
262
264 typedef void *GDALColorTableH;
265
267 typedef void *GDALRasterAttributeTableH;
268
270 typedef void *GDALAsyncReaderH;
271
273 typedef GIntBig GSpacing;
274
275 /* ==================================================================== */
276 /* Registration/driver related. */
277 /* ==================================================================== */
278
280 #define GDAL_DMD_LONGNAME "DMD_LONGNAME"
281
283 #define GDAL_DMD_HELPTOPIC "DMD_HELPTOPIC"
284
286 #define GDAL_DMD_MIMETYPE "DMD_MIMETYPE"
287
289 #define GDAL_DMD_EXTENSION "DMD_EXTENSION"
290
295 #define GDAL_DMD_CONNECTION_PREFIX "DMD_CONNECTION_PREFIX"
296
300 #define GDAL_DMD_EXTENSIONS "DMD_EXTENSIONS"
301
303 #define GDAL_DMD_CREATIONOPTIONLIST "DMD_CREATIONOPTIONLIST"
304
308 #define GDAL_DMD_OPENOPTIONLIST "DMD_OPENOPTIONLIST"
309
311 #define GDAL_DMD_CREATIONDATATYPES "DMD_CREATIONDATATYPES"
312
316 #define GDAL_DMD_CREATIONFIELDDATATYPES "DMD_CREATIONFIELDDATATYPES"
317
321 #define GDAL_DMD_CREATIONFIELDDATASUBTYPES "DMD_CREATIONFIELDDATASUBTYPES"
322
324 #define GDAL_DMD_SUBDATASETS "DMD_SUBDATASETS"
325
327 #define GDAL_DCAP_OPEN "DCAP_OPEN"
328
337 #define GDAL_DCAP_CREATE "DCAP_CREATE"
338
347 #define GDAL_DCAP_CREATECOPY "DCAP_CREATECOPY"
348
350 #define GDAL_DCAP_VIRTUALIO "DCAP_VIRTUALIO"
351
355 #define GDAL_DCAP_RASTER "DCAP_RASTER"
356
360 #define GDAL_DCAP_VECTOR "DCAP_VECTOR"
361
365 #define GDAL_DCAP_GNM "DCAP_GNM"
366
370 #define GDAL_DCAP_NOTNULL_FIELDS "DCAP_NOTNULL_FIELDS"
371
375 #define GDAL_DCAP_DEFAULT_FIELDS "DCAP_DEFAULT_FIELDS"
376
380 #define GDAL_DCAP_NOTNULL_GEOMFIELDS "DCAP_NOTNULL_GEOMFIELDS"
381
387 #define GDAL_DCAP_NONSPATIAL "DCAP_NONSPATIAL"
388
392 #define GDAL_DCAP_FEATURE_STYLES "DCAP_FEATURE_STYLES"
393
394 void CPL_DLL CPL_STDCALL GDALAllRegister( void );
395
396 GDALDatasetH CPL_DLL CPL_STDCALL GDALCreate( GDALDriverH hDriver,
397 const char *, int, int, int, GDALDataType,
398 CSLConstList ) CPL_WARN_UNUSED_RESULT;
399 GDALDatasetH CPL_DLL CPL_STDCALL
400 GDALCreateCopy( GDALDriverH, const char *, GDALDatasetH,
401 int, CSLConstList, GDALProgressFunc, void * ) CPL_WARN_UNUSED_RESULT;
402
403 GDALDriverH CPL_DLL CPL_STDCALL GDALIdentifyDriver( const char * pszFilename,
404 CSLConstList papszFileList );
405
406 GDALDriverH CPL_DLL CPL_STDCALL GDALIdentifyDriverEx(
407 const char *pszFilename, unsigned int nIdentifyFlags,
408 const char *const *papszAllowedDrivers, const char *const *papszFileList);
409
410 GDALDatasetH CPL_DLL CPL_STDCALL
411 GDALOpen( const char *pszFilename, GDALAccess eAccess ) CPL_WARN_UNUSED_RESULT;
412 GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenShared( const char *, GDALAccess ) CPL_WARN_UNUSED_RESULT;
413
414 /* Note: we define GDAL_OF_READONLY and GDAL_OF_UPDATE to be on purpose */
415 /* equals to GA_ReadOnly and GA_Update */
416
421 #define GDAL_OF_READONLY 0x00
422
427 #define GDAL_OF_UPDATE 0x01
428
433 #define GDAL_OF_ALL 0x00
434
439 #define GDAL_OF_RASTER 0x02
440
445 #define GDAL_OF_VECTOR 0x04
446
451 #define GDAL_OF_GNM 0x08
452
453 /* Some space for GDAL 3.0 new types ;-) */
454 /*#define GDAL_OF_OTHER_KIND1 0x08 */
455 /*#define GDAL_OF_OTHER_KIND2 0x10 */
456 #ifndef DOXYGEN_SKIP
457 #define GDAL_OF_KIND_MASK 0x1E
458 #endif
459
464 #define GDAL_OF_SHARED 0x20
465
470 #define GDAL_OF_VERBOSE_ERROR 0x40
471
478 #define GDAL_OF_INTERNAL 0x80
479
489 #define GDAL_OF_DEFAULT_BLOCK_ACCESS 0
490
499 #define GDAL_OF_ARRAY_BLOCK_ACCESS 0x100
500
509 #define GDAL_OF_HASHSET_BLOCK_ACCESS 0x200
510
511 #ifndef DOXYGEN_SKIP
512 /* Reserved for a potential future alternative to GDAL_OF_ARRAY_BLOCK_ACCESS
513 * and GDAL_OF_HASHSET_BLOCK_ACCESS */
514 #define GDAL_OF_RESERVED_1 0x300
515
517 #define GDAL_OF_BLOCK_ACCESS_MASK 0x300
518 #endif
519
520 GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenEx( const char* pszFilename,
521 unsigned int nOpenFlags,
522 const char* const* papszAllowedDrivers,
523 const char* const* papszOpenOptions,
524 const char* const* papszSiblingFiles ) CPL_WARN_UNUSED_RESULT;
525
526 int CPL_DLL CPL_STDCALL GDALDumpOpenDatasets( FILE * );
527
528 GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriverByName( const char * );
529 int CPL_DLL CPL_STDCALL GDALGetDriverCount( void );
530 GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriver( int );
531 GDALDriverH CPL_DLL CPL_STDCALL GDALCreateDriver( void );
532 void CPL_DLL CPL_STDCALL GDALDestroyDriver( GDALDriverH );
533 int CPL_DLL CPL_STDCALL GDALRegisterDriver( GDALDriverH );
534 void CPL_DLL CPL_STDCALL GDALDeregisterDriver( GDALDriverH );
535 void CPL_DLL CPL_STDCALL GDALDestroyDriverManager( void );
536 #ifndef DOXYGEN_SKIP
537 void CPL_DLL GDALDestroy( void );
538 #endif
539 CPLErr CPL_DLL CPL_STDCALL GDALDeleteDataset( GDALDriverH, const char * );
540 CPLErr CPL_DLL CPL_STDCALL GDALRenameDataset( GDALDriverH,
541 const char * pszNewName,
542 const char * pszOldName );
543 CPLErr CPL_DLL CPL_STDCALL GDALCopyDatasetFiles( GDALDriverH,
544 const char * pszNewName,
545 const char * pszOldName);
546 int CPL_DLL CPL_STDCALL GDALValidateCreationOptions( GDALDriverH,
547 CSLConstList papszCreationOptions);
548
549 /* The following are deprecated */
550 const char CPL_DLL * CPL_STDCALL GDALGetDriverShortName( GDALDriverH );
551 const char CPL_DLL * CPL_STDCALL GDALGetDriverLongName( GDALDriverH );
552 const char CPL_DLL * CPL_STDCALL GDALGetDriverHelpTopic( GDALDriverH );
553 const char CPL_DLL * CPL_STDCALL GDALGetDriverCreationOptionList( GDALDriverH );
554
555 /* ==================================================================== */
556 /* GDAL_GCP */
557 /* ==================================================================== */
558
560 typedef struct
561 {
563 char *pszId;
564
566 char *pszInfo;
567
569 double dfGCPPixel;
571 double dfGCPLine;
572
574 double dfGCPX;
575
577 double dfGCPY;
578
580 double dfGCPZ;
581 } GDAL_GCP;
582
583 void CPL_DLL CPL_STDCALL GDALInitGCPs( int, GDAL_GCP * );
584 void CPL_DLL CPL_STDCALL GDALDeinitGCPs( int, GDAL_GCP * );
585 GDAL_GCP CPL_DLL * CPL_STDCALL GDALDuplicateGCPs( int, const GDAL_GCP * );
586
587 int CPL_DLL CPL_STDCALL
588 GDALGCPsToGeoTransform( int nGCPCount, const GDAL_GCP *pasGCPs,
589 double *padfGeoTransform, int bApproxOK ) CPL_WARN_UNUSED_RESULT;
590 int CPL_DLL CPL_STDCALL
591 GDALInvGeoTransform( double *padfGeoTransformIn,
592 double *padfInvGeoTransformOut ) CPL_WARN_UNUSED_RESULT;
593 void CPL_DLL CPL_STDCALL GDALApplyGeoTransform( double *, double, double,
594 double *, double * );
595 void CPL_DLL GDALComposeGeoTransforms(const double *padfGeoTransform1,
596 const double *padfGeoTransform2,
597 double *padfGeoTransformOut);
598
599 /* ==================================================================== */
600 /* major objects (dataset, and, driver, drivermanager). */
601 /* ==================================================================== */
602
603 char CPL_DLL ** CPL_STDCALL GDALGetMetadataDomainList( GDALMajorObjectH hObject );
604 char CPL_DLL ** CPL_STDCALL GDALGetMetadata( GDALMajorObjectH, const char * );
605 CPLErr CPL_DLL CPL_STDCALL GDALSetMetadata( GDALMajorObjectH, CSLConstList,
606 const char * );
607 const char CPL_DLL * CPL_STDCALL
608 GDALGetMetadataItem( GDALMajorObjectH, const char *, const char * );
609 CPLErr CPL_DLL CPL_STDCALL
610 GDALSetMetadataItem( GDALMajorObjectH, const char *, const char *,
611 const char * );
612 const char CPL_DLL * CPL_STDCALL GDALGetDescription( GDALMajorObjectH );
613 void CPL_DLL CPL_STDCALL GDALSetDescription( GDALMajorObjectH, const char * );
614
615 /* ==================================================================== */
616 /* GDALDataset class ... normally this represents one file. */
617 /* ==================================================================== */
618
620 #define GDAL_DS_LAYER_CREATIONOPTIONLIST "DS_LAYER_CREATIONOPTIONLIST"
621
622 GDALDriverH CPL_DLL CPL_STDCALL GDALGetDatasetDriver( GDALDatasetH );
623 char CPL_DLL ** CPL_STDCALL GDALGetFileList( GDALDatasetH );
624 void CPL_DLL CPL_STDCALL GDALClose( GDALDatasetH );
625 int CPL_DLL CPL_STDCALL GDALGetRasterXSize( GDALDatasetH );
626 int CPL_DLL CPL_STDCALL GDALGetRasterYSize( GDALDatasetH );
627 int CPL_DLL CPL_STDCALL GDALGetRasterCount( GDALDatasetH );
628 GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetRasterBand( GDALDatasetH, int );
629
630 CPLErr CPL_DLL CPL_STDCALL GDALAddBand( GDALDatasetH hDS, GDALDataType eType,
631 CSLConstList papszOptions );
632
633 GDALAsyncReaderH CPL_DLL CPL_STDCALL
634 GDALBeginAsyncReader(GDALDatasetH hDS, int nXOff, int nYOff,
635 int nXSize, int nYSize,
636 void *pBuf, int nBufXSize, int nBufYSize,
637 GDALDataType eBufType, int nBandCount, int* panBandMap,
638 int nPixelSpace, int nLineSpace, int nBandSpace,
639 CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
640
641 void CPL_DLL CPL_STDCALL
642 GDALEndAsyncReader(GDALDatasetH hDS, GDALAsyncReaderH hAsynchReaderH);
643
644 CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIO(
645 GDALDatasetH hDS, GDALRWFlag eRWFlag,
646 int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
647 void * pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType,
648 int nBandCount, int *panBandCount,
649 int nPixelSpace, int nLineSpace, int nBandSpace) CPL_WARN_UNUSED_RESULT;
650
651 CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIOEx(
652 GDALDatasetH hDS, GDALRWFlag eRWFlag,
653 int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
654 void * pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType,
655 int nBandCount, int *panBandCount,
656 GSpacing nPixelSpace, GSpacing nLineSpace, GSpacing nBandSpace,
657 GDALRasterIOExtraArg* psExtraArg) CPL_WARN_UNUSED_RESULT;
658
659 CPLErr CPL_DLL CPL_STDCALL GDALDatasetAdviseRead( GDALDatasetH hDS,
660 int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
661 int nBXSize, int nBYSize, GDALDataType eBDataType,
662 int nBandCount, int *panBandCount, CSLConstList papszOptions );
663
664 const char CPL_DLL * CPL_STDCALL GDALGetProjectionRef( GDALDatasetH );
665 CPLErr CPL_DLL CPL_STDCALL GDALSetProjection( GDALDatasetH, const char * );
666 CPLErr CPL_DLL CPL_STDCALL GDALGetGeoTransform( GDALDatasetH, double * );
667 CPLErr CPL_DLL CPL_STDCALL GDALSetGeoTransform( GDALDatasetH, double * );
668
669 int CPL_DLL CPL_STDCALL GDALGetGCPCount( GDALDatasetH );
670 const char CPL_DLL * CPL_STDCALL GDALGetGCPProjection( GDALDatasetH );
671 const GDAL_GCP CPL_DLL * CPL_STDCALL GDALGetGCPs( GDALDatasetH );
672 CPLErr CPL_DLL CPL_STDCALL GDALSetGCPs( GDALDatasetH, int, const GDAL_GCP *,
673 const char * );
674
675 void CPL_DLL * CPL_STDCALL GDALGetInternalHandle( GDALDatasetH, const char * );
676 int CPL_DLL CPL_STDCALL GDALReferenceDataset( GDALDatasetH );
677 int CPL_DLL CPL_STDCALL GDALDereferenceDataset( GDALDatasetH );
678 int CPL_DLL CPL_STDCALL GDALReleaseDataset( GDALDatasetH );
679
680 CPLErr CPL_DLL CPL_STDCALL
681 GDALBuildOverviews( GDALDatasetH, const char *, int, int *,
682 int, int *, GDALProgressFunc, void * ) CPL_WARN_UNUSED_RESULT;
683 void CPL_DLL CPL_STDCALL GDALGetOpenDatasets( GDALDatasetH **hDS, int *pnCount );
684 int CPL_DLL CPL_STDCALL GDALGetAccess( GDALDatasetH hDS );
685 void CPL_DLL CPL_STDCALL GDALFlushCache( GDALDatasetH hDS );
686
687 CPLErr CPL_DLL CPL_STDCALL
688 GDALCreateDatasetMaskBand( GDALDatasetH hDS, int nFlags );
689
690 CPLErr CPL_DLL CPL_STDCALL GDALDatasetCopyWholeRaster(
691 GDALDatasetH hSrcDS, GDALDatasetH hDstDS, CSLConstList papszOptions,
692 GDALProgressFunc pfnProgress, void *pProgressData ) CPL_WARN_UNUSED_RESULT;
693
694 CPLErr CPL_DLL CPL_STDCALL GDALRasterBandCopyWholeRaster(
695 GDALRasterBandH hSrcBand, GDALRasterBandH hDstBand,
696 const char * const * constpapszOptions,
697 GDALProgressFunc pfnProgress, void *pProgressData ) CPL_WARN_UNUSED_RESULT;
698
699 CPLErr CPL_DLL
700 GDALRegenerateOverviews( GDALRasterBandH hSrcBand,
701 int nOverviewCount, GDALRasterBandH *pahOverviewBands,
702 const char *pszResampling,
703 GDALProgressFunc pfnProgress, void *pProgressData );
704
705 int CPL_DLL GDALDatasetGetLayerCount( GDALDatasetH );
706 OGRLayerH CPL_DLL GDALDatasetGetLayer( GDALDatasetH, int );
707 OGRLayerH CPL_DLL GDALDatasetGetLayerByName( GDALDatasetH, const char * );
708 OGRErr CPL_DLL GDALDatasetDeleteLayer( GDALDatasetH, int );
709 OGRLayerH CPL_DLL GDALDatasetCreateLayer( GDALDatasetH, const char *,
710 OGRSpatialReferenceH, OGRwkbGeometryType,
711 CSLConstList );
712 OGRLayerH CPL_DLL GDALDatasetCopyLayer( GDALDatasetH, OGRLayerH, const char *,
713 CSLConstList );
714 void CPL_DLL GDALDatasetResetReading( GDALDatasetH );
715 OGRFeatureH CPL_DLL GDALDatasetGetNextFeature( GDALDatasetH hDS,
716 OGRLayerH* phBelongingLayer,
717 double* pdfProgressPct,
718 GDALProgressFunc pfnProgress,
719 void* pProgressData );
720 int CPL_DLL GDALDatasetTestCapability( GDALDatasetH, const char * );
721 OGRLayerH CPL_DLL GDALDatasetExecuteSQL( GDALDatasetH, const char *,
722 OGRGeometryH, const char * );
723 void CPL_DLL GDALDatasetReleaseResultSet( GDALDatasetH, OGRLayerH );
724 OGRStyleTableH CPL_DLL GDALDatasetGetStyleTable( GDALDatasetH );
725 void CPL_DLL GDALDatasetSetStyleTableDirectly( GDALDatasetH, OGRStyleTableH );
726 void CPL_DLL GDALDatasetSetStyleTable( GDALDatasetH, OGRStyleTableH );
727 OGRErr CPL_DLL GDALDatasetStartTransaction(GDALDatasetH hDS, int bForce);
728 OGRErr CPL_DLL GDALDatasetCommitTransaction(GDALDatasetH hDS);
729 OGRErr CPL_DLL GDALDatasetRollbackTransaction(GDALDatasetH hDS);
730
731 /* ==================================================================== */
732 /* GDALRasterBand ... one band/channel in a dataset. */
733 /* ==================================================================== */
734
739 #define SRCVAL(papoSource, eSrcType, ii) \
740 (eSrcType == GDT_Byte ? \
741 CPL_REINTERPRET_CAST(const GByte*,papoSource)[ii] : \
742 (eSrcType == GDT_Float32 ? \
743 CPL_REINTERPRET_CAST(const float*,papoSource)[ii] : \
744 (eSrcType == GDT_Float64 ? \
745 CPL_REINTERPRET_CAST(const double*,papoSource)[ii] : \
746 (eSrcType == GDT_Int32 ? \
747 CPL_REINTERPRET_CAST(const GInt32*,papoSource)[ii] : \
748 (eSrcType == GDT_UInt16 ? \
749 CPL_REINTERPRET_CAST(const GUInt16*,papoSource)[ii] : \
750 (eSrcType == GDT_Int16 ? \
751 CPL_REINTERPRET_CAST(const GInt16*,papoSource)[ii] : \
752 (eSrcType == GDT_UInt32 ? \
753 CPL_REINTERPRET_CAST(const GUInt32*,papoSource)[ii] : \
754 (eSrcType == GDT_CInt16 ? \
755 CPL_REINTERPRET_CAST(const GInt16*,papoSource)[(ii) * 2] : \
756 (eSrcType == GDT_CInt32 ? \
757 CPL_REINTERPRET_CAST(const GInt32*,papoSource)[(ii) * 2] : \
758 (eSrcType == GDT_CFloat32 ? \
759 CPL_REINTERPRET_CAST(const float*,papoSource)[(ii) * 2] : \
760 (eSrcType == GDT_CFloat64 ? \
761 CPL_REINTERPRET_CAST(const double*,papoSource)[(ii) * 2] : 0)))))))))))
762
765 typedef CPLErr
766 (*GDALDerivedPixelFunc)(void **papoSources, int nSources, void *pData,
767 int nBufXSize, int nBufYSize,
768 GDALDataType eSrcType, GDALDataType eBufType,
769 int nPixelSpace, int nLineSpace);
770
771 GDALDataType CPL_DLL CPL_STDCALL GDALGetRasterDataType( GDALRasterBandH );
772 void CPL_DLL CPL_STDCALL
773 GDALGetBlockSize( GDALRasterBandH, int * pnXSize, int * pnYSize );
774
775 CPLErr CPL_DLL CPL_STDCALL
776 GDALGetActualBlockSize( GDALRasterBandH, int nXBlockOff, int nYBlockOff,
777 int *pnXValid, int *pnYValid );
778
779 CPLErr CPL_DLL CPL_STDCALL GDALRasterAdviseRead( GDALRasterBandH hRB,
780 int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
781 int nBXSize, int nBYSize, GDALDataType eBDataType, CSLConstList papszOptions );
782
783 CPLErr CPL_DLL CPL_STDCALL
784 GDALRasterIO( GDALRasterBandH hRBand, GDALRWFlag eRWFlag,
785 int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
786 void * pBuffer, int nBXSize, int nBYSize,GDALDataType eBDataType,
787 int nPixelSpace, int nLineSpace ) CPL_WARN_UNUSED_RESULT;
788 CPLErr CPL_DLL CPL_STDCALL
789 GDALRasterIOEx( GDALRasterBandH hRBand, GDALRWFlag eRWFlag,
790 int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
791 void * pBuffer, int nBXSize, int nBYSize,GDALDataType eBDataType,
792 GSpacing nPixelSpace, GSpacing nLineSpace,
793 GDALRasterIOExtraArg* psExtraArg ) CPL_WARN_UNUSED_RESULT;
794 CPLErr CPL_DLL CPL_STDCALL GDALReadBlock( GDALRasterBandH, int, int, void * ) CPL_WARN_UNUSED_RESULT;
795 CPLErr CPL_DLL CPL_STDCALL GDALWriteBlock( GDALRasterBandH, int, int, void * ) CPL_WARN_UNUSED_RESULT;
796 int CPL_DLL CPL_STDCALL GDALGetRasterBandXSize( GDALRasterBandH );
797 int CPL_DLL CPL_STDCALL GDALGetRasterBandYSize( GDALRasterBandH );
798 GDALAccess CPL_DLL CPL_STDCALL GDALGetRasterAccess( GDALRasterBandH );
799 int CPL_DLL CPL_STDCALL GDALGetBandNumber( GDALRasterBandH );
800 GDALDatasetH CPL_DLL CPL_STDCALL GDALGetBandDataset( GDALRasterBandH );
801
802 GDALColorInterp CPL_DLL CPL_STDCALL
803 GDALGetRasterColorInterpretation( GDALRasterBandH );
804 CPLErr CPL_DLL CPL_STDCALL
805 GDALSetRasterColorInterpretation( GDALRasterBandH, GDALColorInterp );
806 GDALColorTableH CPL_DLL CPL_STDCALL GDALGetRasterColorTable( GDALRasterBandH );
807 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterColorTable( GDALRasterBandH, GDALColorTableH );
808 int CPL_DLL CPL_STDCALL GDALHasArbitraryOverviews( GDALRasterBandH );
809 int CPL_DLL CPL_STDCALL GDALGetOverviewCount( GDALRasterBandH );
810 GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetOverview( GDALRasterBandH, int );
811 double CPL_DLL CPL_STDCALL GDALGetRasterNoDataValue( GDALRasterBandH, int * );
812 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterNoDataValue( GDALRasterBandH, double );
813 CPLErr CPL_DLL CPL_STDCALL GDALDeleteRasterNoDataValue( GDALRasterBandH );
814 char CPL_DLL ** CPL_STDCALL GDALGetRasterCategoryNames( GDALRasterBandH );
815 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterCategoryNames( GDALRasterBandH, CSLConstList );
816 double CPL_DLL CPL_STDCALL GDALGetRasterMinimum( GDALRasterBandH, int *pbSuccess );
817 double CPL_DLL CPL_STDCALL GDALGetRasterMaximum( GDALRasterBandH, int *pbSuccess );
818 CPLErr CPL_DLL CPL_STDCALL GDALGetRasterStatistics(
819 GDALRasterBandH, int bApproxOK, int bForce,
820 double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev );
821 CPLErr CPL_DLL CPL_STDCALL GDALComputeRasterStatistics(
822 GDALRasterBandH, int bApproxOK,
823 double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev,
824 GDALProgressFunc pfnProgress, void *pProgressData );
825 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterStatistics(
826 GDALRasterBandH hBand,
827 double dfMin, double dfMax, double dfMean, double dfStdDev );
828
829 const char CPL_DLL * CPL_STDCALL GDALGetRasterUnitType( GDALRasterBandH );
830 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterUnitType( GDALRasterBandH hBand, const char *pszNewValue );
831 double CPL_DLL CPL_STDCALL GDALGetRasterOffset( GDALRasterBandH, int *pbSuccess );
832 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterOffset( GDALRasterBandH hBand, double dfNewOffset);
833 double CPL_DLL CPL_STDCALL GDALGetRasterScale( GDALRasterBandH, int *pbSuccess );
834 CPLErr CPL_DLL CPL_STDCALL GDALSetRasterScale( GDALRasterBandH hBand, double dfNewOffset );
835 void CPL_DLL CPL_STDCALL
836 GDALComputeRasterMinMax( GDALRasterBandH hBand, int bApproxOK,
837 double adfMinMax[2] );
838 CPLErr CPL_DLL CPL_STDCALL GDALFlushRasterCache( GDALRasterBandH hBand );
839 CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram( GDALRasterBandH hBand,
840 double dfMin, double dfMax,
841 int nBuckets, int *panHistogram,
842 int bIncludeOutOfRange, int bApproxOK,
843 GDALProgressFunc pfnProgress,
844 void * pProgressData ) CPL_WARN_DEPRECATED("Use GDALGetRasterHistogramEx() instead");
845 CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogramEx( GDALRasterBandH hBand,
846 double dfMin, double dfMax,
847 int nBuckets, GUIntBig *panHistogram,
848 int bIncludeOutOfRange, int bApproxOK,
849 GDALProgressFunc pfnProgress,
850 void * pProgressData );
851 CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogram( GDALRasterBandH hBand,
852 double *pdfMin, double *pdfMax,
853 int *pnBuckets, int **ppanHistogram,
854 int bForce,
855 GDALProgressFunc pfnProgress,
856 void * pProgressData ) CPL_WARN_DEPRECATED("Use GDALGetDefaultHistogramEx() instead");
857 CPLErr CPL_DLL CPL_STDCALL GDALGetDefaultHistogramEx( GDALRasterBandH hBand,
858 double *pdfMin, double *pdfMax,
859 int *pnBuckets, GUIntBig **ppanHistogram,
860 int bForce,
861 GDALProgressFunc pfnProgress,
862 void * pProgressData );
863 CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram( GDALRasterBandH hBand,
864 double dfMin, double dfMax,
865 int nBuckets, int *panHistogram ) CPL_WARN_DEPRECATED("Use GDALSetDefaultHistogramEx() instead");
866 CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogramEx( GDALRasterBandH hBand,
867 double dfMin, double dfMax,
868 int nBuckets, GUIntBig *panHistogram );
869 int CPL_DLL CPL_STDCALL
870 GDALGetRandomRasterSample( GDALRasterBandH, int, float * );
871 GDALRasterBandH CPL_DLL CPL_STDCALL
872 GDALGetRasterSampleOverview( GDALRasterBandH, int );
873 GDALRasterBandH CPL_DLL CPL_STDCALL
874 GDALGetRasterSampleOverviewEx( GDALRasterBandH, GUIntBig );
875 CPLErr CPL_DLL CPL_STDCALL GDALFillRaster( GDALRasterBandH hBand,
876 double dfRealValue, double dfImaginaryValue );
877 CPLErr CPL_DLL CPL_STDCALL
878 GDALComputeBandStats( GDALRasterBandH hBand, int nSampleStep,
879 double *pdfMean, double *pdfStdDev,
880 GDALProgressFunc pfnProgress,
881 void *pProgressData );
882 CPLErr CPL_DLL GDALOverviewMagnitudeCorrection( GDALRasterBandH hBaseBand,
883 int nOverviewCount,
884 GDALRasterBandH *pahOverviews,
885 GDALProgressFunc pfnProgress,
886 void *pProgressData );
887
888 GDALRasterAttributeTableH CPL_DLL CPL_STDCALL GDALGetDefaultRAT(
889 GDALRasterBandH hBand );
890 CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultRAT( GDALRasterBandH,
891 GDALRasterAttributeTableH );
892 CPLErr CPL_DLL CPL_STDCALL GDALAddDerivedBandPixelFunc( const char *pszName,
893 GDALDerivedPixelFunc pfnPixelFunc );
894
895 GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetMaskBand( GDALRasterBandH hBand );
896 int CPL_DLL CPL_STDCALL GDALGetMaskFlags( GDALRasterBandH hBand );
897 CPLErr CPL_DLL CPL_STDCALL
898 GDALCreateMaskBand( GDALRasterBandH hBand, int nFlags );
899
901 #define GMF_ALL_VALID 0x01
902
904 #define GMF_PER_DATASET 0x02
905
907 #define GMF_ALPHA 0x04
908
910 #define GMF_NODATA 0x08
911
915 #define GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED 0x01
916
921 #define GDAL_DATA_COVERAGE_STATUS_DATA 0x02
922
928 #define GDAL_DATA_COVERAGE_STATUS_EMPTY 0x04
929
930 int CPL_DLL CPL_STDCALL GDALGetDataCoverageStatus( GDALRasterBandH hBand,
931 int nXOff, int nYOff,
932 int nXSize, int nYSize,
933 int nMaskFlagStop,
934 double* pdfDataPct );
935
936 /* ==================================================================== */
937 /* GDALAsyncReader */
938 /* ==================================================================== */
939
940 GDALAsyncStatusType CPL_DLL CPL_STDCALL
941 GDALARGetNextUpdatedRegion(GDALAsyncReaderH hARIO, double dfTimeout,
942 int* pnXBufOff, int* pnYBufOff,
943 int* pnXBufSize, int* pnYBufSize );
944 int CPL_DLL CPL_STDCALL GDALARLockBuffer(GDALAsyncReaderH hARIO,
945 double dfTimeout);
946 void CPL_DLL CPL_STDCALL GDALARUnlockBuffer(GDALAsyncReaderH hARIO);
947
948 /* -------------------------------------------------------------------- */
949 /* Helper functions. */
950 /* -------------------------------------------------------------------- */
951 int CPL_DLL CPL_STDCALL GDALGeneralCmdLineProcessor( int nArgc, char ***ppapszArgv,
952 int nOptions );
953 void CPL_DLL CPL_STDCALL GDALSwapWords( void *pData, int nWordSize, int nWordCount,
954 int nWordSkip );
955 void CPL_DLL CPL_STDCALL GDALSwapWordsEx( void *pData, int nWordSize, size_t nWordCount,
956 int nWordSkip );
957
958 void CPL_DLL CPL_STDCALL
959 GDALCopyWords( const void * CPL_RESTRICT pSrcData,
960 GDALDataType eSrcType, int nSrcPixelOffset,
961 void * CPL_RESTRICT pDstData,
962 GDALDataType eDstType, int nDstPixelOffset,
963 int nWordCount );
964
965 void CPL_DLL
966 GDALCopyBits( const GByte *pabySrcData, int nSrcOffset, int nSrcStep,
967 GByte *pabyDstData, int nDstOffset, int nDstStep,
968 int nBitCount, int nStepCount );
969
970 int CPL_DLL CPL_STDCALL GDALLoadWorldFile( const char *, double * );
971 int CPL_DLL CPL_STDCALL GDALReadWorldFile( const char *, const char *,
972 double * );
973 int CPL_DLL CPL_STDCALL GDALWriteWorldFile( const char *, const char *,
974 double * );
975 int CPL_DLL CPL_STDCALL GDALLoadTabFile( const char *, double *, char **,
976 int *, GDAL_GCP ** );
977 int CPL_DLL CPL_STDCALL GDALReadTabFile( const char *, double *, char **,
978 int *, GDAL_GCP ** );
979 int CPL_DLL CPL_STDCALL GDALLoadOziMapFile( const char *, double *, char **,
980 int *, GDAL_GCP ** );
981 int CPL_DLL CPL_STDCALL GDALReadOziMapFile( const char *, double *,
982 char **, int *, GDAL_GCP ** );
983
984 const char CPL_DLL * CPL_STDCALL GDALDecToDMS( double, const char *, int );
985 double CPL_DLL CPL_STDCALL GDALPackedDMSToDec( double );
986 double CPL_DLL CPL_STDCALL GDALDecToPackedDMS( double );
987
988 /* Note to developers : please keep this section in sync with ogr_core.h */
989
990 #ifndef GDAL_VERSION_INFO_DEFINED
991 #ifndef DOXYGEN_SKIP
992 #define GDAL_VERSION_INFO_DEFINED
993 #endif
994 const char CPL_DLL * CPL_STDCALL GDALVersionInfo( const char * );
995 #endif
996
997 #ifndef GDAL_CHECK_VERSION
998
999 int CPL_DLL CPL_STDCALL GDALCheckVersion( int nVersionMajor, int nVersionMinor,
1000 const char* pszCallingComponentName);
1001
1005 #define GDAL_CHECK_VERSION(pszCallingComponentName) \
1006 GDALCheckVersion(GDAL_VERSION_MAJOR, GDAL_VERSION_MINOR, pszCallingComponentName)
1007
1008 #endif
1009
1012 typedef struct
1013 {
1014 double dfLINE_OFF;
1015 double dfSAMP_OFF;
1016 double dfLAT_OFF;
1017 double dfLONG_OFF;
1018 double dfHEIGHT_OFF;
1020 double dfLINE_SCALE;
1021 double dfSAMP_SCALE;
1022 double dfLAT_SCALE;
1023 double dfLONG_SCALE;
1024 double dfHEIGHT_SCALE;
1026 double adfLINE_NUM_COEFF[20];
1027 double adfLINE_DEN_COEFF[20];
1028 double adfSAMP_NUM_COEFF[20];
1029 double adfSAMP_DEN_COEFF[20];
1031 double dfMIN_LONG;
1032 double dfMIN_LAT;
1033 double dfMAX_LONG;
1034 double dfMAX_LAT;
1035 } GDALRPCInfo;
1036
1037 int CPL_DLL CPL_STDCALL GDALExtractRPCInfo( CSLConstList, GDALRPCInfo * );
1038
1039 /* ==================================================================== */
1040 /* Color tables. */
1041 /* ==================================================================== */
1042
1044 typedef struct
1045 {
1047 short c1;
1048
1050 short c2;
1051
1053 short c3;
1054
1056 short c4;
1057 } GDALColorEntry;
1058
1059 GDALColorTableH CPL_DLL CPL_STDCALL GDALCreateColorTable( GDALPaletteInterp ) CPL_WARN_UNUSED_RESULT;
1060 void CPL_DLL CPL_STDCALL GDALDestroyColorTable( GDALColorTableH );
1061 GDALColorTableH CPL_DLL CPL_STDCALL GDALCloneColorTable( GDALColorTableH );
1062 GDALPaletteInterp CPL_DLL CPL_STDCALL GDALGetPaletteInterpretation( GDALColorTableH );
1063 int CPL_DLL CPL_STDCALL GDALGetColorEntryCount( GDALColorTableH );
1064 const GDALColorEntry CPL_DLL * CPL_STDCALL GDALGetColorEntry( GDALColorTableH, int );
1065 int CPL_DLL CPL_STDCALL GDALGetColorEntryAsRGB( GDALColorTableH, int, GDALColorEntry *);
1066 void CPL_DLL CPL_STDCALL GDALSetColorEntry( GDALColorTableH, int, const GDALColorEntry * );
1067 void CPL_DLL CPL_STDCALL GDALCreateColorRamp( GDALColorTableH hTable,
1068 int nStartIndex, const GDALColorEntry *psStartColor,
1069 int nEndIndex, const GDALColorEntry *psEndColor );
1070
1071 /* ==================================================================== */
1072 /* Raster Attribute Table */
1073 /* ==================================================================== */
1074
1076 typedef enum { GFT_Integer, GFT_Real, GFT_String
1080 } GDALRATFieldType;
1081
1083 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
1103 } GDALRATFieldUsage;
1104
1105 GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
1106 GDALCreateRasterAttributeTable(void) CPL_WARN_UNUSED_RESULT;
1107 void CPL_DLL CPL_STDCALL GDALDestroyRasterAttributeTable(
1108 GDALRasterAttributeTableH );
1109
1110 int CPL_DLL CPL_STDCALL GDALRATGetColumnCount( GDALRasterAttributeTableH );
1111
1112 const char CPL_DLL * CPL_STDCALL GDALRATGetNameOfCol(
1113 GDALRasterAttributeTableH, int );
1114 GDALRATFieldUsage CPL_DLL CPL_STDCALL GDALRATGetUsageOfCol(
1115 GDALRasterAttributeTableH, int );
1116 GDALRATFieldType CPL_DLL CPL_STDCALL GDALRATGetTypeOfCol(
1117 GDALRasterAttributeTableH, int );
1118
1119 int CPL_DLL CPL_STDCALL GDALRATGetColOfUsage( GDALRasterAttributeTableH,
1120 GDALRATFieldUsage );
1121 int CPL_DLL CPL_STDCALL GDALRATGetRowCount( GDALRasterAttributeTableH );
1122
1123 const char CPL_DLL * CPL_STDCALL GDALRATGetValueAsString(
1124 GDALRasterAttributeTableH, int, int);
1125 int CPL_DLL CPL_STDCALL GDALRATGetValueAsInt(
1126 GDALRasterAttributeTableH, int, int);
1127 double CPL_DLL CPL_STDCALL GDALRATGetValueAsDouble(
1128 GDALRasterAttributeTableH, int, int);
1129
1130 void CPL_DLL CPL_STDCALL GDALRATSetValueAsString( GDALRasterAttributeTableH, int, int,
1131 const char * );
1132 void CPL_DLL CPL_STDCALL GDALRATSetValueAsInt( GDALRasterAttributeTableH, int, int,
1133 int );
1134 void CPL_DLL CPL_STDCALL GDALRATSetValueAsDouble( GDALRasterAttributeTableH, int, int,
1135 double );
1136
1137 int CPL_DLL CPL_STDCALL GDALRATChangesAreWrittenToFile( GDALRasterAttributeTableH hRAT );
1138
1139 CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsDouble( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
1140 int iField, int iStartRow, int iLength, double *pdfData );
1141 CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsInteger( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
1142 int iField, int iStartRow, int iLength, int *pnData);
1143 CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsString( GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
1144 int iField, int iStartRow, int iLength, CSLConstList papszStrList);
1145
1146 void CPL_DLL CPL_STDCALL GDALRATSetRowCount( GDALRasterAttributeTableH,
1147 int );
1148 CPLErr CPL_DLL CPL_STDCALL GDALRATCreateColumn( GDALRasterAttributeTableH,
1149 const char *,
1150 GDALRATFieldType,
1151 GDALRATFieldUsage );
1152 CPLErr CPL_DLL CPL_STDCALL GDALRATSetLinearBinning( GDALRasterAttributeTableH,
1153 double, double );
1154 int CPL_DLL CPL_STDCALL GDALRATGetLinearBinning( GDALRasterAttributeTableH,
1155 double *, double * );
1156 CPLErr CPL_DLL CPL_STDCALL GDALRATInitializeFromColorTable(
1157 GDALRasterAttributeTableH, GDALColorTableH );
1158 GDALColorTableH CPL_DLL CPL_STDCALL GDALRATTranslateToColorTable(
1159 GDALRasterAttributeTableH, int nEntryCount );
1160 void CPL_DLL CPL_STDCALL GDALRATDumpReadable( GDALRasterAttributeTableH,
1161 FILE * );
1162 GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
1163 GDALRATClone( GDALRasterAttributeTableH );
1164
1165 void CPL_DLL* CPL_STDCALL
1166 GDALRATSerializeJSON( GDALRasterAttributeTableH ) CPL_WARN_UNUSED_RESULT;
1167
1168 int CPL_DLL CPL_STDCALL GDALRATGetRowOfValue( GDALRasterAttributeTableH, double );
1169
1170 /* ==================================================================== */
1171 /* GDAL Cache Management */
1172 /* ==================================================================== */
1173
1174 void CPL_DLL CPL_STDCALL GDALSetCacheMax( int nBytes );
1175 int CPL_DLL CPL_STDCALL GDALGetCacheMax(void);
1176 int CPL_DLL CPL_STDCALL GDALGetCacheUsed(void);
1177 void CPL_DLL CPL_STDCALL GDALSetCacheMax64( GIntBig nBytes );
1178 GIntBig CPL_DLL CPL_STDCALL GDALGetCacheMax64(void);
1179 GIntBig CPL_DLL CPL_STDCALL GDALGetCacheUsed64(void);
1180
1181 int CPL_DLL CPL_STDCALL GDALFlushCacheBlock(void);
1182
1183 /* ==================================================================== */
1184 /* GDAL virtual memory */
1185 /* ==================================================================== */
1186
1187 CPLVirtualMem CPL_DLL* GDALDatasetGetVirtualMem( GDALDatasetH hDS,
1188 GDALRWFlag eRWFlag,
1189 int nXOff, int nYOff,
1190 int nXSize, int nYSize,
1191 int nBufXSize, int nBufYSize,
1192 GDALDataType eBufType,
1193 int nBandCount, int* panBandMap,
1194 int nPixelSpace,
1195 GIntBig nLineSpace,
1196 GIntBig nBandSpace,
1197 size_t nCacheSize,
1198 size_t nPageSizeHint,
1199 int bSingleThreadUsage,
1200 CSLConstList papszOptions ) CPL_WARN_UNUSED_RESULT;
1201
1202 CPLVirtualMem CPL_DLL* GDALRasterBandGetVirtualMem( GDALRasterBandH hBand,
1203 GDALRWFlag eRWFlag,
1204 int nXOff, int nYOff,
1205 int nXSize, int nYSize,
1206 int nBufXSize, int nBufYSize,
1207 GDALDataType eBufType,
1208 int nPixelSpace,
1209 GIntBig nLineSpace,
1210 size_t nCacheSize,
1211 size_t nPageSizeHint,
1212 int bSingleThreadUsage,
1213 CSLConstList papszOptions ) CPL_WARN_UNUSED_RESULT;
1214
1215 CPLVirtualMem CPL_DLL* GDALGetVirtualMemAuto( GDALRasterBandH hBand,
1216 GDALRWFlag eRWFlag,
1217 int *pnPixelSpace,
1218 GIntBig *pnLineSpace,
1219 CSLConstList papszOptions ) CPL_WARN_UNUSED_RESULT;
1220
1222 typedef enum
1223 {
1225 GTO_TIP,
1227 GTO_BIT,
1229 GTO_BSQ
1230 } GDALTileOrganization;
1231
1232 CPLVirtualMem CPL_DLL* GDALDatasetGetTiledVirtualMem( GDALDatasetH hDS,
1233 GDALRWFlag eRWFlag,
1234 int nXOff, int nYOff,
1235 int nXSize, int nYSize,
1236 int nTileXSize, int nTileYSize,
1237 GDALDataType eBufType,
1238 int nBandCount, int* panBandMap,
1239 GDALTileOrganization eTileOrganization,
1240 size_t nCacheSize,
1241 int bSingleThreadUsage,
1242 CSLConstList papszOptions ) CPL_WARN_UNUSED_RESULT;
1243
1244 CPLVirtualMem CPL_DLL* GDALRasterBandGetTiledVirtualMem( GDALRasterBandH hBand,
1245 GDALRWFlag eRWFlag,
1246 int nXOff, int nYOff,
1247 int nXSize, int nYSize,
1248 int nTileXSize, int nTileYSize,
1249 GDALDataType eBufType,
1250 size_t nCacheSize,
1251 int bSingleThreadUsage,
1252 CSLConstList papszOptions ) CPL_WARN_UNUSED_RESULT;
1253
1254 /* ==================================================================== */
1255 /* VRTPansharpenedDataset class. */
1256 /* ==================================================================== */
1257
1258 GDALDatasetH CPL_DLL GDALCreatePansharpenedVRT( const char* pszXML,
1259 GDALRasterBandH hPanchroBand,
1260 int nInputSpectralBands,
1261 GDALRasterBandH* pahInputSpectralBands ) CPL_WARN_UNUSED_RESULT;
1262
1263 /* =================================================================== */
1264 /* Misc API */
1265 /* ==================================================================== */
1266
1267 CPLXMLNode CPL_DLL* GDALGetJPEG2000Structure(const char* pszFilename,
1268 CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
1269
1270 CPL_C_END
1271
1272 #endif /* ndef GDAL_H_INCLUDED */
GDALRATGetValueAsDouble
double GDALRATGetValueAsDouble(GDALRasterAttributeTableH, int, int)
Fetch field value as a double.
Definition: gdal_rat.cpp:1573
GDALRATGetColOfUsage
int GDALRATGetColOfUsage(GDALRasterAttributeTableH, GDALRATFieldUsage)
Fetch column index for given usage.
Definition: gdal_rat.cpp:1359
GDALGetRasterStatistics
CPLErr GDALGetRasterStatistics(GDALRasterBandH, int bApproxOK, int bForce, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev)
Fetch image statistics.
Definition: gdalrasterband.cpp:3829
GCI_SaturationBand
Definition: gdal.h:200
OGRLayerH
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition: ogr_api.h:508
GDALOpenEx
GDALDatasetH GDALOpenEx(const char *pszFilename, unsigned int nOpenFlags, const char *const *papszAllowedDrivers, const char *const *papszOpenOptions, const char *const *papszSiblingFiles) CPL_WARN_UNUSED_RESULT
Open a raster or vector file as a GDALDataset.
Definition: gdaldataset.cpp:2665
GA_Update
Definition: gdal.h:115
GDALSetProjection
CPLErr GDALSetProjection(GDALDatasetH, const char *)
Set the projection reference string for this dataset.
Definition: gdaldataset.cpp:914
GDALRPCInfo::dfMIN_LAT
double dfMIN_LAT
Definition: gdal.h:1032
GFU_Red
Definition: gdal.h:1090
GDALGetColorInterpretationByName
GDALColorInterp GDALGetColorInterpretationByName(const char *pszName)
Get color interpretation by symbolic name.
Definition: gdal_misc.cpp:983
GDALReadBlock
CPLErr GDALReadBlock(GDALRasterBandH, int, int, void *) CPL_WARN_UNUSED_RESULT
Read a block of image data efficiently.
Definition: gdalrasterband.cpp:582
GDALDataType
GDALDataType
Definition: gdal.h:60
GDALComputeRasterStatistics
CPLErr GDALComputeRasterStatistics(GDALRasterBandH, int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData)
Compute image statistics.
Definition: gdalrasterband.cpp:5258
GFU_Generic
Definition: gdal.h:1084
GDALGetOverviewCount
int GDALGetOverviewCount(GDALRasterBandH)
Return the number of overview layers available.
Definition: gdalrasterband.cpp:2216
GDT_CInt32
Definition: gdal.h:72
GDAL_GCP::pszInfo
char * pszInfo
Informational message or "".
Definition: gdal.h:566
GFU_MaxCount
Definition: gdal.h:1102
GDALWriteBlock
CPLErr GDALWriteBlock(GDALRasterBandH, int, int, void *) CPL_WARN_UNUSED_RESULT
Write a block of image data efficiently.
Definition: gdalrasterband.cpp:738
CPLXMLNode
Document node structure.
Definition: cpl_minixml.h:66
GFU_Blue
Definition: gdal.h:1092
GDALDatasetReleaseResultSet
void GDALDatasetReleaseResultSet(GDALDatasetH, OGRLayerH)
Release results of ExecuteSQL().
Definition: gdaldataset.cpp:3632
GDALRATValuesIOAsString
CPLErr GDALRATValuesIOAsString(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField, int iStartRow, int iLength, CSLConstList papszStrList)
Read or Write a block of strings to/from the Attribute Table.
Definition: gdal_rat.cpp:288
cpl_minixml.h
Definitions for CPL mini XML Parser/Serializer.
GDAL_GCP::dfGCPPixel
double dfGCPPixel
Pixel (x) location of GCP on raster.
Definition: gdal.h:569
GDALPackedDMSToDec
double GDALPackedDMSToDec(double)
Convert a packed DMS value (DDDMMMSSS.SS) into decimal degrees.
Definition: gdal_misc.cpp:2346
GFU_BlueMin
Definition: gdal.h:1096
GTO_BSQ
Definition: gdal.h:1229
GDALDatasetAdviseRead
CPLErr GDALDatasetAdviseRead(GDALDatasetH hDS, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, int nBXSize, int nBYSize, GDALDataType eBDataType, int nBandCount, int *panBandCount, CSLConstList papszOptions)
Advise driver of upcoming read requests.
Definition: gdaldataset.cpp:2341
GDALDataTypeUnion
GDALDataType GDALDataTypeUnion(GDALDataType, GDALDataType)
Return the smallest data type that can fully express both input data types.
Definition: gdal_misc.cpp:130
GFT_Real
Definition: gdal.h:1078
GCI_LightnessBand
Definition: gdal.h:201
GDT_Byte
Definition: gdal.h:62
GDALCreateDatasetMaskBand
CPLErr GDALCreateDatasetMaskBand(GDALDatasetH hDS, int nFlags)
Adds a mask band to the dataset.
Definition: gdaldataset.cpp:2513
GDALCreateCopy
GDALDatasetH GDALCreateCopy(GDALDriverH, const char *, GDALDatasetH, int, CSLConstList, GDALProgressFunc, void *) CPL_WARN_UNUSED_RESULT
Create a copy of a dataset.
Definition: gdaldriver.cpp:938
GPI_RGB
Definition: gdal.h:219
GDALDecToDMS
const char * GDALDecToDMS(double, const char *, int)
Translate a decimal degrees value to a DMS string with hemisphere.
Definition: gdal_misc.cpp:2329
GDALGetDriver
GDALDriverH GDALGetDriver(int)
Fetch driver by index.
Definition: gdaldrivermanager.cpp:398
GDALSetRasterOffset
CPLErr GDALSetRasterOffset(GDALRasterBandH hBand, double dfNewOffset)
Set scaling offset.
Definition: gdalrasterband.cpp:2504
GDALAdjustValueToDataType
double GDALAdjustValueToDataType(GDALDataType eDT, double dfValue, int *pbClamped, int *pbRounded)
Adjust a value to the output data type.
Definition: gdal_misc.cpp:685
GDALGetColorEntryAsRGB
int GDALGetColorEntryAsRGB(GDALColorTableH, int, GDALColorEntry *)
Fetch a table entry in RGB format.
Definition: gdalcolortable.cpp:184
GDALSetDefaultHistogramEx
CPLErr GDALSetDefaultHistogramEx(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram)
Set default histogram.
Definition: gdalrasterband.cpp:5801
GDALCloneColorTable
GDALColorTableH GDALCloneColorTable(GDALColorTableH)
Make a copy of a color table.
Definition: gdalcolortable.cpp:280
cpl_port.h
Core portability definitions for CPL.
GDALGetColorEntry
const GDALColorEntry * GDALGetColorEntry(GDALColorTableH, int)
Fetch a color entry from table.
Definition: gdalcolortable.cpp:135
GDALAsyncReaderH
void * GDALAsyncReaderH
Opaque type used for the C bindings of the C++ GDALAsyncReader class.
Definition: gdal.h:270
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:341
GDALRasterIOExtraArg::bFloatingPointWindowValidity
int bFloatingPointWindowValidity
Definition: gdal.h:164
GDALReadTabFile
int GDALReadTabFile(const char *, double *, char **, int *, GDAL_GCP **)
Helper function for translator implementer wanting support for MapInfo .tab files.
Definition: gdal_misc.cpp:1758
GDALDatasetCopyWholeRaster
CPLErr GDALDatasetCopyWholeRaster(GDALDatasetH hSrcDS, GDALDatasetH hDstDS, CSLConstList papszOptions, GDALProgressFunc pfnProgress, void *pProgressData) CPL_WARN_UNUSED_RESULT
Copy all dataset raster data.
Definition: rasterio.cpp:4301
GDALRATGetColumnCount
int GDALRATGetColumnCount(GDALRasterAttributeTableH)
Fetch table column count.
Definition: gdal_rat.cpp:1197
GCI_YCbCr_YBand
Definition: gdal.h:206
GDALRATTranslateToColorTable
GDALColorTableH GDALRATTranslateToColorTable(GDALRasterAttributeTableH, int nEntryCount)
Translate to a color table.
Definition: gdal_rat.cpp:1015
GDALBeginAsyncReader
GDALAsyncReaderH GDALBeginAsyncReader(GDALDatasetH hDS, int nXOff, int nYOff, int nXSize, int nYSize, void *pBuf, int nBufXSize, int nBufYSize, GDALDataType eBufType, int nBandCount, int *panBandMap, int nPixelSpace, int nLineSpace, int nBandSpace, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT
Sets up an asynchronous data request.
Definition: gdaldataset.cpp:3343
GDALGetColorEntryCount
int GDALGetColorEntryCount(GDALColorTableH)
Get number of color entries in table.
Definition: gdalcolortable.cpp:317
GDALIdentifyDriverEx
GDALDriverH GDALIdentifyDriverEx(const char *pszFilename, unsigned int nIdentifyFlags, const char *const *papszAllowedDrivers, const char *const *papszFileList)
Identify the driver that can open a raster file.
Definition: gdaldriver.cpp:1990
GDALAllRegister
void GDALAllRegister(void)
Register all known configured GDAL drivers.
Definition: gdalallregister.cpp:62
GCI_AlphaBand
Definition: gdal.h:198
GDALGCPsToGeoTransform
int GDALGCPsToGeoTransform(int nGCPCount, const GDAL_GCP *pasGCPs, double *padfGeoTransform, int bApproxOK) CPL_WARN_UNUSED_RESULT
Generate Geotransform from GCPs.
Definition: gdal_misc.cpp:2404
GDALSetRasterUnitType
CPLErr GDALSetRasterUnitType(GDALRasterBandH hBand, const char *pszNewValue)
Set unit type.
Definition: gdalrasterband.cpp:2703
GDALGetAsyncStatusTypeByName
GDALAsyncStatusType GDALGetAsyncStatusTypeByName(const char *)
Get AsyncStatusType by symbolic name.
Definition: gdal_misc.cpp:790
GDALCreatePansharpenedVRT
GDALDatasetH GDALCreatePansharpenedVRT(const char *pszXML, GDALRasterBandH hPanchroBand, int nInputSpectralBands, GDALRasterBandH *pahInputSpectralBands) CPL_WARN_UNUSED_RESULT
Create a virtual pansharpened dataset.
Definition: vrtpansharpened.cpp:93
GDALRATSerializeJSON
void * GDALRATSerializeJSON(GDALRasterAttributeTableH) CPL_WARN_UNUSED_RESULT
Serialize Raster Attribute Table in Json format.
Definition: gdal_rat.cpp:2055
GDALBuildOverviews
CPLErr GDALBuildOverviews(GDALDatasetH, const char *, int, int *, int, int *, GDALProgressFunc, void *) CPL_WARN_UNUSED_RESULT
Build raster overview(s)
Definition: gdaldataset.cpp:1532
GF_Write
Definition: gdal.h:121
GDALSetMetadata
CPLErr GDALSetMetadata(GDALMajorObjectH, CSLConstList, const char *)
Set metadata.
Definition: gdalmajorobject.cpp:318
GFU_RedMin
Definition: gdal.h:1094
CPL_RESTRICT
#define CPL_RESTRICT
restrict keyword to declare that pointers do not alias
Definition: cpl_port.h:976
GDALGetRasterHistogram
CPLErr GDALGetRasterHistogram(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, int *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc pfnProgress, void *pProgressData) CPL_WARN_DEPRECATED("Use GDALGetRasterHistogramEx() instead")
Compute raster histogram.
Definition: gdalrasterband.cpp:3347
GDALSetGCPs
CPLErr GDALSetGCPs(GDALDatasetH, int, const GDAL_GCP *, const char *)
Assign GCPs.
Definition: gdaldataset.cpp:1436
GDALRasterIO
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) CPL_WARN_UNUSED_RESULT
Read/write a region of image data for this band.
Definition: gdalrasterband.cpp:411
GDALRATFieldType
GDALRATFieldType
Field type of raster attribute table.
Definition: gdal.h:1076
GDT_UInt16
Definition: gdal.h:63
GDT_Int32
Definition: gdal.h:66
GDALGetDriverHelpTopic
const char * GDALGetDriverHelpTopic(GDALDriverH)
Return the URL to the help that describes the driver.
Definition: gdaldriver.cpp:1454
GDALDeregisterDriver
void GDALDeregisterDriver(GDALDriverH)
Deregister the passed driver.
Definition: gdaldrivermanager.cpp:570
GDALGetProjectionRef
const char * GDALGetProjectionRef(GDALDatasetH)
Fetch the projection definition string for this dataset.
Definition: gdaldataset.cpp:868
GDALAddDerivedBandPixelFunc
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:1020
GDALDatasetSetStyleTable
void GDALDatasetSetStyleTable(GDALDatasetH, OGRStyleTableH)
Set dataset style table.
Definition: gdaldataset.cpp:4091
GDALOpenShared
GDALDatasetH GDALOpenShared(const char *, GDALAccess) CPL_WARN_UNUSED_RESULT
Open a raster file as a GDALDataset.
Definition: gdaldataset.cpp:3034
GFU_Min
Definition: gdal.h:1087
GFU_BlueMax
Definition: gdal.h:1100
GDALSetRasterScale
CPLErr GDALSetRasterScale(GDALRasterBandH hBand, double dfNewOffset)
Set scaling ratio.
Definition: gdalrasterband.cpp:2608
GDALDatasetGetLayerByName
OGRLayerH GDALDatasetGetLayerByName(GDALDatasetH, const char *)
Fetch a layer by name.
Definition: gdaldataset.cpp:3713
GDALRPCInfo::dfLONG_SCALE
double dfLONG_SCALE
Definition: gdal.h:1023
GDALCheckVersion
int GDALCheckVersion(int nVersionMajor, int nVersionMinor, const char *pszCallingComponentName)
Return TRUE if GDAL library version at runtime matches nVersionMajor.nVersionMinor.
Definition: gdal_misc.cpp:2305
GDALRATGetValueAsInt
int GDALRATGetValueAsInt(GDALRasterAttributeTableH, int, int)
Fetch field value as a integer.
Definition: gdal_rat.cpp:1514
GDALHasArbitraryOverviews
int GDALHasArbitraryOverviews(GDALRasterBandH)
Check for arbitrary overviews.
Definition: gdalrasterband.cpp:2176
GDALGetDefaultRAT
GDALRasterAttributeTableH GDALGetDefaultRAT(GDALRasterBandH hBand)
Fetch default Raster Attribute Table.
Definition: gdalrasterband.cpp:5845
GDALComputeRasterMinMax
void GDALComputeRasterMinMax(GDALRasterBandH hBand, int bApproxOK, double adfMinMax[2])
Compute the min/max values for a band.
Definition: gdalrasterband.cpp:5709
GDALSetRasterColorInterpretation
CPLErr GDALSetRasterColorInterpretation(GDALRasterBandH, GDALColorInterp)
Set color interpretation of a band.
Definition: gdalrasterband.cpp:2037
GDALGetDriverByName
GDALDriverH GDALGetDriverByName(const char *)
Fetch a driver based on the short name.
Definition: gdaldrivermanager.cpp:614
GDALGetDataTypeSize
int GDALGetDataTypeSize(GDALDataType)
Get data type size in bits.
Definition: gdal_misc.cpp:372
GFU_RedMax
Definition: gdal.h:1098
GDALRIOResampleAlg
GDALRIOResampleAlg
RasterIO() resampling method.
Definition: gdal.h:128
GDALDataTypeIsConversionLossy
int GDALDataTypeIsConversionLossy(GDALDataType eTypeFrom, GDALDataType eTypeTo)
Is conversion from eTypeFrom to eTypeTo potentially lossy.
Definition: gdal_misc.cpp:502
GDALGetDriverCreationOptionList
const char * GDALGetDriverCreationOptionList(GDALDriverH)
Return the list of creation options of the driver.
Definition: gdaldriver.cpp:1479
GDALExtractRPCInfo
int GDALExtractRPCInfo(CSLConstList, GDALRPCInfo *)
Extract RPC info from metadata, and apply to an RPCInfo structure.
Definition: gdal_misc.cpp:3401
GDALRWFlag
GDALRWFlag
Definition: gdal.h:119
GDALRPCInfo::dfMIN_LONG
double dfMIN_LONG
Definition: gdal.h:1031
GDALRasterIOExtraArg::nVersion
int nVersion
Definition: gdal.h:150
GDALGeneralCmdLineProcessor
int GDALGeneralCmdLineProcessor(int nArgc, char ***ppapszArgv, int nOptions)
General utility option processing.
Definition: gdal_misc.cpp:2856
GDALDerivedPixelFunc
CPLErr(* GDALDerivedPixelFunc)(void **papoSources, int nSources, void *pData, int nBufXSize, int nBufYSize, GDALDataType eSrcType, GDALDataType eBufType, int nPixelSpace, int nLineSpace)
Type of functions to pass to GDALAddDerivedBandPixelFunc.
Definition: gdal.h:766
GDALDatasetH
void * GDALDatasetH
Opaque type used for the C bindings of the C++ GDALDataset class.
Definition: gdal.h:255
GDALGetActualBlockSize
CPLErr GDALGetActualBlockSize(GDALRasterBandH, int nXBlockOff, int nYBlockOff, int *pnXValid, int *pnYValid)
Retrieve the actual block size for a given block offset.
Definition: gdalrasterband.cpp:813
GByte
unsigned char GByte
Unsigned byte type.
Definition: cpl_port.h:213
GDALAddBand
CPLErr GDALAddBand(GDALDatasetH hDS, GDALDataType eType, CSLConstList papszOptions)
Add a band to a dataset.
Definition: gdaldataset.cpp:600
GDALColorEntry
Color tuple.
Definition: gdal.h:1044
GDALDatasetStartTransaction
OGRErr GDALDatasetStartTransaction(GDALDatasetH hDS, int bForce)
For datasources which support transactions, StartTransaction creates a transaction.
Definition: gdaldataset.cpp:6568
GCI_YellowBand
Definition: gdal.h:204
GDALDestroyDriverManager
void GDALDestroyDriverManager(void)
Destroy the driver manager.
Definition: gdaldrivermanager.cpp:880
GDALRATGetValueAsString
const char * GDALRATGetValueAsString(GDALRasterAttributeTableH, int, int)
Fetch field value as a string.
Definition: gdal_rat.cpp:1455
GDALRPCInfo
Structure to store Rational Polynomial Coefficients / Rigorous Projection Model.
Definition: gdal.h:1012
GDALRATSetValueAsString
void GDALRATSetValueAsString(GDALRasterAttributeTableH, int, int, const char *)
Set field value from string.
Definition: gdal_rat.cpp:1679
GDALDataTypeIsComplex
int GDALDataTypeIsComplex(GDALDataType)
Is data type complex?
Definition: gdal_misc.cpp:390
GDALGetDriverLongName
const char * GDALGetDriverLongName(GDALDriverH)
Return the long name of a driver.
Definition: gdaldriver.cpp:1423
GDALRasterBandH
void * GDALRasterBandH
Opaque type used for the C bindings of the C++ GDALRasterBand class.
Definition: gdal.h:258
GDALGetRasterCategoryNames
char ** GDALGetRasterCategoryNames(GDALRasterBandH)
Fetch the list of category names for this raster.
Definition: gdalrasterband.cpp:1547
GDALGetPaletteInterpretationName
const char * GDALGetPaletteInterpretationName(GDALPaletteInterp)
Get name of palette interpretation.
Definition: gdal_misc.cpp:864
GDALDatasetCreateLayer
OGRLayerH GDALDatasetCreateLayer(GDALDatasetH, const char *, OGRSpatialReferenceH, OGRwkbGeometryType, CSLConstList)
This function attempts to create a new layer on the dataset with the indicated name, coordinate system, geometry type.
Definition: gdaldataset.cpp:3901
GDALRATClone
GDALRasterAttributeTableH GDALRATClone(GDALRasterAttributeTableH)
Copy Raster Attribute Table.
Definition: gdal_rat.cpp:2036
GDALRasterBandCopyWholeRaster
CPLErr GDALRasterBandCopyWholeRaster(GDALRasterBandH hSrcBand, GDALRasterBandH hDstBand, const char *const *constpapszOptions, GDALProgressFunc pfnProgress, void *pProgressData) CPL_WARN_UNUSED_RESULT
Copy a whole raster band.
Definition: rasterio.cpp:4628
GDT_Unknown
Definition: gdal.h:61
GFU_MinMax
Definition: gdal.h:1089
GFU_PixelCount
Definition: gdal.h:1085
GDALRPCInfo::dfHEIGHT_SCALE
double dfHEIGHT_SCALE
Definition: gdal.h:1024
GDALRATInitializeFromColorTable
CPLErr GDALRATInitializeFromColorTable(GDALRasterAttributeTableH, GDALColorTableH)
Initialize from color table.
Definition: gdal_rat.cpp:909
GDALRPCInfo::dfMAX_LAT
double dfMAX_LAT
Definition: gdal.h:1034
GDALFlushCache
void GDALFlushCache(GDALDatasetH hDS)
Flush all write cached data to disk.
Definition: gdaldataset.cpp:470
GDALRasterBandGetVirtualMem
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, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT
Create a CPLVirtualMem object from a GDAL raster band object.
Definition: gdalvirtualmem.cpp:1078
GDALGetInternalHandle
void * GDALGetInternalHandle(GDALDatasetH, const char *)
Fetch a format specific internally meaningful handle.
Definition: gdaldataset.cpp:1071
GDALGetRasterCount
int GDALGetRasterCount(GDALDatasetH)
Fetch the number of raster bands on this dataset.
Definition: gdaldataset.cpp:826
GDALGetDescription
const char * GDALGetDescription(GDALMajorObjectH)
Fetch object description.
Definition: gdalmajorobject.cpp:95
cpl_virtualmem.h
Virtual memory management.
GDALGetMaskBand
GDALRasterBandH GDALGetMaskBand(GDALRasterBandH hBand)
Return the mask band associated with the band.
Definition: gdalrasterband.cpp:6138
GCI_GreenBand
Definition: gdal.h:196
GDALRATChangesAreWrittenToFile
int GDALRATChangesAreWrittenToFile(GDALRasterAttributeTableH hRAT)
Determine whether changes made to this RAT are reflected directly in the dataset. ...
Definition: gdal_rat.cpp:1850
GDALRATGetUsageOfCol
GDALRATFieldUsage GDALRATGetUsageOfCol(GDALRasterAttributeTableH, int)
Fetch column usage value.
Definition: gdal_rat.cpp:1278
GTO_TIP
Definition: gdal.h:1225
GDALColorEntry::c1
short c1
Definition: gdal.h:1047
GRIORA_Lanczos
Definition: gdal.h:134
GDALGetCacheMax64
GIntBig GDALGetCacheMax64(void)
Get maximum cache memory.
Definition: gdalrasterblock.cpp:239
GDALSetCacheMax
void GDALSetCacheMax(int nBytes)
Set maximum cache memory.
Definition: gdalrasterblock.cpp:120
GDALColorEntry::c3
short c3
Definition: gdal.h:1053
CPLVirtualMem
struct CPLVirtualMem CPLVirtualMem
Opaque type that represents a virtual memory mapping.
Definition: cpl_virtualmem.h:62
GDALApplyGeoTransform
void GDALApplyGeoTransform(double *, double, double, double *, double *)
Apply GeoTransform to x/y coordinate.
Definition: gdaltransformer.cpp:3255
GDALRegisterDriver
int GDALRegisterDriver(GDALDriverH)
Register a driver for use.
Definition: gdaldrivermanager.cpp:512
GDT_CFloat64
Definition: gdal.h:75
GDALSetMetadataItem
CPLErr GDALSetMetadataItem(GDALMajorObjectH, const char *, const char *, const char *)
Set single metadata item.
Definition: gdalmajorobject.cpp:415
GDALGetOpenDatasets
void GDALGetOpenDatasets(GDALDatasetH **hDS, int *pnCount)
Fetch all open GDAL dataset handles.
Definition: gdaldataset.cpp:2203
GDALGetRasterColorInterpretation
GDALColorInterp GDALGetRasterColorInterpretation(GDALRasterBandH)
How should this band be interpreted as color?
Definition: gdalrasterband.cpp:1988
GDALRPCInfo::dfLAT_OFF
double dfLAT_OFF
Definition: gdal.h:1016
GDALGetAsyncStatusTypeName
const char * GDALGetAsyncStatusTypeName(GDALAsyncStatusType)
Get name of AsyncStatus data type.
Definition: gdal_misc.cpp:825
GDALVersionInfo
const char * GDALVersionInfo(const char *)
Get runtime version information.
Definition: gdal_misc.cpp:2183
GDALDataTypeIsFloating
int GDALDataTypeIsFloating(GDALDataType)
Is data type floating? (might be complex)
Definition: gdal_misc.cpp:418
GDAL_GCP::dfGCPY
double dfGCPY
Y position of GCP in georeferenced space.
Definition: gdal.h:577
GRIORA_Mode
Definition: gdal.h:137
GDALRATGetLinearBinning
int GDALRATGetLinearBinning(GDALRasterAttributeTableH, double *, double *)
Get linear binning information.
Definition: gdal_rat.cpp:549
GDALCreateColorRamp
void GDALCreateColorRamp(GDALColorTableH hTable, int nStartIndex, const GDALColorEntry *psStartColor, int nEndIndex, const GDALColorEntry *psEndColor)
Create color ramp.
Definition: gdalcolortable.cpp:447
GDALInitGCPs
void GDALInitGCPs(int, GDAL_GCP *)
Initialize an array of GCPs.
Definition: gdal_misc.cpp:1191
GDALGetRasterBand
GDALRasterBandH GDALGetRasterBand(GDALDatasetH, int)
Fetch a band object for a dataset.
Definition: gdaldataset.cpp:793
GDALGetGCPs
const GDAL_GCP * GDALGetGCPs(GDALDatasetH)
Fetch GCPs.
Definition: gdaldataset.cpp:1376
GDALDatasetGetLayerCount
int GDALDatasetGetLayerCount(GDALDatasetH)
Get the number of layers in this dataset.
Definition: gdaldataset.cpp:3656
GDALGetNonComplexDataType
GDALDataType GDALGetNonComplexDataType(GDALDataType)
Return the base data type for the specified input.
Definition: gdal_misc.cpp:760
GDALSwapWordsEx
void GDALSwapWordsEx(void *pData, int nWordSize, size_t nWordCount, int nWordSkip)
Byte swap words in-place.
Definition: rasterio.cpp:1885
GDALIdentifyDriver
GDALDriverH GDALIdentifyDriver(const char *pszFilename, CSLConstList papszFileList)
Identify the driver that can open a raster file.
Definition: gdaldriver.cpp:1941
GDALColorEntry::c2
short c2
Definition: gdal.h:1050
GDALDatasetGetStyleTable
OGRStyleTableH GDALDatasetGetStyleTable(GDALDatasetH)
Returns dataset style table.
Definition: gdaldataset.cpp:4033
GDALRasterIOExtraArg::dfXOff
double dfXOff
Definition: gdal.h:166
GDALGetVirtualMemAuto
CPLVirtualMem * GDALGetVirtualMemAuto(GDALRasterBandH hBand, GDALRWFlag eRWFlag, int *pnPixelSpace, GIntBig *pnLineSpace, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT
Create a CPLVirtualMem object from a GDAL raster band object.
Definition: gdalrasterband.cpp:6659
GDALGetRasterAccess
GDALAccess GDALGetRasterAccess(GDALRasterBandH)
Find out if we have update permission for this band.
Definition: gdalrasterband.cpp:1501
GSpacing
GIntBig GSpacing
Type to express pixel, line or band spacing.
Definition: gdal.h:273
GDALGetRasterHistogramEx
CPLErr GDALGetRasterHistogramEx(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc pfnProgress, void *pProgressData)
Compute raster histogram.
Definition: gdalrasterband.cpp:3413
GDALGetMetadataDomainList
char ** GDALGetMetadataDomainList(GDALMajorObjectH hObject)
Fetch list of metadata domains.
Definition: gdalmajorobject.cpp:219
GDALGetAccess
int GDALGetAccess(GDALDatasetH hDS)
Return access flag.
Definition: gdaldataset.cpp:2237
GDALRPCInfo::dfHEIGHT_OFF
double dfHEIGHT_OFF
Definition: gdal.h:1018
GDALGetDataTypeName
const char * GDALGetDataTypeName(GDALDataType)
Get name of data type.
Definition: gdal_misc.cpp:565
GFU_GreenMin
Definition: gdal.h:1095
GDALGetDriverCount
int GDALGetDriverCount(void)
Fetch the number of registered drivers.
Definition: gdaldrivermanager.cpp:360
GCI_CyanBand
Definition: gdal.h:202
GCI_YCbCr_CrBand
Definition: gdal.h:208
GDT_UInt32
Definition: gdal.h:65
GDALCreateMaskBand
CPLErr GDALCreateMaskBand(GDALRasterBandH hBand, int nFlags)
Adds a mask band to the current band.
Definition: gdalrasterband.cpp:6317
GRIORA_Gauss
Definition: gdal.h:138
GDALRATGetRowCount
int GDALRATGetRowCount(GDALRasterAttributeTableH)
Fetch row count.
Definition: gdal_rat.cpp:1388
GDALOverviewMagnitudeCorrection
CPLErr GDALOverviewMagnitudeCorrection(GDALRasterBandH hBaseBand, int nOverviewCount, GDALRasterBandH *pahOverviews, GDALProgressFunc pfnProgress, void *pProgressData)
Undocumented.
Definition: overview.cpp:3757
GDALDataTypeUnionWithValue
GDALDataType GDALDataTypeUnionWithValue(GDALDataType eDT, double dValue, int bComplex)
Union a data type with the one found for a value.
Definition: gdal_misc.cpp:175
OGRwkbGeometryType
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:317
GDALRasterIOExtraArg::pProgressData
void * pProgressData
Definition: gdal.h:158
GCI_PaletteIndex
Definition: gdal.h:194
GDALRATGetRowOfValue
int GDALRATGetRowOfValue(GDALRasterAttributeTableH, double)
Get row for pixel value.
Definition: gdal_rat.cpp:378
GDALRegenerateOverviews
CPLErr GDALRegenerateOverviews(GDALRasterBandH hSrcBand, int nOverviewCount, GDALRasterBandH *pahOverviewBands, const char *pszResampling, GDALProgressFunc pfnProgress, void *pProgressData)
Generate downsampled overviews.
Definition: overview.cpp:2792
GDALSetRasterCategoryNames
CPLErr GDALSetRasterCategoryNames(GDALRasterBandH, CSLConstList)
Set the category names for this band.
Definition: gdalrasterband.cpp:1599
GDALDatasetGetVirtualMem
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, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT
Create a CPLVirtualMem object from a GDAL dataset object.
Definition: gdalvirtualmem.cpp:951
GFU_AlphaMin
Definition: gdal.h:1097
GDALReleaseDataset
int GDALReleaseDataset(GDALDatasetH)
Drop a reference to this object, and destroy if no longer referenced.
Definition: gdaldataset.cpp:1216
GDALFlushRasterCache
CPLErr GDALFlushRasterCache(GDALRasterBandH hBand)
Flush raster data cache.
Definition: gdalrasterband.cpp:1061
GTO_BIT
Definition: gdal.h:1227
GDALAsyncStatusType
GDALAsyncStatusType
status of the asynchronous stream
Definition: gdal.h:100
GDALGetRasterNoDataValue
double GDALGetRasterNoDataValue(GDALRasterBandH, int *)
Fetch the no data value for this band.
Definition: gdalrasterband.cpp:1648
GDALRATSetRowCount
void GDALRATSetRowCount(GDALRasterAttributeTableH, int)
Set row count.
Definition: gdal_rat.cpp:332
GDALSetCacheMax64
void GDALSetCacheMax64(GIntBig nBytes)
Set maximum cache memory.
Definition: gdalrasterblock.cpp:146
GDALDestroyRasterAttributeTable
void GDALDestroyRasterAttributeTable(GDALRasterAttributeTableH)
Destroys a RAT.
Definition: gdal_rat.cpp:1149
GRIORA_NearestNeighbour
Definition: gdal.h:130
GDALCopyDatasetFiles
CPLErr GDALCopyDatasetFiles(GDALDriverH, const char *pszNewName, const char *pszOldName)
Copy the files of a dataset.
Definition: gdaldriver.cpp:1364
GDALRATCreateColumn
CPLErr GDALRATCreateColumn(GDALRasterAttributeTableH, const char *, GDALRATFieldType, GDALRATFieldUsage)
Create new column.
Definition: gdal_rat.cpp:456
GDT_Int16
Definition: gdal.h:64
GDALDatasetCopyLayer
OGRLayerH GDALDatasetCopyLayer(GDALDatasetH, OGRLayerH, const char *, CSLConstList)
Duplicate an existing layer.
Definition: gdaldataset.cpp:3949
GDALLoadWorldFile
int GDALLoadWorldFile(const char *, double *)
Read ESRI world file.
Definition: gdal_misc.cpp:1861
GDALRasterIOExtraArg::pfnProgress
GDALProgressFunc pfnProgress
Definition: gdal.h:156
GDALRasterAttributeTableH
void * GDALRasterAttributeTableH
Opaque type used for the C bindings of the C++ GDALRasterAttributeTable class.
Definition: gdal.h:267
GDALSetColorEntry
void GDALSetColorEntry(GDALColorTableH, int, const GDALColorEntry *)
Set entry in color table.
Definition: gdalcolortable.cpp:245
GCI_YCbCr_CbBand
Definition: gdal.h:207
GDALGetRasterYSize
int GDALGetRasterYSize(GDALDatasetH)
Fetch raster height in pixels.
Definition: gdaldataset.cpp:739
GDALGetDataTypeByName
GDALDataType GDALGetDataTypeByName(const char *)
Get data type by symbolic name.
Definition: gdal_misc.cpp:626
cpl_error.h
CPL error handling services.
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:74
GDALGetJPEG2000Structure
CPLXMLNode * GDALGetJPEG2000Structure(const char *pszFilename, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT
Dump the structure of a JPEG2000 file as a XML tree.
Definition: gdaljp2structure.cpp:1578
GDALCreateColorTable
GDALColorTableH GDALCreateColorTable(GDALPaletteInterp) CPL_WARN_UNUSED_RESULT
Construct a new color table.
Definition: gdalcolortable.cpp:69
GDALARGetNextUpdatedRegion
GDALAsyncStatusType GDALARGetNextUpdatedRegion(GDALAsyncReaderH hARIO, double dfTimeout, int *pnXBufOff, int *pnYBufOff, int *pnXBufSize, int *pnYBufSize)
Get async IO update.
Definition: gdaldefaultasync.cpp:176
GDALRasterIOExtraArg::dfYSize
double dfYSize
Definition: gdal.h:172
GCI_RedBand
Definition: gdal.h:195
GDALDatasetDeleteLayer
OGRErr GDALDatasetDeleteLayer(GDALDatasetH, int)
Delete the indicated layer from the datasource.
Definition: gdaldataset.cpp:3743
CSLConstList
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1190
GDALRPCInfo::dfLONG_OFF
double dfLONG_OFF
Definition: gdal.h:1017
GDALDataTypeIsSigned
int GDALDataTypeIsSigned(GDALDataType)
Is data type signed?
Definition: gdal_misc.cpp:475
GDALDatasetRasterIOEx
CPLErr GDALDatasetRasterIOEx(GDALDatasetH hDS, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType, int nBandCount, int *panBandCount, GSpacing nPixelSpace, GSpacing nLineSpace, GSpacing nBandSpace, GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULT
Read/write a region of image data from multiple bands.
Definition: gdaldataset.cpp:2137
GDT_CFloat32
Definition: gdal.h:74
GDALDatasetGetNextFeature
OGRFeatureH GDALDatasetGetNextFeature(GDALDatasetH hDS, OGRLayerH *phBelongingLayer, double *pdfProgressPct, GDALProgressFunc pfnProgress, void *pProgressData)
Fetch the next available feature from this dataset.
Definition: gdaldataset.cpp:6348
GPI_HLS
Definition: gdal.h:221
GDALReadOziMapFile
int GDALReadOziMapFile(const char *, double *, char **, int *, GDAL_GCP **)
Helper function for translator implementer wanting support for OZI .map.
Definition: gdal_misc.cpp:1562
GDALLoadOziMapFile
int GDALLoadOziMapFile(const char *, double *, char **, int *, GDAL_GCP **)
Helper function for translator implementer wanting support for OZI .map.
Definition: gdal_misc.cpp:1357
GDALComposeGeoTransforms
void GDALComposeGeoTransforms(const double *padfGeoTransform1, const double *padfGeoTransform2, double *padfGeoTransformOut)
Compose two geotransforms.
Definition: gdal_misc.cpp:2704
GDALDeleteRasterNoDataValue
CPLErr GDALDeleteRasterNoDataValue(GDALRasterBandH)
Remove the no data value for this band.
Definition: gdalrasterband.cpp:1764
GDALRasterIOExtraArg
Structure to pass extra arguments to RasterIO() method.
Definition: gdal.h:147
GDALOpen
GDALDatasetH GDALOpen(const char *pszFilename, GDALAccess eAccess) CPL_WARN_UNUSED_RESULT
Open a raster file as a GDALDataset.
Definition: gdaldataset.cpp:2568
GDALSetRasterNoDataValue
CPLErr GDALSetRasterNoDataValue(GDALRasterBandH, double)
Set the no data value for this band.
Definition: gdalrasterband.cpp:1716
GDALPaletteInterp
GDALPaletteInterp
Definition: gdal.h:216
GDALDeinitGCPs
void GDALDeinitGCPs(int, GDAL_GCP *)
De-initialize an array of GCPs (initialized with GDALInitGCPs())
Definition: gdal_misc.cpp:1217
GDALGetRasterMinimum
double GDALGetRasterMinimum(GDALRasterBandH, int *pbSuccess)
Fetch the minimum value for this band.
Definition: gdalrasterband.cpp:1946
GFU_AlphaMax
Definition: gdal.h:1101
GDALRATGetNameOfCol
const char * GDALRATGetNameOfCol(GDALRasterAttributeTableH, int)
Fetch name of indicated column.
Definition: gdal_rat.cpp:1235
GDALGetGCPCount
int GDALGetGCPCount(GDALDatasetH)
Get number of GCPs.
Definition: gdaldataset.cpp:1308
GDALRPCInfo::dfLINE_SCALE
double dfLINE_SCALE
Definition: gdal.h:1020
GDALRPCInfo::dfLINE_OFF
double dfLINE_OFF
Definition: gdal.h:1014
GDALDeleteDataset
CPLErr GDALDeleteDataset(GDALDriverH, const char *)
Delete named dataset.
Definition: gdaldriver.cpp:1112
GDALGetDriverShortName
const char * GDALGetDriverShortName(GDALDriverH)
Return the short name of a driver.
Definition: gdaldriver.cpp:1401
GDALCopyWords
void GDALCopyWords(const void *CPL_RESTRICT pSrcData, GDALDataType eSrcType, int nSrcPixelOffset, void *CPL_RESTRICT pDstData, GDALDataType eDstType, int nDstPixelOffset, int nWordCount)
Copy pixel words from buffer to buffer.
Definition: rasterio.cpp:3072
GUIntBig
unsigned long long GUIntBig
Large unsigned integer type (generally 64-bit unsigned integer type).
Definition: cpl_port.h:249
GCI_Undefined
Definition: gdal.h:192
GFU_Alpha
Definition: gdal.h:1093
GDALGetGCPProjection
const char * GDALGetGCPProjection(GDALDatasetH)
Get output projection for GCPs.
Definition: gdaldataset.cpp:1343
GDALGetMaskFlags
int GDALGetMaskFlags(GDALRasterBandH hBand)
Return the status flags of the mask band associated with the band.
Definition: gdalrasterband.cpp:6228
GPI_CMYK
Definition: gdal.h:220
GDALValidateCreationOptions
int GDALValidateCreationOptions(GDALDriverH, CSLConstList papszCreationOptions)
Validate the list of creation options that are handled by a driver.
Definition: gdaldriver.cpp:1520
GDALGetRasterColorTable
GDALColorTableH GDALGetRasterColorTable(GDALRasterBandH)
Fetch the color table associated with band.
Definition: gdalrasterband.cpp:2079
GDALGetRasterUnitType
const char * GDALGetRasterUnitType(GDALRasterBandH)
Return raster unit type.
Definition: gdalrasterband.cpp:2650
GDALGetGeoTransform
CPLErr GDALGetGeoTransform(GDALDatasetH, double *)
Fetch the affine transformation coefficients.
Definition: gdaldataset.cpp:980
GDALSetRasterColorTable
CPLErr GDALSetRasterColorTable(GDALRasterBandH, GDALColorTableH)
Set the raster color table.
Definition: gdalrasterband.cpp:2132
GDALDriverH
void * GDALDriverH
Opaque type used for the C bindings of the C++ GDALDriver class.
Definition: gdal.h:261
GDALDuplicateGCPs
GDAL_GCP * GDALDuplicateGCPs(int, const GDAL_GCP *)
Duplicate an array of GCPs.
Definition: gdal_misc.cpp:1244
GDALGetRasterXSize
int GDALGetRasterXSize(GDALDatasetH)
Fetch raster width in pixels.
Definition: gdaldataset.cpp:705
GDALGetColorInterpretationName
const char * GDALGetColorInterpretationName(GDALColorInterp)
Get name of color interpretation.
Definition: gdal_misc.cpp:904
GDALARLockBuffer
int GDALARLockBuffer(GDALAsyncReaderH hARIO, double dfTimeout)
Lock image buffer.
Definition: gdaldefaultasync.cpp:235
GDALGetCacheMax
int GDALGetCacheMax(void)
Get maximum cache memory.
Definition: gdalrasterblock.cpp:200
GDALClose
void GDALClose(GDALDatasetH)
Close GDAL dataset.
Definition: gdaldataset.cpp:3059
GDALReferenceDataset
int GDALReferenceDataset(GDALDatasetH)
Add one to dataset reference count.
Definition: gdaldataset.cpp:1139
GDALDatasetTestCapability
int GDALDatasetTestCapability(GDALDatasetH, const char *)
Test if capability is available.
Definition: gdaldataset.cpp:6450
GDALCreateDriver
GDALDriverH GDALCreateDriver(void)
Create a GDALDriver.
Definition: gdaldriver.cpp:96
GDALMajorObjectH
void * GDALMajorObjectH
Opaque type used for the C bindings of the C++ GDALMajorObject class.
Definition: gdal.h:252
OGRGeometryH
void * OGRGeometryH
Opaque type for a geometry.
Definition: ogr_api.h:60
GDALRasterIOEx
CPLErr GDALRasterIOEx(GDALRasterBandH hRBand, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType, GSpacing nPixelSpace, GSpacing nLineSpace, GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULT
Read/write a region of image data for this band.
Definition: gdalrasterband.cpp:439
GDALGetDatasetDriver
GDALDriverH GDALGetDatasetDriver(GDALDatasetH)
Fetch the driver to which this dataset relates.
Definition: gdaldataset.cpp:1104
GDALRATSetValueAsDouble
void GDALRATSetValueAsDouble(GDALRasterAttributeTableH, int, int, double)
Set field value from double.
Definition: gdal_rat.cpp:1817
GDT_Float64
Definition: gdal.h:70
GDALDatasetGetLayer
OGRLayerH GDALDatasetGetLayer(GDALDatasetH, int)
Fetch a layer by index.
Definition: gdaldataset.cpp:3684
OGRFeatureH
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition: ogr_api.h:301
GDALGetRasterDataType
GDALDataType GDALGetRasterDataType(GDALRasterBandH)
Fetch the pixel data type for this band.
Definition: gdalrasterband.cpp:854
GDALRPCInfo::dfSAMP_OFF
double dfSAMP_OFF
Definition: gdal.h:1015
GCI_HueBand
Definition: gdal.h:199
GDALSetDefaultHistogram
CPLErr GDALSetDefaultHistogram(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, int *panHistogram) CPL_WARN_DEPRECATED("Use GDALSetDefaultHistogramEx() instead")
Set default histogram.
Definition: gdalrasterband.cpp:5757
GDALGetRandomRasterSample
int GDALGetRandomRasterSample(GDALRasterBandH, int, float *)
Undocumented.
Definition: gdal_misc.cpp:1012
GDALRPCInfo::dfSAMP_SCALE
double dfSAMP_SCALE
Definition: gdal.h:1021
GDALWriteWorldFile
int GDALWriteWorldFile(const char *, const char *, double *)
Write ESRI world file.
Definition: gdal_misc.cpp:2113
GDAL_GCP::pszId
char * pszId
Unique identifier, often numeric.
Definition: gdal.h:563
GDALSwapWords
void GDALSwapWords(void *pData, int nWordSize, int nWordCount, int nWordSkip)
Byte swap words in-place.
Definition: rasterio.cpp:1794
GDALGetDefaultHistogram
CPLErr GDALGetDefaultHistogram(GDALRasterBandH hBand, double *pdfMin, double *pdfMax, int *pnBuckets, int **ppanHistogram, int bForce, GDALProgressFunc pfnProgress, void *pProgressData) CPL_WARN_DEPRECATED("Use GDALGetDefaultHistogramEx() instead")
Fetch default raster histogram.
Definition: gdalrasterband.cpp:3540
GDALFillRaster
CPLErr GDALFillRaster(GDALRasterBandH hBand, double dfRealValue, double dfImaginaryValue)
Fill this band with a constant value.
Definition: gdalrasterband.cpp:1464
GDALSetDescription
void GDALSetDescription(GDALMajorObjectH, const char *)
Set object description.
Definition: gdalmajorobject.cpp:136
GRIORA_Bilinear
Definition: gdal.h:131
GFU_Name
Definition: gdal.h:1086
GRIORA_CubicSpline
Definition: gdal.h:133
GDALGetDataCoverageStatus
int GDALGetDataCoverageStatus(GDALRasterBandH hBand, int nXOff, int nYOff, int nXSize, int nYSize, int nMaskFlagStop, double *pdfDataPct)
Get the coverage status of a sub-window of the raster.
Definition: gdalrasterband.cpp:6757
GDALDatasetResetReading
void GDALDatasetResetReading(GDALDatasetH)
Reset feature reading to start on the first feature.
Definition: gdaldataset.cpp:6121
GDALRATSetLinearBinning
CPLErr GDALRATSetLinearBinning(GDALRasterAttributeTableH, double, double)
Set linear binning information.
Definition: gdal_rat.cpp:504
GCI_BlueBand
Definition: gdal.h:197
GDALTileOrganization
GDALTileOrganization
! Enumeration to describe the tile organization
Definition: gdal.h:1222
GDALDatasetRasterIO
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) CPL_WARN_UNUSED_RESULT
Read/write a region of image data from multiple bands.
Definition: gdaldataset.cpp:2108
GDALRasterBandGetTiledVirtualMem
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, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT
Create a CPLVirtualMem object from a GDAL rasterband object, with tiling organization.
Definition: gdalvirtualmem.cpp:1659
GDALDatasetGetTiledVirtualMem
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, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT
Create a CPLVirtualMem object from a GDAL dataset object, with tiling organization.
Definition: gdalvirtualmem.cpp:1544
GDALReadWorldFile
int GDALReadWorldFile(const char *, const char *, double *)
Read ESRI world file.
Definition: gdal_misc.cpp:1955
GDALGetRasterSampleOverviewEx
GDALRasterBandH GDALGetRasterSampleOverviewEx(GDALRasterBandH, GUIntBig)
Fetch best sampling overview.
Definition: gdalrasterband.cpp:2355
GDALAccess
GDALAccess
Definition: gdal.h:113
GDALColorEntry::c4
short c4
Definition: gdal.h:1056
GDALGetOverview
GDALRasterBandH GDALGetOverview(GDALRasterBandH, int)
Fetch overview raster band object.
Definition: gdalrasterband.cpp:2258
ogr_api.h
C API and defines for OGRFeature, OGRGeometry, and OGRDataSource related classes. ...
GDALGetBandNumber
int GDALGetBandNumber(GDALRasterBandH)
Fetch the band number.
Definition: gdalrasterband.cpp:2819
GDALDestroyColorTable
void GDALDestroyColorTable(GDALColorTableH)
Destroys a color table.
Definition: gdalcolortable.cpp:96
GDALGetRasterMaximum
double GDALGetRasterMaximum(GDALRasterBandH, int *pbSuccess)
Fetch the maximum value for this band.
Definition: gdalrasterband.cpp:1857
GDT_Float32
Definition: gdal.h:69
GFT_Integer
Definition: gdal.h:1077
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:343
GDALRATFieldUsage
GDALRATFieldUsage
Field usage of raster attribute table.
Definition: gdal.h:1083
GDALRPCInfo::dfLAT_SCALE
double dfLAT_SCALE
Definition: gdal.h:1022
GCI_MagentaBand
Definition: gdal.h:203
GIntBig
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:246
GDALRATSetValueAsInt
void GDALRATSetValueAsInt(GDALRasterAttributeTableH, int, int, int)
Set field value from integer.
Definition: gdal_rat.cpp:1748
GDALGetMetadataItem
const char * GDALGetMetadataItem(GDALMajorObjectH, const char *, const char *)
Fetch single metadata item.
Definition: gdalmajorobject.cpp:361
GDALRenameDataset
CPLErr GDALRenameDataset(GDALDriverH, const char *pszNewName, const char *pszOldName)
Rename a dataset.
Definition: gdaldriver.cpp:1239
GFU_Green
Definition: gdal.h:1091
GDALColorTableH
void * GDALColorTableH
Opaque type used for the C bindings of the C++ GDALColorTable class.
Definition: gdal.h:264
GDAL_GCP::dfGCPX
double dfGCPX
X position of GCP in georeferenced space.
Definition: gdal.h:574
GDALGetRasterBandYSize
int GDALGetRasterBandYSize(GDALRasterBandH)
Fetch YSize of raster.
Definition: gdalrasterband.cpp:2777
GDALRATValuesIOAsDouble
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:161
GDALRPCInfo::dfMAX_LONG
double dfMAX_LONG
Definition: gdal.h:1033
GFU_GreenMax
Definition: gdal.h:1099
GDALDataTypeIsInteger
int GDALDataTypeIsInteger(GDALDataType)
Is data type integer? (might be complex)
Definition: gdal_misc.cpp:445
GDALARUnlockBuffer
void GDALARUnlockBuffer(GDALAsyncReaderH hARIO)
Unlock image buffer.
Definition: gdaldefaultasync.cpp:270
GCI_BlackBand
Definition: gdal.h:205
GDALDatasetCommitTransaction
OGRErr GDALDatasetCommitTransaction(GDALDatasetH hDS)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: gdaldataset.cpp:6623
GRIORA_Average
Definition: gdal.h:135
GDALRasterIOExtraArg::dfXSize
double dfXSize
Definition: gdal.h:170
GDALRasterAdviseRead
CPLErr GDALRasterAdviseRead(GDALRasterBandH hRB, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, int nBXSize, int nBYSize, GDALDataType eBDataType, CSLConstList papszOptions)
Advise driver of upcoming read requests.
Definition: gdalrasterband.cpp:3703
GDALGetDataTypeSizeBits
int GDALGetDataTypeSizeBits(GDALDataType eDataType)
Get data type size in bits.
Definition: gdal_misc.cpp:350
GDALDestroyDriver
void GDALDestroyDriver(GDALDriverH)
Destroy a GDALDriver.
Definition: gdaldriver.cpp:115
OGRErr
int OGRErr
Simple container for a bounding region.
Definition: ogr_core.h:290
GDALColorInterp
GDALColorInterp
Definition: gdal.h:190
GDALGetDataTypeSizeBytes
int GDALGetDataTypeSizeBytes(GDALDataType)
Get data type size in bytes.
Definition: gdal_misc.cpp:305
GDALGetRasterScale
double GDALGetRasterScale(GDALRasterBandH, int *pbSuccess)
Fetch the raster value scale.
Definition: gdalrasterband.cpp:2557
GDALSetGeoTransform
CPLErr GDALSetGeoTransform(GDALDatasetH, double *)
Set the affine transformation coefficients.
Definition: gdaldataset.cpp:1030
GDALRasterIOExtraArg::dfYOff
double dfYOff
Definition: gdal.h:168
GCI_Max
Definition: gdal.h:209
GDALGetRasterSampleOverview
GDALRasterBandH GDALGetRasterSampleOverview(GDALRasterBandH, int)
Fetch best sampling overview.
Definition: gdalrasterband.cpp:2332
GDAL_GCP::dfGCPLine
double dfGCPLine
Line (y) location of GCP on raster.
Definition: gdal.h:571
GDALGetDefaultHistogramEx
CPLErr GDALGetDefaultHistogramEx(GDALRasterBandH hBand, double *pdfMin, double *pdfMax, int *pnBuckets, GUIntBig **ppanHistogram, int bForce, GDALProgressFunc pfnProgress, void *pProgressData)
Fetch default raster histogram.
Definition: gdalrasterband.cpp:3611
GDALDumpOpenDatasets
int GDALDumpOpenDatasets(FILE *)
List open datasets.
Definition: gdaldataset.cpp:3144
GRIORA_Cubic
Definition: gdal.h:132
GDALGetRasterOffset
double GDALGetRasterOffset(GDALRasterBandH, int *pbSuccess)
Fetch the raster value offset.
Definition: gdalrasterband.cpp:2454
GDALInvGeoTransform
int GDALInvGeoTransform(double *padfGeoTransformIn, double *padfInvGeoTransformOut) CPL_WARN_UNUSED_RESULT
Invert Geotransform.
Definition: gdaltransformer.cpp:3281
GDT_CInt16
Definition: gdal.h:71
GCI_GrayIndex
Definition: gdal.h:193
GDALDatasetExecuteSQL
OGRLayerH GDALDatasetExecuteSQL(GDALDatasetH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: gdaldataset.cpp:4003
GDALFlushCacheBlock
int GDALFlushCacheBlock(void)
Try to flush one cached raster block.
Definition: gdalrasterblock.cpp:372
GDALCopyBits
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:3296
GDALEndAsyncReader
void GDALEndAsyncReader(GDALDatasetH hDS, GDALAsyncReaderH hAsynchReaderH)
End asynchronous request.
Definition: gdaldataset.cpp:3395
GDALGetBlockSize
void GDALGetBlockSize(GDALRasterBandH, int *pnXSize, int *pnYSize)
Fetch the "natural" block size of this band.
Definition: gdalrasterband.cpp:921
GDALFindDataTypeForValue
GDALDataType GDALFindDataTypeForValue(double dValue, int bComplex)
Finds the smallest data type able to support the provided value.
Definition: gdal_misc.cpp:281
GDALDatasetSetStyleTableDirectly
void GDALDatasetSetStyleTableDirectly(GDALDatasetH, OGRStyleTableH)
Set dataset style table.
Definition: gdaldataset.cpp:4062
OGRStyleTableH
void * OGRStyleTableH
Opaque type for a style table (OGRStyleTable)
Definition: ogr_api.h:303
GDALSetDefaultRAT
CPLErr GDALSetDefaultRAT(GDALRasterBandH, GDALRasterAttributeTableH)
Set default Raster Attribute Table.
Definition: gdalrasterband.cpp:5897
GDALGetFileList
char ** GDALGetFileList(GDALDatasetH)
Fetch files forming dataset.
Definition: gdaldataset.cpp:2436
GDALFindDataType
GDALDataType GDALFindDataType(int nBits, int bSigned, int bFloating, int bComplex)
Finds the smallest data type able to support the given requirements.
Definition: gdal_misc.cpp:233
GDALRATValuesIOAsInteger
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:223
GA_ReadOnly
Definition: gdal.h:114
GDALRATDumpReadable
void GDALRATDumpReadable(GDALRasterAttributeTableH, FILE *)
Dump RAT in readable form.
Definition: gdal_rat.cpp:1067
GDAL_GCP::dfGCPZ
double dfGCPZ
Elevation of GCP, or zero if not known.
Definition: gdal.h:580
GFT_String
Definition: gdal.h:1079
GDALRasterIOExtraArg::eResampleAlg
GDALRIOResampleAlg eResampleAlg
Definition: gdal.h:153
GDALDecToPackedDMS
double GDALDecToPackedDMS(double)
Convert decimal degrees into packed DMS value (DDDMMMSSS.SS).
Definition: gdal_misc.cpp:2362
GPI_Gray
Definition: gdal.h:218
GDALCreateRasterAttributeTable
GDALRasterAttributeTableH GDALCreateRasterAttributeTable(void) CPL_WARN_UNUSED_RESULT
Construct empty table.
Definition: gdal_rat.cpp:1110
GDALSetRasterStatistics
CPLErr GDALSetRasterStatistics(GDALRasterBandH hBand, double dfMin, double dfMax, double dfMean, double dfStdDev)
Set statistics on band.
Definition: gdalrasterband.cpp:5332
GDAL_GCP
Ground Control Point.
Definition: gdal.h:560
CPLErr
CPLErr
Error category.
Definition: cpl_error.h:52
GDALGetPaletteInterpretation
GDALPaletteInterp GDALGetPaletteInterpretation(GDALColorTableH)
Fetch palette interpretation.
Definition: gdalcolortable.cpp:356
GDALGetCacheUsed64
GIntBig GDALGetCacheUsed64(void)
Get cache memory used.
Definition: gdalrasterblock.cpp:355
GDALGetBandDataset
GDALDatasetH GDALGetBandDataset(GDALRasterBandH)
Fetch the owning dataset handle.
Definition: gdalrasterband.cpp:2860
GDALGetRasterBandXSize
int GDALGetRasterBandXSize(GDALRasterBandH)
Fetch XSize of raster.
Definition: gdalrasterband.cpp:2740
GDALDatasetRollbackTransaction
OGRErr GDALDatasetRollbackTransaction(GDALDatasetH hDS)
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: gdaldataset.cpp:6675
GDALDereferenceDataset
int GDALDereferenceDataset(GDALDatasetH)
Subtract one from dataset reference count.
Definition: gdaldataset.cpp:1174
GDALRATGetTypeOfCol
GDALRATFieldType GDALRATGetTypeOfCol(GDALRasterAttributeTableH, int)
Fetch column type.
Definition: gdal_rat.cpp:1319
GDALGetCacheUsed
int GDALGetCacheUsed(void)
Get cache memory used.
Definition: gdalrasterblock.cpp:325
GDALLoadTabFile
int GDALLoadTabFile(const char *, double *, char **, int *, GDAL_GCP **)
Helper function for translator implementer wanting support for MapInfo .tab files.
Definition: gdal_misc.cpp:1607
GFU_Max
Definition: gdal.h:1088
GDALComputeBandStats
CPLErr GDALComputeBandStats(GDALRasterBandH hBand, int nSampleStep, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData)
Undocumented.
Definition: overview.cpp:3621
CPL_WARN_UNUSED_RESULT
#define CPL_WARN_UNUSED_RESULT
Qualifier to warn when the return value of a function is not used.
Definition: cpl_port.h:935
GDALGetMetadata
char ** GDALGetMetadata(GDALMajorObjectH, const char *)
Fetch metadata.
Definition: gdalmajorobject.cpp:266
GF_Read
Definition: gdal.h:120
GDALCreate
GDALDatasetH GDALCreate(GDALDriverH hDriver, const char *, int, int, int, GDALDataType, CSLConstList) CPL_WARN_UNUSED_RESULT
Create a new dataset with this driver.
Definition: gdaldriver.cpp:306

Generated for GDAL by 1.8.8.