GDAL
gdal.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Project: GDAL Core
4 * Purpose: GDAL Core C/Public declarations.
5 * Author: Frank Warmerdam, warmerdam@pobox.com
6 *
7 ******************************************************************************
8 * Copyright (c) 1998, 2002 Frank Warmerdam
9 * Copyright (c) 2007-2014, Even Rouault <even dot rouault at spatialys.com>
10 *
11 * SPDX-License-Identifier: MIT
12 ****************************************************************************/
13
14#ifndef GDAL_H_INCLUDED
15#define GDAL_H_INCLUDED
16
22
23#ifndef DOXYGEN_SKIP
24#if defined(GDAL_COMPILATION)
25#define DO_NOT_DEFINE_GDAL_DATE_NAME
26#endif
27#include "gdal_fwd.h"
28#include "gdal_version.h"
29#include "cpl_port.h"
30#include "cpl_error.h"
31#include "cpl_progress.h"
32#include "cpl_virtualmem.h"
33#include "cpl_minixml.h"
34#include "ogr_api.h"
35#endif
36
37#include <stdbool.h>
38#include <stdint.h>
39
40/* -------------------------------------------------------------------- */
41/* Significant constants. */
42/* -------------------------------------------------------------------- */
43
45
47typedef enum
48{ GDT_Unknown = 0, GDT_Byte = 1, GDT_Int8 = 14, GDT_UInt16 = 2, GDT_Int16 = 3, GDT_UInt32 = 4, GDT_Int32 = 5, GDT_UInt64 = 12, GDT_Int64 = 13, GDT_Float16 = 15, GDT_Float32 = 6, GDT_Float64 = 7, GDT_CInt16 = 8, GDT_CInt32 = 9,
63 /* TODO?(#6879): GDT_CInt64 */ GDT_CFloat16 = 16, GDT_CFloat32 = 10, GDT_CFloat64 = 11,
67 GDT_TypeCount = 17 /* maximum type # + 1 */
69
70int CPL_DLL CPL_STDCALL GDALGetDataTypeSize(GDALDataType)
72 CPL_WARN_DEPRECATED("Use GDALGetDataTypeSizeBits() or "
73 "GDALGetDataTypeSizeBytes() * 8 instead")
75 ;
76int CPL_DLL CPL_STDCALL GDALGetDataTypeSizeBits(GDALDataType eDataType);
77int CPL_DLL CPL_STDCALL GDALGetDataTypeSizeBytes(GDALDataType);
78int CPL_DLL CPL_STDCALL GDALDataTypeIsComplex(GDALDataType);
79int CPL_DLL CPL_STDCALL GDALDataTypeIsInteger(GDALDataType);
80int CPL_DLL CPL_STDCALL GDALDataTypeIsFloating(GDALDataType);
81int CPL_DLL CPL_STDCALL GDALDataTypeIsSigned(GDALDataType);
82const char CPL_DLL *CPL_STDCALL GDALGetDataTypeName(GDALDataType);
83GDALDataType CPL_DLL CPL_STDCALL GDALGetDataTypeByName(const char *);
86 double dValue,
87 int bComplex);
88GDALDataType CPL_DLL CPL_STDCALL GDALFindDataType(int nBits, int bSigned,
89 int bFloating, int bComplex);
90GDALDataType CPL_DLL CPL_STDCALL GDALFindDataTypeForValue(double dValue,
91 int bComplex);
92double CPL_DLL GDALAdjustValueToDataType(GDALDataType eDT, double dfValue,
93 int *pbClamped, int *pbRounded);
94bool CPL_DLL GDALIsValueExactAs(double dfValue, GDALDataType eDT);
95bool CPL_DLL GDALIsValueInRangeOf(double dfValue, GDALDataType eDT);
97int CPL_DLL CPL_STDCALL GDALDataTypeIsConversionLossy(GDALDataType eTypeFrom,
98 GDALDataType eTypeTo);
99
103typedef enum
104{
105 GARIO_PENDING = 0,
106 GARIO_UPDATE = 1,
107 GARIO_ERROR = 2,
108 GARIO_COMPLETE = 3,
109 GARIO_TypeCount = 4
111
112const char CPL_DLL *CPL_STDCALL GDALGetAsyncStatusTypeName(GDALAsyncStatusType);
113GDALAsyncStatusType CPL_DLL CPL_STDCALL
114GDALGetAsyncStatusTypeByName(const char *);
115
117typedef enum
118{ GA_ReadOnly = 0, GA_Update = 1
121} GDALAccess;
122
124typedef enum
125{ GF_Read = 0, GF_Write = 1
128} GDALRWFlag;
129
130/* NOTE: values are selected to be consistent with GDALResampleAlg of
131 * alg/gdalwarper.h */
134typedef enum
146 /* NOTE: values 8 to 13 are reserved for max,min,med,Q1,Q3,sum */
148 GRIORA_RESERVED_START = 8,
149 GRIORA_RESERVED_END = 13,
157 GRIORA_LAST = GRIORA_RMS
160
161/* NOTE to developers: if required, only add members at the end of the
162 * structure, and when doing so increase RASTERIO_EXTRA_ARG_CURRENT_VERSION
163 */
205
206#ifndef DOXYGEN_SKIP
207#define RASTERIO_EXTRA_ARG_CURRENT_VERSION 2
208#endif
209
212#define INIT_RASTERIO_EXTRA_ARG(s) \
213 do \
214 { \
215 (s).nVersion = RASTERIO_EXTRA_ARG_CURRENT_VERSION; \
216 (s).eResampleAlg = GRIORA_NearestNeighbour; \
217 (s).pfnProgress = CPL_NULLPTR; \
218 (s).pProgressData = CPL_NULLPTR; \
219 (s).bFloatingPointWindowValidity = FALSE; \
220 (s).bUseOnlyThisScale = FALSE; \
221 } while (0)
222
229#define GCI_IR_Start 20
230
237#define GCI_IR_End 29
238
246#define GCI_SAR_Start 30
247
255#define GCI_SAR_End 39
256
345
347GDALColorInterp CPL_DLL GDALGetColorInterpretationByName(const char *pszName);
348
350typedef enum
351{ GPI_Gray = 0, GPI_RGB = 1, GPI_CMYK = 2, GPI_HLS = 3
357
359
360/* "well known" metadata items. */
361
364#define GDALMD_AREA_OR_POINT "AREA_OR_POINT"
367#define GDALMD_AOP_AREA "Area"
370#define GDALMD_AOP_POINT "Point"
371
372/* -------------------------------------------------------------------- */
373/* GDAL Specific error codes. */
374/* */
375/* error codes 100 to 299 reserved for GDAL. */
376/* -------------------------------------------------------------------- */
377#ifndef DOXYGEN_SKIP
378#define CPLE_WrongFormat CPL_STATIC_CAST(CPLErrorNum, 200)
379#endif
380
381/* -------------------------------------------------------------------- */
382/* Types, enumerations. */
383/* -------------------------------------------------------------------- */
384
387
400
411
412/* ==================================================================== */
413/* Registration/driver related. */
414/* ==================================================================== */
415
417#define GDAL_DMD_LONGNAME "DMD_LONGNAME"
418
420#define GDAL_DMD_HELPTOPIC "DMD_HELPTOPIC"
421
423#define GDAL_DMD_MIMETYPE "DMD_MIMETYPE"
424
426#define GDAL_DMD_EXTENSION "DMD_EXTENSION"
427
431#define GDAL_DMD_CONNECTION_PREFIX "DMD_CONNECTION_PREFIX"
432
435#define GDAL_DMD_EXTENSIONS "DMD_EXTENSIONS"
436
438#define GDAL_DMD_CREATIONOPTIONLIST "DMD_CREATIONOPTIONLIST"
439
443#define GDAL_DMD_OVERVIEW_CREATIONOPTIONLIST "DMD_OVERVIEW_CREATIONOPTIONLIST"
444
448#define GDAL_DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST \
449 "DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST"
450
454#define GDAL_DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST \
455 "DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST"
456
460#define GDAL_DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST \
461 "DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST"
462
466#define GDAL_DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST \
467 "DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST"
468
472#define GDAL_DMD_MULTIDIM_ARRAY_OPENOPTIONLIST \
473 "DMD_MULTIDIM_ARRAY_OPENOPTIONLIST"
474
478#define GDAL_DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST \
479 "DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST"
480
483#define GDAL_DMD_OPENOPTIONLIST "DMD_OPENOPTIONLIST"
484
487#define GDAL_DMD_CREATIONDATATYPES "DMD_CREATIONDATATYPES"
488
492#define GDAL_DMD_CREATIONFIELDDATATYPES "DMD_CREATIONFIELDDATATYPES"
493
497#define GDAL_DMD_CREATIONFIELDDATASUBTYPES "DMD_CREATIONFIELDDATASUBTYPES"
498
510#define GDAL_DMD_MAX_STRING_LENGTH "DMD_MAX_STRING_LENGTH"
511
529#define GDAL_DMD_CREATION_FIELD_DEFN_FLAGS "DMD_CREATION_FIELD_DEFN_FLAGS"
530
539#define GDAL_DMD_SUBDATASETS "DMD_SUBDATASETS"
540
546#define GDAL_DCAP_CREATE_SUBDATASETS "DCAP_CREATE_SUBDATASETS"
547
556#define GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR \
557 "DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR"
558
567#define GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN \
568 "DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN"
569
571#define GDAL_DCAP_OPEN "DCAP_OPEN"
572
581#define GDAL_DCAP_CREATE "DCAP_CREATE"
582
587#define GDAL_DCAP_CREATE_MULTIDIMENSIONAL "DCAP_CREATE_MULTIDIMENSIONAL"
588
597#define GDAL_DCAP_CREATECOPY "DCAP_CREATECOPY"
598
604#define GDAL_DCAP_CREATE_ONLY_VISIBLE_AT_CLOSE_TIME \
605 "DCAP_CREATE_ONLY_VISIBLE_AT_CLOSE_TIME"
606
611#define GDAL_DCAP_VECTOR_TRANSLATE_FROM "DCAP_VECTOR_TRANSLATE_FROM"
612
618#define GDAL_DCAP_CREATECOPY_MULTIDIMENSIONAL "DCAP_CREATECOPY_MULTIDIMENSIONAL"
619
623#define GDAL_DCAP_MULTIDIM_RASTER "DCAP_MULTIDIM_RASTER"
624
626#define GDAL_DCAP_SUBCREATECOPY "DCAP_SUBCREATECOPY"
627
636#define GDAL_DCAP_APPEND "DCAP_APPEND"
637
644#define GDAL_DCAP_UPDATE "DCAP_UPDATE"
645
648#define GDAL_DCAP_VIRTUALIO "DCAP_VIRTUALIO"
649
652#define GDAL_DCAP_RASTER "DCAP_RASTER"
653
656#define GDAL_DCAP_VECTOR "DCAP_VECTOR"
657
660#define GDAL_DCAP_GNM "DCAP_GNM"
661
665#define GDAL_DCAP_CREATE_LAYER "DCAP_CREATE_LAYER"
666
670#define GDAL_DCAP_DELETE_LAYER "DCAP_DELETE_LAYER"
671
675#define GDAL_DCAP_CREATE_FIELD "DCAP_CREATE_FIELD"
676
680#define GDAL_DCAP_DELETE_FIELD "DCAP_DELETE_FIELD"
681
685#define GDAL_DCAP_REORDER_FIELDS "DCAP_REORDER_FIELDS"
686
706#define GDAL_DMD_ALTER_FIELD_DEFN_FLAGS "GDAL_DMD_ALTER_FIELD_DEFN_FLAGS"
707
713#define GDAL_DMD_ILLEGAL_FIELD_NAMES "GDAL_DMD_ILLEGAL_FIELD_NAMES"
714
717#define GDAL_DCAP_NOTNULL_FIELDS "DCAP_NOTNULL_FIELDS"
718
722#define GDAL_DCAP_UNIQUE_FIELDS "DCAP_UNIQUE_FIELDS"
723
726#define GDAL_DCAP_DEFAULT_FIELDS "DCAP_DEFAULT_FIELDS"
727
731#define GDAL_DCAP_NOTNULL_GEOMFIELDS "DCAP_NOTNULL_GEOMFIELDS"
732
737#define GDAL_DCAP_NONSPATIAL "DCAP_NONSPATIAL"
738
742#define GDAL_DCAP_CURVE_GEOMETRIES "DCAP_CURVE_GEOMETRIES"
743
748#define GDAL_DCAP_MEASURED_GEOMETRIES "DCAP_MEASURED_GEOMETRIES"
749
754#define GDAL_DCAP_Z_GEOMETRIES "DCAP_Z_GEOMETRIES"
755
768#define GDAL_DMD_GEOMETRY_FLAGS "GDAL_DMD_GEOMETRY_FLAGS"
769
777#define GDAL_DCAP_FEATURE_STYLES "DCAP_FEATURE_STYLES"
778
782#define GDAL_DCAP_FEATURE_STYLES_READ "DCAP_FEATURE_STYLES_READ"
783
787#define GDAL_DCAP_FEATURE_STYLES_WRITE "DCAP_FEATURE_STYLES_WRITE"
788
793#define GDAL_DCAP_COORDINATE_EPOCH "DCAP_COORDINATE_EPOCH"
794
803#define GDAL_DCAP_MULTIPLE_VECTOR_LAYERS "DCAP_MULTIPLE_VECTOR_LAYERS"
804
809#define GDAL_DCAP_FIELD_DOMAINS "DCAP_FIELD_DOMAINS"
810
816#define GDAL_DCAP_RELATIONSHIPS "DCAP_RELATIONSHIPS"
817
822#define GDAL_DCAP_CREATE_RELATIONSHIP "DCAP_CREATE_RELATIONSHIP"
823
828#define GDAL_DCAP_DELETE_RELATIONSHIP "DCAP_DELETE_RELATIONSHIP"
829
834#define GDAL_DCAP_UPDATE_RELATIONSHIP "DCAP_UPDATE_RELATIONSHIP"
835
841#define GDAL_DCAP_FLUSHCACHE_CONSISTENT_STATE "DCAP_FLUSHCACHE_CONSISTENT_STATE"
842
851#define GDAL_DCAP_HONOR_GEOM_COORDINATE_PRECISION \
852 "DCAP_HONOR_GEOM_COORDINATE_PRECISION"
853
857#define GDAL_DCAP_UPSERT "DCAP_UPSERT"
858
885#define GDAL_DMD_RELATIONSHIP_FLAGS "GDAL_DMD_RELATIONSHIP_FLAGS"
886
894#define GDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES \
895 "GDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES"
896
901#define GDAL_DCAP_RENAME_LAYERS "DCAP_RENAME_LAYERS"
902
912#define GDAL_DMD_CREATION_FIELD_DOMAIN_TYPES "DMD_CREATION_FIELD_DOMAIN_TYPES"
913
929#define GDAL_DMD_ALTER_GEOM_FIELD_DEFN_FLAGS "DMD_ALTER_GEOM_FIELD_DEFN_FLAGS"
930
952#define GDAL_DMD_SUPPORTED_SQL_DIALECTS "DMD_SUPPORTED_SQL_DIALECTS"
953
955#define GDAL_DMD_PLUGIN_INSTALLATION_MESSAGE "DMD_PLUGIN_INSTALLATION_MESSAGE"
957
975#define GDAL_DMD_UPDATE_ITEMS "DMD_UPDATE_ITEMS"
976
981#define GDAL_DIM_TYPE_HORIZONTAL_X "HORIZONTAL_X"
982
987#define GDAL_DIM_TYPE_HORIZONTAL_Y "HORIZONTAL_Y"
988
992#define GDAL_DIM_TYPE_VERTICAL "VERTICAL"
993
997#define GDAL_DIM_TYPE_TEMPORAL "TEMPORAL"
998
1002#define GDAL_DIM_TYPE_PARAMETRIC "PARAMETRIC"
1003
1009#define GDAL_DCAP_REOPEN_AFTER_WRITE_REQUIRED "DCAP_REOPEN_AFTER_WRITE_REQUIRED"
1010
1017#define GDAL_DCAP_CAN_READ_AFTER_DELETE "DCAP_CAN_READ_AFTER_DELETE"
1018
1019#define GDsCAddRelationship \
1020 "AddRelationship"
1021
1022#define GDsCDeleteRelationship \
1023 "DeleteRelationship"
1024
1025#define GDsCUpdateRelationship \
1026 "UpdateRelationship"
1027
1028
1033#define GDsCFastGetExtent "FastGetExtent"
1034
1039#define GDsCFastGetExtentWGS84LongLat "FastGetExtentWGS84LongLat"
1040
1041void CPL_DLL CPL_STDCALL GDALAllRegister(void);
1042void CPL_DLL GDALRegisterPlugins(void);
1043CPLErr CPL_DLL GDALRegisterPlugin(const char *name);
1044
1045GDALDatasetH CPL_DLL CPL_STDCALL
1046GDALCreate(GDALDriverH hDriver, const char *, int, int, int, GDALDataType,
1048GDALDatasetH CPL_DLL CPL_STDCALL GDALCreateCopy(GDALDriverH, const char *,
1050 GDALProgressFunc,
1051 void *) CPL_WARN_UNUSED_RESULT;
1052
1053GDALDriverH CPL_DLL CPL_STDCALL GDALIdentifyDriver(const char *pszFilename,
1054 CSLConstList papszFileList);
1055
1056GDALDriverH CPL_DLL CPL_STDCALL GDALIdentifyDriverEx(
1057 const char *pszFilename, unsigned int nIdentifyFlags,
1058 const char *const *papszAllowedDrivers, const char *const *papszFileList);
1059
1060GDALDatasetH CPL_DLL CPL_STDCALL
1061GDALOpen(const char *pszFilename, GDALAccess eAccess) CPL_WARN_UNUSED_RESULT;
1062GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenShared(const char *, GDALAccess)
1064
1065/* Note: we define GDAL_OF_READONLY and GDAL_OF_UPDATE to be on purpose */
1066/* equals to GA_ReadOnly and GA_Update */
1067
1071#define GDAL_OF_READONLY 0x00
1072
1076#define GDAL_OF_UPDATE 0x01
1077
1081#define GDAL_OF_ALL 0x00
1082
1086#define GDAL_OF_RASTER 0x02
1087
1091#define GDAL_OF_VECTOR 0x04
1092
1096#define GDAL_OF_GNM 0x08
1097
1102#define GDAL_OF_MULTIDIM_RASTER 0x10
1103
1104#ifndef DOXYGEN_SKIP
1105#define GDAL_OF_KIND_MASK 0x1E
1106#endif
1107
1111#define GDAL_OF_SHARED 0x20
1112
1116#define GDAL_OF_VERBOSE_ERROR 0x40
1117
1123#define GDAL_OF_INTERNAL 0x80
1124
1133#define GDAL_OF_DEFAULT_BLOCK_ACCESS 0
1134
1142#define GDAL_OF_ARRAY_BLOCK_ACCESS 0x100
1143
1151#define GDAL_OF_HASHSET_BLOCK_ACCESS 0x200
1152
1153#ifndef DOXYGEN_SKIP
1154/* Reserved for a potential future alternative to GDAL_OF_ARRAY_BLOCK_ACCESS
1155 * and GDAL_OF_HASHSET_BLOCK_ACCESS */
1156#define GDAL_OF_RESERVED_1 0x300
1157
1159#define GDAL_OF_BLOCK_ACCESS_MASK 0x300
1160#endif
1161
1162#ifndef DOXYGEN_SKIP
1165#define GDAL_OF_FROM_GDALOPEN 0x400
1166#endif
1167
1174#define GDAL_OF_THREAD_SAFE 0x800
1175
1176GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenEx(
1177 const char *pszFilename, unsigned int nOpenFlags,
1178 const char *const *papszAllowedDrivers, const char *const *papszOpenOptions,
1179 const char *const *papszSiblingFiles) CPL_WARN_UNUSED_RESULT;
1180
1181int CPL_DLL CPL_STDCALL GDALDumpOpenDatasets(FILE *);
1182
1183GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriverByName(const char *);
1184int CPL_DLL CPL_STDCALL GDALGetDriverCount(void);
1185GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriver(int);
1186GDALDriverH CPL_DLL CPL_STDCALL GDALCreateDriver(void);
1187void CPL_DLL CPL_STDCALL GDALDestroyDriver(GDALDriverH);
1188int CPL_DLL CPL_STDCALL GDALRegisterDriver(GDALDriverH);
1189void CPL_DLL CPL_STDCALL GDALDeregisterDriver(GDALDriverH);
1190void CPL_DLL CPL_STDCALL GDALDestroyDriverManager(void);
1191void CPL_DLL GDALDestroy(void);
1192CPLErr CPL_DLL CPL_STDCALL GDALDeleteDataset(GDALDriverH, const char *);
1193CPLErr CPL_DLL CPL_STDCALL GDALRenameDataset(GDALDriverH,
1194 const char *pszNewName,
1195 const char *pszOldName);
1196CPLErr CPL_DLL CPL_STDCALL GDALCopyDatasetFiles(GDALDriverH,
1197 const char *pszNewName,
1198 const char *pszOldName);
1199int CPL_DLL CPL_STDCALL
1201char CPL_DLL **GDALGetOutputDriversForDatasetName(const char *pszDestFilename,
1202 int nFlagRasterVector,
1203 bool bSingleMatch,
1204 bool bEmitWarning);
1205
1207 const char *pszOpenOptionName);
1208
1209/* The following are deprecated */
1210const char CPL_DLL *CPL_STDCALL GDALGetDriverShortName(GDALDriverH);
1211const char CPL_DLL *CPL_STDCALL GDALGetDriverLongName(GDALDriverH);
1212const char CPL_DLL *CPL_STDCALL GDALGetDriverHelpTopic(GDALDriverH);
1213const char CPL_DLL *CPL_STDCALL GDALGetDriverCreationOptionList(GDALDriverH);
1214
1215/* ==================================================================== */
1216/* GDAL_GCP */
1217/* ==================================================================== */
1218
1220typedef struct
1221{
1223 char *pszId;
1224
1226 char *pszInfo;
1227
1232
1234 double dfGCPX;
1235
1237 double dfGCPY;
1238
1240 double dfGCPZ;
1241} GDAL_GCP;
1242
1243void CPL_DLL CPL_STDCALL GDALInitGCPs(int, GDAL_GCP *);
1244void CPL_DLL CPL_STDCALL GDALDeinitGCPs(int, GDAL_GCP *);
1245GDAL_GCP CPL_DLL *CPL_STDCALL GDALDuplicateGCPs(int, const GDAL_GCP *);
1246
1247int CPL_DLL CPL_STDCALL GDALGCPsToGeoTransform(
1248 int nGCPCount, const GDAL_GCP *pasGCPs, double *padfGeoTransform,
1249 int bApproxOK) CPL_WARN_UNUSED_RESULT;
1250int CPL_DLL CPL_STDCALL GDALInvGeoTransform(const double *padfGeoTransformIn,
1251 double *padfInvGeoTransformOut)
1253void CPL_DLL CPL_STDCALL GDALApplyGeoTransform(const double *, double, double,
1254 double *, double *);
1255void CPL_DLL GDALComposeGeoTransforms(const double *padfGeoTransform1,
1256 const double *padfGeoTransform2,
1257 double *padfGeoTransformOut);
1258int CPL_DLL GDALGCPsToHomography(int nGCPCount, const GDAL_GCP *pasGCPs,
1259 double *padfHomography) CPL_WARN_UNUSED_RESULT;
1260int CPL_DLL GDALInvHomography(const double *padfHomographyIn,
1261 double *padfInvHomographyOut)
1263int CPL_DLL GDALApplyHomography(const double *, double, double, double *,
1264 double *) CPL_WARN_UNUSED_RESULT;
1265void CPL_DLL GDALComposeHomographies(const double *padfHomography1,
1266 const double *padfHomography2,
1267 double *padfHomographyOut);
1268
1269/* ==================================================================== */
1270/* major objects (dataset, and, driver, drivermanager). */
1271/* ==================================================================== */
1272
1273char CPL_DLL **CPL_STDCALL GDALGetMetadataDomainList(GDALMajorObjectH hObject);
1274char CPL_DLL **CPL_STDCALL GDALGetMetadata(GDALMajorObjectH, const char *);
1276 const char *);
1277const char CPL_DLL *CPL_STDCALL GDALGetMetadataItem(GDALMajorObjectH,
1278 const char *, const char *);
1279CPLErr CPL_DLL CPL_STDCALL GDALSetMetadataItem(GDALMajorObjectH, const char *,
1280 const char *, const char *);
1281const char CPL_DLL *CPL_STDCALL GDALGetDescription(GDALMajorObjectH);
1282void CPL_DLL CPL_STDCALL GDALSetDescription(GDALMajorObjectH, const char *);
1283
1284/* ==================================================================== */
1285/* GDALDataset class ... normally this represents one file. */
1286/* ==================================================================== */
1287
1289#define GDAL_DS_LAYER_CREATIONOPTIONLIST "DS_LAYER_CREATIONOPTIONLIST"
1290
1291GDALDriverH CPL_DLL CPL_STDCALL GDALGetDatasetDriver(GDALDatasetH);
1292char CPL_DLL **CPL_STDCALL GDALGetFileList(GDALDatasetH);
1294CPLErr CPL_DLL CPL_STDCALL GDALClose(GDALDatasetH);
1296int CPL_DLL CPL_STDCALL GDALGetRasterXSize(GDALDatasetH);
1297int CPL_DLL CPL_STDCALL GDALGetRasterYSize(GDALDatasetH);
1298int CPL_DLL CPL_STDCALL GDALGetRasterCount(GDALDatasetH);
1299GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetRasterBand(GDALDatasetH, int);
1300
1301bool CPL_DLL GDALDatasetIsThreadSafe(GDALDatasetH, int nScopeFlags,
1302 CSLConstList papszOptions);
1303GDALDatasetH CPL_DLL GDALGetThreadSafeDataset(GDALDatasetH, int nScopeFlags,
1304 CSLConstList papszOptions);
1305
1306CPLErr CPL_DLL CPL_STDCALL GDALAddBand(GDALDatasetH hDS, GDALDataType eType,
1307 CSLConstList papszOptions);
1308
1309GDALAsyncReaderH CPL_DLL CPL_STDCALL GDALBeginAsyncReader(
1310 GDALDatasetH hDS, int nXOff, int nYOff, int nXSize, int nYSize, void *pBuf,
1311 int nBufXSize, int nBufYSize, GDALDataType eBufType, int nBandCount,
1312 int *panBandMap, int nPixelSpace, int nLineSpace, int nBandSpace,
1314
1315void CPL_DLL CPL_STDCALL GDALEndAsyncReader(GDALDatasetH hDS,
1316 GDALAsyncReaderH hAsynchReaderH);
1317
1318CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIO(
1319 GDALDatasetH hDS, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff,
1320 int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize,
1321 GDALDataType eBDataType, int nBandCount, const int *panBandCount,
1322 int nPixelSpace, int nLineSpace, int nBandSpace) CPL_WARN_UNUSED_RESULT;
1323
1324CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIOEx(
1325 GDALDatasetH hDS, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff,
1326 int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize,
1327 GDALDataType eBDataType, int nBandCount, const int *panBandCount,
1328 GSpacing nPixelSpace, GSpacing nLineSpace, GSpacing nBandSpace,
1330
1331CPLErr CPL_DLL CPL_STDCALL GDALDatasetAdviseRead(
1332 GDALDatasetH hDS, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
1333 int nBXSize, int nBYSize, GDALDataType eBDataType, int nBandCount,
1334 int *panBandCount, CSLConstList papszOptions);
1335
1336char CPL_DLL **
1337GDALDatasetGetCompressionFormats(GDALDatasetH hDS, int nXOff, int nYOff,
1338 int nXSize, int nYSize, int nBandCount,
1339 const int *panBandList) CPL_WARN_UNUSED_RESULT;
1341 GDALDatasetH hDS, const char *pszFormat, int nXOff, int nYOff, int nXSize,
1342 int nYSize, int nBandCount, const int *panBandList, void **ppBuffer,
1343 size_t *pnBufferSize, char **ppszDetailedFormat);
1344
1345const char CPL_DLL *CPL_STDCALL GDALGetProjectionRef(GDALDatasetH);
1347CPLErr CPL_DLL CPL_STDCALL GDALSetProjection(GDALDatasetH, const char *);
1349CPLErr CPL_DLL CPL_STDCALL GDALGetGeoTransform(GDALDatasetH, double *);
1350CPLErr CPL_DLL CPL_STDCALL GDALSetGeoTransform(GDALDatasetH, const double *);
1351
1355
1357 GDALDatasetH, double dfGeolocX, double dfGeolocY, OGRSpatialReferenceH hSRS,
1358 double *pdfPixel, double *pdfLine, CSLConstList papszTransformerOptions);
1359
1360int CPL_DLL CPL_STDCALL GDALGetGCPCount(GDALDatasetH);
1361const char CPL_DLL *CPL_STDCALL GDALGetGCPProjection(GDALDatasetH);
1363const GDAL_GCP CPL_DLL *CPL_STDCALL GDALGetGCPs(GDALDatasetH);
1364CPLErr CPL_DLL CPL_STDCALL GDALSetGCPs(GDALDatasetH, int, const GDAL_GCP *,
1365 const char *);
1366CPLErr CPL_DLL GDALSetGCPs2(GDALDatasetH, int, const GDAL_GCP *,
1368
1369void CPL_DLL *CPL_STDCALL GDALGetInternalHandle(GDALDatasetH, const char *);
1370int CPL_DLL CPL_STDCALL GDALReferenceDataset(GDALDatasetH);
1371int CPL_DLL CPL_STDCALL GDALDereferenceDataset(GDALDatasetH);
1372int CPL_DLL CPL_STDCALL GDALReleaseDataset(GDALDatasetH);
1373
1374CPLErr CPL_DLL CPL_STDCALL GDALBuildOverviews(GDALDatasetH, const char *, int,
1375 const int *, int, const int *,
1376 GDALProgressFunc,
1377 void *) CPL_WARN_UNUSED_RESULT;
1378CPLErr CPL_DLL CPL_STDCALL GDALBuildOverviewsEx(
1379 GDALDatasetH, const char *, int, const int *, int, const int *,
1380 GDALProgressFunc, void *, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
1381void CPL_DLL CPL_STDCALL GDALGetOpenDatasets(GDALDatasetH **hDS, int *pnCount);
1382int CPL_DLL CPL_STDCALL GDALGetAccess(GDALDatasetH hDS);
1383CPLErr CPL_DLL CPL_STDCALL GDALFlushCache(GDALDatasetH hDS);
1384CPLErr CPL_DLL CPL_STDCALL GDALDropCache(GDALDatasetH hDS);
1385
1386CPLErr CPL_DLL CPL_STDCALL GDALCreateDatasetMaskBand(GDALDatasetH hDS,
1387 int nFlags);
1388
1389CPLErr CPL_DLL CPL_STDCALL GDALDatasetCopyWholeRaster(
1390 GDALDatasetH hSrcDS, GDALDatasetH hDstDS, CSLConstList papszOptions,
1391 GDALProgressFunc pfnProgress, void *pProgressData) CPL_WARN_UNUSED_RESULT;
1392
1393CPLErr CPL_DLL CPL_STDCALL GDALRasterBandCopyWholeRaster(
1394 GDALRasterBandH hSrcBand, GDALRasterBandH hDstBand,
1395 const char *const *constpapszOptions, GDALProgressFunc pfnProgress,
1396 void *pProgressData) CPL_WARN_UNUSED_RESULT;
1397
1399 int nOverviewCount,
1400 GDALRasterBandH *pahOverviewBands,
1401 const char *pszResampling,
1402 GDALProgressFunc pfnProgress,
1403 void *pProgressData);
1404
1406 int nOverviewCount,
1407 GDALRasterBandH *pahOverviewBands,
1408 const char *pszResampling,
1409 GDALProgressFunc pfnProgress,
1410 void *pProgressData,
1411 CSLConstList papszOptions);
1412
1415
1416/* Defined here to avoid circular dependency with ogr_api.h */
1418
1419OGRLayerH CPL_DLL GDALDatasetGetLayerByName(GDALDatasetH, const char *);
1420int CPL_DLL GDALDatasetIsLayerPrivate(GDALDatasetH, int);
1422OGRLayerH CPL_DLL GDALDatasetCreateLayer(GDALDatasetH, const char *,
1426 const char *,
1428 CSLConstList);
1430 CSLConstList);
1433 OGRLayerH *phBelongingLayer,
1434 double *pdfProgressPct,
1435 GDALProgressFunc pfnProgress,
1436 void *pProgressData);
1437int CPL_DLL GDALDatasetTestCapability(GDALDatasetH, const char *);
1438OGRLayerH CPL_DLL GDALDatasetExecuteSQL(GDALDatasetH, const char *,
1439 OGRGeometryH, const char *);
1445OGRErr CPL_DLL GDALDatasetStartTransaction(GDALDatasetH hDS, int bForce);
1449
1452
1456 const char *pszName);
1458 OGRFieldDomainH hFieldDomain,
1459 char **ppszFailureReason);
1460bool CPL_DLL GDALDatasetDeleteFieldDomain(GDALDatasetH hDS, const char *pszName,
1461 char **ppszFailureReason);
1463 OGRFieldDomainH hFieldDomain,
1464 char **ppszFailureReason);
1465
1469 const char *pszName);
1470
1472 GDALRelationshipH hRelationship,
1473 char **ppszFailureReason);
1475 const char *pszName,
1476 char **ppszFailureReason);
1478 GDALRelationshipH hRelationship,
1479 char **ppszFailureReason);
1480
1483typedef void (*GDALQueryLoggerFunc)(const char *pszSQL, const char *pszError,
1484 int64_t lNumRecords,
1485 int64_t lExecutionTimeMilliseconds,
1486 void *pQueryLoggerArg);
1487
1505 GDALDatasetH hDS, GDALQueryLoggerFunc pfnQueryLoggerFunc,
1506 void *poQueryLoggerArg);
1507
1508/* ==================================================================== */
1509/* Informational utilities about subdatasets in file names */
1510/* ==================================================================== */
1511
1523GDALSubdatasetInfoH CPL_DLL GDALGetSubdatasetInfo(const char *pszFileName);
1524
1536
1545char CPL_DLL *
1547
1558 const char *pszNewPath);
1559
1566
1567/* ==================================================================== */
1568/* GDALRasterBand ... one band/channel in a dataset. */
1569/* ==================================================================== */
1570
1571/* Note: the only user of SRCVAL() is alg/gdal_simplesurf.cpp */
1572
1573/* clang-format off */
1578#define SRCVAL(papoSource, eSrcType, ii) \
1579 (eSrcType == GDT_Byte ? CPL_REINTERPRET_CAST(const GByte *, papoSource)[ii] : \
1580 eSrcType == GDT_Int8 ? CPL_REINTERPRET_CAST(const GInt8 *, papoSource)[ii] : \
1581 eSrcType == GDT_UInt16 ? CPL_REINTERPRET_CAST(const GUInt16 *, papoSource)[ii] : \
1582 eSrcType == GDT_Int16 ? CPL_REINTERPRET_CAST(const GInt16 *, papoSource)[ii] : \
1583 eSrcType == GDT_UInt32 ? CPL_REINTERPRET_CAST(const GUInt32 *, papoSource)[ii] : \
1584 eSrcType == GDT_Int32 ? CPL_REINTERPRET_CAST(const GInt32 *, papoSource)[ii] : \
1585 eSrcType == GDT_UInt64 ? CPL_STATIC_CAST(double, CPL_REINTERPRET_CAST(const GUInt64 *, papoSource)[ii]) : \
1586 eSrcType == GDT_Int64 ? CPL_STATIC_CAST(double, CPL_REINTERPRET_CAST(const GUInt64 *, papoSource)[ii]) : \
1587 eSrcType == GDT_Float32 ? CPL_STATIC_CAST(double, CPL_REINTERPRET_CAST(const float *, papoSource)[ii]) : \
1588 eSrcType == GDT_Float64 ? CPL_REINTERPRET_CAST(const double *, papoSource)[ii] : \
1589 eSrcType == GDT_CInt16 ? CPL_REINTERPRET_CAST(const GInt16 *, papoSource)[(ii)*2] : \
1590 eSrcType == GDT_CInt32 ? CPL_REINTERPRET_CAST(const GInt32 *, papoSource)[(ii)*2] : \
1591 eSrcType == GDT_CFloat32 ? CPL_STATIC_CAST(double, CPL_REINTERPRET_CAST(const float *, papoSource)[ii*2]) : \
1592 eSrcType == GDT_CFloat64 ? CPL_REINTERPRET_CAST(const double *, papoSource)[ii*2] : \
1593 0)
1594
1595/* clang-format on */
1596
1599typedef CPLErr (*GDALDerivedPixelFunc)(void **papoSources, int nSources,
1600 void *pData, int nBufXSize,
1601 int nBufYSize, GDALDataType eSrcType,
1602 GDALDataType eBufType, int nPixelSpace,
1603 int nLineSpace);
1604
1608 void **papoSources, int nSources, void *pData, int nBufXSize, int nBufYSize,
1609 GDALDataType eSrcType, GDALDataType eBufType, int nPixelSpace,
1610 int nLineSpace, CSLConstList papszFunctionArgs);
1611
1613void CPL_DLL CPL_STDCALL GDALGetBlockSize(GDALRasterBandH, int *pnXSize,
1614 int *pnYSize);
1615
1617 int nXBlockOff,
1618 int nYBlockOff, int *pnXValid,
1619 int *pnYValid);
1620
1621CPLErr CPL_DLL CPL_STDCALL GDALRasterAdviseRead(GDALRasterBandH hRB,
1622 int nDSXOff, int nDSYOff,
1623 int nDSXSize, int nDSYSize,
1624 int nBXSize, int nBYSize,
1625 GDALDataType eBDataType,
1626 CSLConstList papszOptions);
1627
1628CPLErr CPL_DLL CPL_STDCALL GDALRasterIO(GDALRasterBandH hRBand,
1629 GDALRWFlag eRWFlag, int nDSXOff,
1630 int nDSYOff, int nDSXSize, int nDSYSize,
1631 void *pBuffer, int nBXSize, int nBYSize,
1632 GDALDataType eBDataType,
1633 int nPixelSpace,
1634 int nLineSpace) CPL_WARN_UNUSED_RESULT;
1635CPLErr CPL_DLL CPL_STDCALL GDALRasterIOEx(
1636 GDALRasterBandH hRBand, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff,
1637 int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize,
1638 GDALDataType eBDataType, GSpacing nPixelSpace, GSpacing nLineSpace,
1640CPLErr CPL_DLL CPL_STDCALL GDALReadBlock(GDALRasterBandH, int, int,
1641 void *) CPL_WARN_UNUSED_RESULT;
1642CPLErr CPL_DLL CPL_STDCALL GDALWriteBlock(GDALRasterBandH, int, int,
1643 void *) CPL_WARN_UNUSED_RESULT;
1644int CPL_DLL CPL_STDCALL GDALGetRasterBandXSize(GDALRasterBandH);
1645int CPL_DLL CPL_STDCALL GDALGetRasterBandYSize(GDALRasterBandH);
1647int CPL_DLL CPL_STDCALL GDALGetBandNumber(GDALRasterBandH);
1649
1657int CPL_DLL CPL_STDCALL GDALHasArbitraryOverviews(GDALRasterBandH);
1658int CPL_DLL CPL_STDCALL GDALGetOverviewCount(GDALRasterBandH);
1659GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetOverview(GDALRasterBandH, int);
1660double CPL_DLL CPL_STDCALL GDALGetRasterNoDataValue(GDALRasterBandH, int *);
1661int64_t CPL_DLL CPL_STDCALL GDALGetRasterNoDataValueAsInt64(GDALRasterBandH,
1662 int *);
1663uint64_t CPL_DLL CPL_STDCALL GDALGetRasterNoDataValueAsUInt64(GDALRasterBandH,
1664 int *);
1665CPLErr CPL_DLL CPL_STDCALL GDALSetRasterNoDataValue(GDALRasterBandH, double);
1667 int64_t);
1669 uint64_t);
1671char CPL_DLL **CPL_STDCALL GDALGetRasterCategoryNames(GDALRasterBandH);
1673 CSLConstList);
1674double CPL_DLL CPL_STDCALL GDALGetRasterMinimum(GDALRasterBandH,
1675 int *pbSuccess);
1676double CPL_DLL CPL_STDCALL GDALGetRasterMaximum(GDALRasterBandH,
1677 int *pbSuccess);
1678CPLErr CPL_DLL CPL_STDCALL GDALGetRasterStatistics(
1679 GDALRasterBandH, int bApproxOK, int bForce, double *pdfMin, double *pdfMax,
1680 double *pdfMean, double *pdfStdDev);
1681CPLErr CPL_DLL CPL_STDCALL
1682GDALComputeRasterStatistics(GDALRasterBandH, int bApproxOK, double *pdfMin,
1683 double *pdfMax, double *pdfMean, double *pdfStdDev,
1684 GDALProgressFunc pfnProgress, void *pProgressData);
1685CPLErr CPL_DLL CPL_STDCALL GDALSetRasterStatistics(GDALRasterBandH hBand,
1686 double dfMin, double dfMax,
1687 double dfMean,
1688 double dfStdDev);
1689
1692
1693const char CPL_DLL *CPL_STDCALL GDALGetRasterUnitType(GDALRasterBandH);
1694CPLErr CPL_DLL CPL_STDCALL GDALSetRasterUnitType(GDALRasterBandH hBand,
1695 const char *pszNewValue);
1696double CPL_DLL CPL_STDCALL GDALGetRasterOffset(GDALRasterBandH, int *pbSuccess);
1697CPLErr CPL_DLL CPL_STDCALL GDALSetRasterOffset(GDALRasterBandH hBand,
1698 double dfNewOffset);
1699double CPL_DLL CPL_STDCALL GDALGetRasterScale(GDALRasterBandH, int *pbSuccess);
1700CPLErr CPL_DLL CPL_STDCALL GDALSetRasterScale(GDALRasterBandH hBand,
1701 double dfNewOffset);
1702CPLErr CPL_DLL CPL_STDCALL GDALComputeRasterMinMax(GDALRasterBandH hBand,
1703 int bApproxOK,
1704 double adfMinMax[2]);
1706 double *pdfMin, double *pdfMax,
1707 int *pnMinX, int *pnMinY,
1708 int *pnMaxX, int *pnMaxY);
1709CPLErr CPL_DLL CPL_STDCALL GDALFlushRasterCache(GDALRasterBandH hBand);
1710CPLErr CPL_DLL CPL_STDCALL GDALDropRasterCache(GDALRasterBandH hBand);
1711CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram(
1712 GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets,
1713 int *panHistogram, int bIncludeOutOfRange, int bApproxOK,
1714 GDALProgressFunc pfnProgress, void *pProgressData)
1716 CPL_WARN_DEPRECATED("Use GDALGetRasterHistogramEx() instead")
1718 ;
1719CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogramEx(
1720 GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets,
1721 GUIntBig *panHistogram, int bIncludeOutOfRange, int bApproxOK,
1722 GDALProgressFunc pfnProgress, void *pProgressData);
1723CPLErr CPL_DLL CPL_STDCALL
1724GDALGetDefaultHistogram(GDALRasterBandH hBand, double *pdfMin, double *pdfMax,
1725 int *pnBuckets, int **ppanHistogram, int bForce,
1726 GDALProgressFunc pfnProgress, void *pProgressData)
1728 CPL_WARN_DEPRECATED("Use GDALGetDefaultHistogramEx() instead")
1730 ;
1731CPLErr CPL_DLL CPL_STDCALL
1732GDALGetDefaultHistogramEx(GDALRasterBandH hBand, double *pdfMin, double *pdfMax,
1733 int *pnBuckets, GUIntBig **ppanHistogram, int bForce,
1734 GDALProgressFunc pfnProgress, void *pProgressData);
1735CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram(GDALRasterBandH hBand,
1736 double dfMin, double dfMax,
1737 int nBuckets,
1738 int *panHistogram)
1740 CPL_WARN_DEPRECATED("Use GDALSetDefaultHistogramEx() instead")
1742 ;
1743CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogramEx(GDALRasterBandH hBand,
1744 double dfMin, double dfMax,
1745 int nBuckets,
1746 GUIntBig *panHistogram);
1747int CPL_DLL CPL_STDCALL GDALGetRandomRasterSample(GDALRasterBandH, int,
1748 float *);
1750 int);
1751GDALRasterBandH CPL_DLL CPL_STDCALL
1753CPLErr CPL_DLL CPL_STDCALL GDALFillRaster(GDALRasterBandH hBand,
1754 double dfRealValue,
1755 double dfImaginaryValue);
1756CPLErr CPL_DLL CPL_STDCALL GDALComputeBandStats(
1757 GDALRasterBandH hBand, int nSampleStep, double *pdfMean, double *pdfStdDev,
1758 GDALProgressFunc pfnProgress, void *pProgressData);
1760 int nOverviewCount,
1761 GDALRasterBandH *pahOverviews,
1762 GDALProgressFunc pfnProgress,
1763 void *pProgressData);
1764
1765GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
1767CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultRAT(GDALRasterBandH,
1769CPLErr CPL_DLL CPL_STDCALL GDALAddDerivedBandPixelFunc(
1770 const char *pszName, GDALDerivedPixelFunc pfnPixelFunc);
1772 const char *pszName, GDALDerivedPixelFuncWithArgs pfnPixelFunc,
1773 const char *pszMetadata);
1774
1776 double dfPixel, double dfLine,
1777 GDALRIOResampleAlg eInterpolation,
1778 double *pdfRealValue,
1779 double *pdfImagValue);
1780
1782 GDALRasterBandH hBand, double dfGeolocX, double dfGeolocY,
1783 OGRSpatialReferenceH hSRS, GDALRIOResampleAlg eInterpolation,
1784 double *pdfRealValue, double *pdfImagValue,
1785 CSLConstList papszTransformerOptions);
1786
1790
1830 const char *pszFuncName, void *pUserData, CSLConstList papszFunctionArgs,
1831 int nInBands, GDALDataType eInDT, double *padfInNoData, int *pnOutBands,
1832 GDALDataType *peOutDT, double **ppadfOutNoData, const char *pszVRTPath,
1833 VRTPDWorkingDataPtr *ppWorkingData);
1834
1845 const char *pszFuncName, void *pUserData, VRTPDWorkingDataPtr pWorkingData);
1846
1878 const char *pszFuncName, void *pUserData, VRTPDWorkingDataPtr pWorkingData,
1879 CSLConstList papszFunctionArgs, int nBufXSize, int nBufYSize,
1880 const void *pInBuffer, size_t nInBufferSize, GDALDataType eInDT,
1881 int nInBands, const double *padfInNoData, void *pOutBuffer,
1882 size_t nOutBufferSize, GDALDataType eOutDT, int nOutBands,
1883 const double *padfOutNoData, double dfSrcXOff, double dfSrcYOff,
1884 double dfSrcXSize, double dfSrcYSize, const double adfSrcGT[/*6*/],
1885 const char *pszVRTPath, CSLConstList papszExtra);
1886
1888 const char *pszFuncName, void *pUserData, const char *pszXMLMetadata,
1889 GDALDataType eRequestedInputDT, const GDALDataType *paeSupportedInputDT,
1890 size_t nSupportedInputDTSize, const int *panSupportedInputBandCount,
1891 size_t nSupportedInputBandCountSize,
1894 GDALVRTProcessedDatasetFuncProcess pfnProcess, CSLConstList papszOptions);
1895
1896GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetMaskBand(GDALRasterBandH hBand);
1897int CPL_DLL CPL_STDCALL GDALGetMaskFlags(GDALRasterBandH hBand);
1898CPLErr CPL_DLL CPL_STDCALL GDALCreateMaskBand(GDALRasterBandH hBand,
1899 int nFlags);
1900bool CPL_DLL GDALIsMaskBand(GDALRasterBandH hBand);
1901
1903#define GMF_ALL_VALID 0x01
1906#define GMF_PER_DATASET 0x02
1909#define GMF_ALPHA 0x04
1912#define GMF_NODATA 0x08
1913
1917#define GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED 0x01
1918
1923#define GDAL_DATA_COVERAGE_STATUS_DATA 0x02
1924
1930#define GDAL_DATA_COVERAGE_STATUS_EMPTY 0x04
1931
1932int CPL_DLL CPL_STDCALL GDALGetDataCoverageStatus(GDALRasterBandH hBand,
1933 int nXOff, int nYOff,
1934 int nXSize, int nYSize,
1935 int nMaskFlagStop,
1936 double *pdfDataPct);
1937
1939
1954
1956 GDALRasterBandH hBand,
1958
1989
1995 double constant) CPL_WARN_UNUSED_RESULT;
1997 double constant, GDALRasterAlgebraBinaryOperation eOp,
1999
2003
2006
2008 size_t nBandCount, GDALRasterBandH *pahBands) CPL_WARN_UNUSED_RESULT;
2010 GDALRasterBandH hBand, double dfConstant) CPL_WARN_UNUSED_RESULT;
2012 size_t nBandCount, GDALRasterBandH *pahBands) CPL_WARN_UNUSED_RESULT;
2014 GDALRasterBandH hBand, double dfConstant) CPL_WARN_UNUSED_RESULT;
2016 size_t nBandCount, GDALRasterBandH *pahBands) CPL_WARN_UNUSED_RESULT;
2017
2018/* ==================================================================== */
2019/* GDALAsyncReader */
2020/* ==================================================================== */
2021
2023 GDALAsyncReaderH hARIO, double dfTimeout, int *pnXBufOff, int *pnYBufOff,
2024 int *pnXBufSize, int *pnYBufSize);
2025int CPL_DLL CPL_STDCALL GDALARLockBuffer(GDALAsyncReaderH hARIO,
2026 double dfTimeout);
2027void CPL_DLL CPL_STDCALL GDALARUnlockBuffer(GDALAsyncReaderH hARIO);
2028
2029/* -------------------------------------------------------------------- */
2030/* Helper functions. */
2031/* -------------------------------------------------------------------- */
2032int CPL_DLL CPL_STDCALL GDALGeneralCmdLineProcessor(int nArgc,
2033 char ***ppapszArgv,
2034 int nOptions);
2035void CPL_DLL CPL_STDCALL GDALSwapWords(void *pData, int nWordSize,
2036 int nWordCount, int nWordSkip);
2037void CPL_DLL CPL_STDCALL GDALSwapWordsEx(void *pData, int nWordSize,
2038 size_t nWordCount, int nWordSkip);
2039
2040void CPL_DLL CPL_STDCALL GDALCopyWords(const void *CPL_RESTRICT pSrcData,
2041 GDALDataType eSrcType,
2042 int nSrcPixelOffset,
2043 void *CPL_RESTRICT pDstData,
2044 GDALDataType eDstType,
2045 int nDstPixelOffset, int nWordCount);
2046
2047void CPL_DLL CPL_STDCALL GDALCopyWords64(
2048 const void *CPL_RESTRICT pSrcData, GDALDataType eSrcType,
2049 int nSrcPixelOffset, void *CPL_RESTRICT pDstData, GDALDataType eDstType,
2050 int nDstPixelOffset, GPtrDiff_t nWordCount);
2051
2052void CPL_DLL GDALCopyBits(const GByte *pabySrcData, int nSrcOffset,
2053 int nSrcStep, GByte *pabyDstData, int nDstOffset,
2054 int nDstStep, int nBitCount, int nStepCount);
2055
2056void CPL_DLL GDALDeinterleave(const void *pSourceBuffer, GDALDataType eSourceDT,
2057 int nComponents, void **ppDestBuffer,
2058 GDALDataType eDestDT, size_t nIters);
2059
2060void CPL_DLL GDALTranspose2D(const void *pSrc, GDALDataType eSrcType,
2061 void *pDst, GDALDataType eDstType,
2062 size_t nSrcWidth, size_t nSrcHeight);
2063
2064double CPL_DLL GDALGetNoDataReplacementValue(GDALDataType, double);
2065
2066int CPL_DLL CPL_STDCALL GDALLoadWorldFile(const char *, double *);
2067int CPL_DLL CPL_STDCALL GDALReadWorldFile(const char *, const char *, double *);
2068int CPL_DLL CPL_STDCALL GDALWriteWorldFile(const char *, const char *,
2069 double *);
2070int CPL_DLL CPL_STDCALL GDALLoadTabFile(const char *, double *, char **, int *,
2071 GDAL_GCP **);
2072int CPL_DLL CPL_STDCALL GDALReadTabFile(const char *, double *, char **, int *,
2073 GDAL_GCP **);
2074int CPL_DLL CPL_STDCALL GDALLoadOziMapFile(const char *, double *, char **,
2075 int *, GDAL_GCP **);
2076int CPL_DLL CPL_STDCALL GDALReadOziMapFile(const char *, double *, char **,
2077 int *, GDAL_GCP **);
2078
2079const char CPL_DLL *CPL_STDCALL GDALDecToDMS(double, const char *, int);
2080double CPL_DLL CPL_STDCALL GDALPackedDMSToDec(double);
2081double CPL_DLL CPL_STDCALL GDALDecToPackedDMS(double);
2082
2083/* Note to developers : please keep this section in sync with ogr_core.h */
2084
2085#ifndef GDAL_VERSION_INFO_DEFINED
2086#ifndef DOXYGEN_SKIP
2087#define GDAL_VERSION_INFO_DEFINED
2088#endif
2089const char CPL_DLL *CPL_STDCALL GDALVersionInfo(const char *);
2090#endif
2091
2092#ifndef GDAL_CHECK_VERSION
2093
2094int CPL_DLL CPL_STDCALL GDALCheckVersion(int nVersionMajor, int nVersionMinor,
2095 const char *pszCallingComponentName);
2096
2100#define GDAL_CHECK_VERSION(pszCallingComponentName) \
2101 GDALCheckVersion(GDAL_VERSION_MAJOR, GDAL_VERSION_MINOR, \
2102 pszCallingComponentName)
2103
2104#endif
2105
2107#ifdef GDAL_COMPILATION
2108#define GDALExtractRPCInfoV1 GDALExtractRPCInfo
2109#else
2110#define GDALRPCInfo GDALRPCInfoV2
2111#define GDALExtractRPCInfo GDALExtractRPCInfoV2
2112#endif
2113
2114/* Deprecated: use GDALRPCInfoV2 */
2115typedef struct
2116{
2117 double dfLINE_OFF;
2118 double dfSAMP_OFF;
2119 double dfLAT_OFF;
2120 double dfLONG_OFF;
2121 double dfHEIGHT_OFF;
2122
2123 double dfLINE_SCALE;
2124 double dfSAMP_SCALE;
2125 double dfLAT_SCALE;
2126 double dfLONG_SCALE;
2127 double dfHEIGHT_SCALE;
2128
2129 double adfLINE_NUM_COEFF[20];
2130 double adfLINE_DEN_COEFF[20];
2131 double adfSAMP_NUM_COEFF[20];
2132 double adfSAMP_DEN_COEFF[20];
2133
2134 double dfMIN_LONG;
2135 double dfMIN_LAT;
2136 double dfMAX_LONG;
2137 double dfMAX_LAT;
2138} GDALRPCInfoV1;
2139
2141
2144typedef struct
2145{
2146 double dfLINE_OFF;
2147 double dfSAMP_OFF;
2148 double dfLAT_OFF;
2149 double dfLONG_OFF;
2151
2157
2162
2163 double dfMIN_LONG;
2164 double dfMIN_LAT;
2165 double dfMAX_LONG;
2166 double dfMAX_LAT;
2167
2168 /* Those fields should be at the end. And all above fields should be the
2169 * same as in GDALRPCInfoV1 */
2170 double dfERR_BIAS;
2171 double dfERR_RAND;
2173
2175int CPL_DLL CPL_STDCALL GDALExtractRPCInfoV1(CSLConstList, GDALRPCInfoV1 *);
2177int CPL_DLL CPL_STDCALL GDALExtractRPCInfoV2(CSLConstList, GDALRPCInfoV2 *);
2178
2179/* ==================================================================== */
2180/* Color tables. */
2181/* ==================================================================== */
2182
2184typedef struct
2185{
2187 short c1;
2188
2190 short c2;
2191
2193 short c3;
2194
2196 short c4;
2198
2201void CPL_DLL CPL_STDCALL GDALDestroyColorTable(GDALColorTableH);
2204 CPL_DLL CPL_STDCALL GDALGetPaletteInterpretation(GDALColorTableH);
2205int CPL_DLL CPL_STDCALL GDALGetColorEntryCount(GDALColorTableH);
2206const GDALColorEntry CPL_DLL *CPL_STDCALL GDALGetColorEntry(GDALColorTableH,
2207 int);
2208int CPL_DLL CPL_STDCALL GDALGetColorEntryAsRGB(GDALColorTableH, int,
2209 GDALColorEntry *);
2210void CPL_DLL CPL_STDCALL GDALSetColorEntry(GDALColorTableH, int,
2211 const GDALColorEntry *);
2212void CPL_DLL CPL_STDCALL GDALCreateColorRamp(GDALColorTableH hTable,
2213 int nStartIndex,
2214 const GDALColorEntry *psStartColor,
2215 int nEndIndex,
2216 const GDALColorEntry *psEndColor);
2217
2218/* ==================================================================== */
2219/* Raster Attribute Table */
2220/* ==================================================================== */
2221
2232
2234#define GFT_MaxCount (GFT_WKBGeometry + 1)
2235
2237typedef enum
2259
2267
2268GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
2270
2271void CPL_DLL CPL_STDCALL
2273
2274int CPL_DLL CPL_STDCALL GDALRATGetColumnCount(GDALRasterAttributeTableH);
2275
2276const char CPL_DLL *CPL_STDCALL GDALRATGetNameOfCol(GDALRasterAttributeTableH,
2277 int);
2278GDALRATFieldUsage CPL_DLL CPL_STDCALL
2280GDALRATFieldType CPL_DLL CPL_STDCALL
2282
2283const char CPL_DLL *GDALGetRATFieldTypeName(GDALRATFieldType);
2284const char CPL_DLL *GDALGetRATFieldUsageName(GDALRATFieldUsage);
2285
2286int CPL_DLL CPL_STDCALL GDALRATGetColOfUsage(GDALRasterAttributeTableH,
2288int CPL_DLL CPL_STDCALL GDALRATGetRowCount(GDALRasterAttributeTableH);
2289
2290const char CPL_DLL *CPL_STDCALL
2292int CPL_DLL CPL_STDCALL GDALRATGetValueAsInt(GDALRasterAttributeTableH,
2293 int iRow, int iField);
2294double CPL_DLL CPL_STDCALL GDALRATGetValueAsDouble(GDALRasterAttributeTableH,
2295 int iRow, int iField);
2297 int iField);
2298
2299#ifdef __cplusplus
2300extern "C++"
2301{
2302#endif
2303
2308 struct GDALRATDateTime
2309 { int nYear; int nMonth; int nDay; int nHour; int nMinute; float fSecond; int nTimeZoneHour; int nTimeZoneMinute; bool bPositiveTimeZone; bool bIsValid;
2320
2321#ifdef __cplusplus
2322 GDALRATDateTime()
2323 : nYear(0), nMonth(0), nDay(0), nHour(0), nMinute(0), fSecond(0),
2325 bIsValid(false)
2326 {
2327 }
2328#endif
2329 };
2330
2331#ifdef __cplusplus
2332}
2333#endif
2334
2336typedef struct GDALRATDateTime GDALRATDateTime;
2338
2340 int iField,
2341 GDALRATDateTime *psDateTime);
2343 int iRow, int iField,
2344 size_t *pnWKBSize);
2345
2346void CPL_DLL CPL_STDCALL GDALRATSetValueAsString(GDALRasterAttributeTableH,
2347 int iRow, int iField,
2348 const char *);
2349void CPL_DLL CPL_STDCALL GDALRATSetValueAsInt(GDALRasterAttributeTableH,
2350 int iRow, int iField, int);
2351void CPL_DLL CPL_STDCALL GDALRATSetValueAsDouble(GDALRasterAttributeTableH,
2352 int iRow, int iField, double);
2354 int iField, bool);
2356 int iField,
2357 const GDALRATDateTime *psDateTime);
2359 int iField, const void *pabyWKB,
2360 size_t nWKBSize);
2361
2362int CPL_DLL CPL_STDCALL
2364
2365CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsDouble(
2366 GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField,
2367 int iStartRow, int iLength, double *pdfData);
2368CPLErr CPL_DLL CPL_STDCALL
2370 int iField, int iStartRow, int iLength, int *pnData);
2371CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsString(
2372 GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField,
2373 int iStartRow, int iLength, char **papszStrList);
2375 GDALRWFlag eRWFlag, int iField,
2376 int iStartRow, int iLength,
2377 bool *pbData);
2379 GDALRWFlag eRWFlag, int iField,
2380 int iStartRow, int iLength,
2381 GDALRATDateTime *pasDateTime);
2383 GDALRWFlag eRWFlag, int iField,
2384 int iStartRow, int iLength,
2385 GByte **ppabyWKB,
2386 size_t *pnWKBSize);
2387
2388void CPL_DLL CPL_STDCALL GDALRATSetRowCount(GDALRasterAttributeTableH, int);
2390 const char *, GDALRATFieldType,
2393 double, double);
2395 double *, double *);
2396CPLErr CPL_DLL CPL_STDCALL GDALRATSetTableType(
2397 GDALRasterAttributeTableH hRAT, const GDALRATTableType eInTableType);
2398GDALRATTableType CPL_DLL CPL_STDCALL
2400CPLErr CPL_DLL CPL_STDCALL
2402GDALColorTableH CPL_DLL CPL_STDCALL
2404void CPL_DLL CPL_STDCALL GDALRATDumpReadable(GDALRasterAttributeTableH, FILE *);
2405GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
2407
2408void CPL_DLL *CPL_STDCALL GDALRATSerializeJSON(GDALRasterAttributeTableH)
2410
2411int CPL_DLL CPL_STDCALL GDALRATGetRowOfValue(GDALRasterAttributeTableH, double);
2412void CPL_DLL CPL_STDCALL GDALRATRemoveStatistics(GDALRasterAttributeTableH);
2413
2414/* -------------------------------------------------------------------- */
2415/* Relationships */
2416/* -------------------------------------------------------------------- */
2417
2433
2447
2448GDALRelationshipH CPL_DLL GDALRelationshipCreate(const char *, const char *,
2449 const char *,
2451void CPL_DLL CPL_STDCALL GDALDestroyRelationship(GDALRelationshipH);
2452const char CPL_DLL *GDALRelationshipGetName(GDALRelationshipH);
2459 const char *);
2463 CSLConstList);
2465 CSLConstList);
2469 CSLConstList);
2471 CSLConstList);
2476 const char *);
2479 const char *);
2482 const char *);
2483
2484/* ==================================================================== */
2485/* GDAL Cache Management */
2486/* ==================================================================== */
2487
2488void CPL_DLL CPL_STDCALL GDALSetCacheMax(int nBytes);
2489int CPL_DLL CPL_STDCALL GDALGetCacheMax(void);
2490int CPL_DLL CPL_STDCALL GDALGetCacheUsed(void);
2491void CPL_DLL CPL_STDCALL GDALSetCacheMax64(GIntBig nBytes);
2492GIntBig CPL_DLL CPL_STDCALL GDALGetCacheMax64(void);
2493GIntBig CPL_DLL CPL_STDCALL GDALGetCacheUsed64(void);
2494
2495int CPL_DLL CPL_STDCALL GDALFlushCacheBlock(void);
2496
2497/* ==================================================================== */
2498/* GDAL virtual memory */
2499/* ==================================================================== */
2500
2501CPLVirtualMem CPL_DLL *GDALDatasetGetVirtualMem(
2502 GDALDatasetH hDS, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
2503 int nYSize, int nBufXSize, int nBufYSize, GDALDataType eBufType,
2504 int nBandCount, int *panBandMap, int nPixelSpace, GIntBig nLineSpace,
2505 GIntBig nBandSpace, size_t nCacheSize, size_t nPageSizeHint,
2506 int bSingleThreadUsage, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
2507
2508CPLVirtualMem CPL_DLL *GDALRasterBandGetVirtualMem(
2509 GDALRasterBandH hBand, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
2510 int nYSize, int nBufXSize, int nBufYSize, GDALDataType eBufType,
2511 int nPixelSpace, GIntBig nLineSpace, size_t nCacheSize,
2512 size_t nPageSizeHint, int bSingleThreadUsage,
2514
2515CPLVirtualMem CPL_DLL *
2517 int *pnPixelSpace, GIntBig *pnLineSpace,
2519
2534
2535CPLVirtualMem CPL_DLL *GDALDatasetGetTiledVirtualMem(
2536 GDALDatasetH hDS, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
2537 int nYSize, int nTileXSize, int nTileYSize, GDALDataType eBufType,
2538 int nBandCount, int *panBandMap, GDALTileOrganization eTileOrganization,
2539 size_t nCacheSize, int bSingleThreadUsage,
2541
2542CPLVirtualMem CPL_DLL *GDALRasterBandGetTiledVirtualMem(
2543 GDALRasterBandH hBand, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
2544 int nYSize, int nTileXSize, int nTileYSize, GDALDataType eBufType,
2545 size_t nCacheSize, int bSingleThreadUsage,
2547
2548/* ==================================================================== */
2549/* VRTPansharpenedDataset class. */
2550/* ==================================================================== */
2551
2553 const char *pszXML, GDALRasterBandH hPanchroBand, int nInputSpectralBands,
2554 GDALRasterBandH *pahInputSpectralBands) CPL_WARN_UNUSED_RESULT;
2555
2556/* =================================================================== */
2557/* Misc API */
2558/* ==================================================================== */
2559
2560CPLXMLNode CPL_DLL *
2561GDALGetJPEG2000Structure(const char *pszFilename,
2563
2564/* ==================================================================== */
2565/* Multidimensional API_api */
2566/* ==================================================================== */
2567
2568GDALDatasetH CPL_DLL
2569GDALCreateMultiDimensional(GDALDriverH hDriver, const char *pszName,
2570 CSLConstList papszRootGroupOptions,
2572
2576 size_t nMaxStringLength) CPL_WARN_UNUSED_RESULT;
2578 size_t nMaxStringLength,
2581 const char *pszName, size_t nTotalSize, size_t nComponents,
2584const char CPL_DLL *GDALExtendedDataTypeGetName(GDALExtendedDataTypeH hEDT);
2587GDALDataType CPL_DLL
2590size_t CPL_DLL
2592GDALEDTComponentH CPL_DLL *
2594 size_t *pnCount) CPL_WARN_UNUSED_RESULT;
2596 size_t nCount);
2598 GDALExtendedDataTypeH hTargetEDT);
2600 GDALExtendedDataTypeH hSecondEDT);
2605
2606GDALEDTComponentH CPL_DLL
2607GDALEDTComponentCreate(const char *pszName, size_t nOffset,
2609void CPL_DLL GDALEDTComponentRelease(GDALEDTComponentH hComp);
2610const char CPL_DLL *GDALEDTComponentGetName(GDALEDTComponentH hComp);
2611size_t CPL_DLL GDALEDTComponentGetOffset(GDALEDTComponentH hComp);
2614
2617void CPL_DLL GDALGroupRelease(GDALGroupH hGroup);
2618const char CPL_DLL *GDALGroupGetName(GDALGroupH hGroup);
2619const char CPL_DLL *GDALGroupGetFullName(GDALGroupH hGroup);
2620char CPL_DLL **
2624 GDALGroupH hGroup, CSLConstList papszGroupOptions,
2625 CSLConstList papszArrayOptions) CPL_WARN_UNUSED_RESULT;
2626GDALMDArrayH CPL_DLL
2627GDALGroupOpenMDArray(GDALGroupH hGroup, const char *pszMDArrayName,
2630 GDALGroupH hGroup, const char *pszMDArrayName,
2633 GDALGroupH hGroup, const char *pszName, const char *pszStartingPoint,
2635char CPL_DLL **
2638GDALGroupH CPL_DLL
2639GDALGroupOpenGroup(GDALGroupH hGroup, const char *pszSubGroupName,
2642 GDALGroupH hGroup, const char *pszMDArrayName,
2644char CPL_DLL **
2647OGRLayerH CPL_DLL
2648GDALGroupOpenVectorLayer(GDALGroupH hGroup, const char *pszVectorLayerName,
2650GDALDimensionH CPL_DLL *
2651GDALGroupGetDimensions(GDALGroupH hGroup, size_t *pnCount,
2654 GDALGroupH hGroup, const char *pszName) CPL_WARN_UNUSED_RESULT;
2655GDALAttributeH CPL_DLL *
2656GDALGroupGetAttributes(GDALGroupH hGroup, size_t *pnCount,
2659GDALGroupH CPL_DLL
2660GDALGroupCreateGroup(GDALGroupH hGroup, const char *pszSubGroupName,
2662bool CPL_DLL GDALGroupDeleteGroup(GDALGroupH hGroup, const char *pszName,
2663 CSLConstList papszOptions);
2665 GDALGroupH hGroup, const char *pszName, const char *pszType,
2666 const char *pszDirection, GUInt64 nSize,
2669 GDALGroupH hGroup, const char *pszName, size_t nDimensions,
2670 GDALDimensionH *pahDimensions, GDALExtendedDataTypeH hEDT,
2672bool CPL_DLL GDALGroupDeleteMDArray(GDALGroupH hGroup, const char *pszName,
2673 CSLConstList papszOptions);
2675 GDALGroupH hGroup, const char *pszName, size_t nDimensions,
2676 const GUInt64 *panDimensions, GDALExtendedDataTypeH hEDT,
2678bool CPL_DLL GDALGroupDeleteAttribute(GDALGroupH hGroup, const char *pszName,
2679 CSLConstList papszOptions);
2680bool CPL_DLL GDALGroupRename(GDALGroupH hGroup, const char *pszNewName);
2682 GDALGroupH hGroup, const char *pszSelection, CSLConstList papszOptions);
2683size_t CPL_DLL GDALGroupGetDataTypeCount(GDALGroupH hGroup);
2685 size_t nIdx);
2686
2687void CPL_DLL GDALMDArrayRelease(GDALMDArrayH hMDArray);
2688const char CPL_DLL *GDALMDArrayGetName(GDALMDArrayH hArray);
2689const char CPL_DLL *GDALMDArrayGetFullName(GDALMDArrayH hArray);
2691size_t CPL_DLL GDALMDArrayGetDimensionCount(GDALMDArrayH hArray);
2692GDALDimensionH CPL_DLL *
2694 size_t *pnCount) CPL_WARN_UNUSED_RESULT;
2697int CPL_DLL GDALMDArrayRead(GDALMDArrayH hArray, const GUInt64 *arrayStartIdx,
2698 const size_t *count, const GInt64 *arrayStep,
2699 const GPtrDiff_t *bufferStride,
2700 GDALExtendedDataTypeH bufferDatatype,
2701 void *pDstBuffer, const void *pDstBufferAllocStart,
2702 size_t nDstBufferllocSize);
2703int CPL_DLL GDALMDArrayWrite(GDALMDArrayH hArray, const GUInt64 *arrayStartIdx,
2704 const size_t *count, const GInt64 *arrayStep,
2705 const GPtrDiff_t *bufferStride,
2706 GDALExtendedDataTypeH bufferDatatype,
2707 const void *pSrcBuffer,
2708 const void *psrcBufferAllocStart,
2709 size_t nSrcBufferllocSize);
2710int CPL_DLL GDALMDArrayAdviseRead(GDALMDArrayH hArray,
2711 const GUInt64 *arrayStartIdx,
2712 const size_t *count);
2713int CPL_DLL GDALMDArrayAdviseReadEx(GDALMDArrayH hArray,
2714 const GUInt64 *arrayStartIdx,
2715 const size_t *count,
2716 CSLConstList papszOptions);
2718 GDALMDArrayH hArray, const char *pszName) CPL_WARN_UNUSED_RESULT;
2719GDALAttributeH CPL_DLL *
2720GDALMDArrayGetAttributes(GDALMDArrayH hArray, size_t *pnCount,
2723 GDALMDArrayH hArray, const char *pszName, size_t nDimensions,
2724 const GUInt64 *panDimensions, GDALExtendedDataTypeH hEDT,
2726bool CPL_DLL GDALMDArrayDeleteAttribute(GDALMDArrayH hArray,
2727 const char *pszName,
2728 CSLConstList papszOptions);
2729bool CPL_DLL GDALMDArrayResize(GDALMDArrayH hArray,
2730 const GUInt64 *panNewDimSizes,
2731 CSLConstList papszOptions);
2732const void CPL_DLL *GDALMDArrayGetRawNoDataValue(GDALMDArrayH hArray);
2734 int *pbHasNoDataValue);
2735int64_t CPL_DLL GDALMDArrayGetNoDataValueAsInt64(GDALMDArrayH hArray,
2736 int *pbHasNoDataValue);
2737uint64_t CPL_DLL GDALMDArrayGetNoDataValueAsUInt64(GDALMDArrayH hArray,
2738 int *pbHasNoDataValue);
2739int CPL_DLL GDALMDArraySetRawNoDataValue(GDALMDArrayH hArray, const void *);
2741 double dfNoDataValue);
2743 int64_t nNoDataValue);
2745 uint64_t nNoDataValue);
2746int CPL_DLL GDALMDArraySetScale(GDALMDArrayH hArray, double dfScale);
2747int CPL_DLL GDALMDArraySetScaleEx(GDALMDArrayH hArray, double dfScale,
2748 GDALDataType eStorageType);
2749double CPL_DLL GDALMDArrayGetScale(GDALMDArrayH hArray, int *pbHasValue);
2750double CPL_DLL GDALMDArrayGetScaleEx(GDALMDArrayH hArray, int *pbHasValue,
2751 GDALDataType *peStorageType);
2752int CPL_DLL GDALMDArraySetOffset(GDALMDArrayH hArray, double dfOffset);
2753int CPL_DLL GDALMDArraySetOffsetEx(GDALMDArrayH hArray, double dfOffset,
2754 GDALDataType eStorageType);
2755double CPL_DLL GDALMDArrayGetOffset(GDALMDArrayH hArray, int *pbHasValue);
2756double CPL_DLL GDALMDArrayGetOffsetEx(GDALMDArrayH hArray, int *pbHasValue,
2757 GDALDataType *peStorageType);
2758GUInt64 CPL_DLL *GDALMDArrayGetBlockSize(GDALMDArrayH hArray, size_t *pnCount);
2759int CPL_DLL GDALMDArraySetUnit(GDALMDArrayH hArray, const char *);
2760const char CPL_DLL *GDALMDArrayGetUnit(GDALMDArrayH hArray);
2763size_t CPL_DLL *GDALMDArrayGetProcessingChunkSize(GDALMDArrayH hArray,
2764 size_t *pnCount,
2765 size_t nMaxChunkMemory);
2768 const char *pszViewExpr);
2770 size_t nNewAxisCount,
2771 const int *panMapNewAxisToOldAxis);
2774 CSLConstList papszOptions);
2776 size_t iXDim, size_t iYDim);
2778 size_t iXDim, size_t iYDim,
2779 GDALGroupH hRootGroup,
2780 CSLConstList papszOptions);
2782 GDALMDArrayH hArray, GDALDatasetH, int bApproxOK, int bForce,
2783 double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev,
2784 GUInt64 *pnValidCount, GDALProgressFunc pfnProgress, void *pProgressData);
2786 int bApproxOK, double *pdfMin,
2787 double *pdfMax, double *pdfMean,
2788 double *pdfStdDev,
2789 GUInt64 *pnValidCount,
2790 GDALProgressFunc, void *pProgressData);
2792 GDALMDArrayH hArray, GDALDatasetH, int bApproxOK, double *pdfMin,
2793 double *pdfMax, double *pdfMean, double *pdfStdDev, GUInt64 *pnValidCount,
2794 GDALProgressFunc, void *pProgressData, CSLConstList papszOptions);
2796 size_t nNewDimCount,
2797 const GDALDimensionH *pahNewDims,
2798 GDALRIOResampleAlg resampleAlg,
2799 OGRSpatialReferenceH hTargetSRS,
2800 CSLConstList papszOptions);
2802 GDALMDArrayH hArray, const char *pszGridOptions, GDALMDArrayH hXArray,
2803 GDALMDArrayH hYArray, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
2804
2805GDALMDArrayH CPL_DLL *
2807 size_t *pnCount) CPL_WARN_UNUSED_RESULT;
2808
2809GDALMDArrayH CPL_DLL *
2810GDALMDArrayGetMeshGrid(const GDALMDArrayH *pahInputArrays,
2811 size_t nCountInputArrays, size_t *pnCountOutputArrays,
2813
2814#ifdef __cplusplus
2815extern "C++"
2816{
2817#endif
2818
2823 struct
2824#ifdef __cplusplus
2825 CPL_DLL
2826#endif
2828 {
2832 uint64_t nOffset;
2834 uint64_t nSize;
2846
2847#ifdef __cplusplus
2850 : pszFilename(nullptr), nOffset(0), nSize(0), papszInfo(nullptr),
2851 pabyInlineData(nullptr)
2852 {
2853 }
2854
2856
2857 void clear();
2858
2864#endif
2865 };
2866
2867#ifdef __cplusplus
2868}
2869#endif
2870
2874
2876void CPL_DLL
2878bool CPL_DLL GDALMDArrayGetRawBlockInfo(GDALMDArrayH hArray,
2879 const uint64_t *panBlockCoordinates,
2880 GDALMDArrayRawBlockInfo *psBlockInfo);
2881
2882void CPL_DLL GDALReleaseArrays(GDALMDArrayH *arrays, size_t nCount);
2883int CPL_DLL GDALMDArrayCache(GDALMDArrayH hArray, CSLConstList papszOptions);
2884bool CPL_DLL GDALMDArrayRename(GDALMDArrayH hArray, const char *pszNewName);
2885
2887 GDALRATTableType eTableType, int nArrays, const GDALMDArrayH *ahArrays,
2888 const GDALRATFieldUsage *paeUsages);
2889
2890void CPL_DLL GDALAttributeRelease(GDALAttributeH hAttr);
2891void CPL_DLL GDALReleaseAttributes(GDALAttributeH *attributes, size_t nCount);
2892const char CPL_DLL *GDALAttributeGetName(GDALAttributeH hAttr);
2893const char CPL_DLL *GDALAttributeGetFullName(GDALAttributeH hAttr);
2896GUInt64 CPL_DLL *
2898 size_t *pnCount) CPL_WARN_UNUSED_RESULT;
2902 size_t *pnSize) CPL_WARN_UNUSED_RESULT;
2903void CPL_DLL GDALAttributeFreeRawResult(GDALAttributeH hAttr, GByte *raw,
2904 size_t nSize);
2905const char CPL_DLL *GDALAttributeReadAsString(GDALAttributeH hAttr);
2906int CPL_DLL GDALAttributeReadAsInt(GDALAttributeH hAttr);
2907int64_t CPL_DLL GDALAttributeReadAsInt64(GDALAttributeH hAttr);
2908double CPL_DLL GDALAttributeReadAsDouble(GDALAttributeH hAttr);
2909char CPL_DLL **
2911int CPL_DLL *GDALAttributeReadAsIntArray(GDALAttributeH hAttr, size_t *pnCount)
2913int64_t CPL_DLL *
2915 size_t *pnCount) CPL_WARN_UNUSED_RESULT;
2916double CPL_DLL *
2918 size_t *pnCount) CPL_WARN_UNUSED_RESULT;
2919int CPL_DLL GDALAttributeWriteRaw(GDALAttributeH hAttr, const void *, size_t);
2920int CPL_DLL GDALAttributeWriteString(GDALAttributeH hAttr, const char *);
2922int CPL_DLL GDALAttributeWriteInt(GDALAttributeH hAttr, int);
2923int CPL_DLL GDALAttributeWriteIntArray(GDALAttributeH hAttr, const int *,
2924 size_t);
2925int CPL_DLL GDALAttributeWriteInt64(GDALAttributeH hAttr, int64_t);
2926int CPL_DLL GDALAttributeWriteInt64Array(GDALAttributeH hAttr, const int64_t *,
2927 size_t);
2928int CPL_DLL GDALAttributeWriteDouble(GDALAttributeH hAttr, double);
2929int CPL_DLL GDALAttributeWriteDoubleArray(GDALAttributeH hAttr, const double *,
2930 size_t);
2931bool CPL_DLL GDALAttributeRename(GDALAttributeH hAttr, const char *pszNewName);
2932
2933void CPL_DLL GDALDimensionRelease(GDALDimensionH hDim);
2934void CPL_DLL GDALReleaseDimensions(GDALDimensionH *dims, size_t nCount);
2935const char CPL_DLL *GDALDimensionGetName(GDALDimensionH hDim);
2936const char CPL_DLL *GDALDimensionGetFullName(GDALDimensionH hDim);
2937const char CPL_DLL *GDALDimensionGetType(GDALDimensionH hDim);
2938const char CPL_DLL *GDALDimensionGetDirection(GDALDimensionH hDim);
2943 GDALMDArrayH hArray);
2944bool CPL_DLL GDALDimensionRename(GDALDimensionH hDim, const char *pszNewName);
2945
2947
2948#endif /* ndef GDAL_H_INCLUDED */
Simple container for a bounding region (rectangle).
Definition ogr_core.h:44
CPL error handling services.
CPLErr
Error category.
Definition cpl_error.h:37
Definitions for CPL mini XML Parser/Serializer.
Core portability definitions for CPL.
int GPtrDiff_t
Integer type large enough to hold the difference between 2 addresses.
Definition cpl_port.h:246
#define CPL_RESTRICT
restrict keyword to declare that pointers do not alias
Definition cpl_port.h:916
unsigned long long GUIntBig
Large unsigned integer type (generally 64-bit unsigned integer type).
Definition cpl_port.h:208
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:289
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285
GIntBig GInt64
Signed 64 bit integer type.
Definition cpl_port.h:226
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition cpl_port.h:1087
GUIntBig GUInt64
Unsigned 64 bit integer type.
Definition cpl_port.h:228
#define CPL_WARN_UNUSED_RESULT
Qualifier to warn when the return value of a function is not used.
Definition cpl_port.h:870
unsigned char GByte
Unsigned byte type.
Definition cpl_port.h:175
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition cpl_port.h:205
Virtual memory management.
GIntBig GSpacing
Type to express pixel, line or band spacing.
Definition gdal.h:386
GDALRasterBandH GDALGetOverview(GDALRasterBandH, int)
Fetch overview raster band object.
Definition gdalrasterband.cpp:3392
void GDALComposeHomographies(const double *padfHomography1, const double *padfHomography2, double *padfHomographyOut)
Compose two homographies.
Definition gdal_homography.cpp:348
GDALComputedRasterBandH GDALMeanOfNBands(size_t nBandCount, GDALRasterBandH *pahBands)
Return a band whose each pixel value is the arithmetic mean of the corresponding pixel values in the ...
Definition gdalrasterband.cpp:12713
const char * GDALGetDriverShortName(GDALDriverH)
Return the short name of a driver.
Definition gdaldriver.cpp:2122
CPLErr GDALDatasetCopyWholeRaster(GDALDatasetH hSrcDS, GDALDatasetH hDstDS, CSLConstList papszOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Copy all dataset raster data.
Definition rasterio.cpp:5106
void(* GDALQueryLoggerFunc)(const char *pszSQL, const char *pszError, int64_t lNumRecords, int64_t lExecutionTimeMilliseconds, void *pQueryLoggerArg)
Type of functions to pass to GDALDatasetSetQueryLoggerFunc.
Definition gdal.h:1483
GDALRATTableType
RAT table type (thematic or athematic).
Definition gdal.h:2263
@ GRTT_THEMATIC
Definition gdal.h:2264
@ GRTT_ATHEMATIC
Definition gdal.h:2265
const char * GDALEDTComponentGetName(GDALEDTComponentH hComp)
Return the name.
Definition gdalmultidim.cpp:11485
GDALAccess
Definition gdal.h:118
@ GA_ReadOnly
Definition gdal.h:119
@ GA_Update
Definition gdal.h:120
GDALDriverH GDALIdentifyDriver(const char *pszFilename, CSLConstList papszFileList)
Identify the driver that can open a dataset.
Definition gdaldriver.cpp:2727
bool GDALDatasetIsThreadSafe(GDALDatasetH, int nScopeFlags, CSLConstList papszOptions)
Return whether this dataset, and its related objects (typically raster bands), can be called for the ...
Definition gdalthreadsafedataset.cpp:1154
const char * GDALGroupGetFullName(GDALGroupH hGroup)
Return the full name of the group.
Definition gdalmultidim.cpp:11560
int GDALAttributeWriteInt64Array(GDALAttributeH hAttr, const int64_t *, size_t)
Write an attribute from an array of int64_t.
Definition gdalmultidim.cpp:14038
void GDALSetColorEntry(GDALColorTableH, int, const GDALColorEntry *)
Set entry in color table.
Definition gdalcolortable.cpp:229
CPLErr GDALSetRasterScale(GDALRasterBandH hBand, double dfNewOffset)
Set scaling ratio.
Definition gdalrasterband.cpp:3747
CPLErr GDALRATSetLinearBinning(GDALRasterAttributeTableH, double, double)
Set linear binning information.
Definition gdal_rat.cpp:1032
OGRLayerH GDALDatasetGetLayerByName(GDALDatasetH, const char *)
Fetch a layer by name.
Definition gdaldataset.cpp:5198
CPLErr GDALWriteBlock(GDALRasterBandH, int, int, void *)
Write a block of image data efficiently.
Definition gdalrasterband.cpp:1279
int GDALAttributeWriteIntArray(GDALAttributeH hAttr, const int *, size_t)
Write an attribute from an array of int.
Definition gdalmultidim.cpp:14013
GDALDatasetH GDALCreate(GDALDriverH hDriver, const char *, int, int, int, GDALDataType, CSLConstList)
Create a new dataset with this driver.
Definition gdaldriver.cpp:320
double GDALGetRasterNoDataValue(GDALRasterBandH, int *)
Fetch the no data value for this band.
Definition gdalrasterband.cpp:2366
int GDALMDArraySetRawNoDataValue(GDALMDArrayH hArray, const void *)
Set the nodata value as a "raw" value.
Definition gdalmultidim.cpp:12652
int GDALGetDataTypeSizeBits(GDALDataType eDataType)
Get data type size in bits.
Definition gdal_misc.cpp:426
void GDALDatasetClearStatistics(GDALDatasetH hDS)
Clear statistics.
Definition gdaldataset.cpp:9796
double GDALGetNoDataReplacementValue(GDALDataType, double)
Returns a replacement value for a nodata value or 0 if dfNoDataValue is out of range for the specifie...
Definition gdal_misc.cpp:5552
int GDALGetRandomRasterSample(GDALRasterBandH, int, float *)
Undocumented.
Definition gdal_misc.cpp:1495
const char * GDALRelationshipGetForwardPathLabel(GDALRelationshipH)
Get the label of the forward path for the relationship.
Definition gdalrelationship.cpp:474
int GDALGetCacheUsed(void)
Get cache memory used.
Definition gdalrasterblock.cpp:271
CPLErr GDALSetGeoTransform(GDALDatasetH, const double *)
Set the affine transformation coefficients.
Definition gdaldataset.cpp:1641
int GDALRATGetRowOfValue(GDALRasterAttributeTableH, double)
Get row for pixel value.
Definition gdal_rat.cpp:906
void GDALSetCacheMax64(GIntBig nBytes)
Set maximum cache memory.
Definition gdalrasterblock.cpp:129
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)
Create a CPLVirtualMem object from a GDAL rasterband object, with tiling organization.
Definition gdalvirtualmem.cpp:1519
GDALComputedRasterBandH GDALMaximumOfNBands(size_t nBandCount, GDALRasterBandH *pahBands)
Return a band whose each pixel value is the maximum of the corresponding pixel values in the input ba...
Definition gdalrasterband.cpp:12565
void GDALDeinterleave(const void *pSourceBuffer, GDALDataType eSourceDT, int nComponents, void **ppDestBuffer, GDALDataType eDestDT, size_t nIters)
Definition rasterio.cpp:6075
GDALMDArrayH GDALRasterBandAsMDArray(GDALRasterBandH)
Return a view of this raster band as a 2D multidimensional GDALMDArray.
Definition gdalmultidim.cpp:14282
bool GDALGroupDeleteGroup(GDALGroupH hGroup, const char *pszName, CSLConstList papszOptions)
Delete a sub-group from a group.
Definition gdalmultidim.cpp:12006
bool GDALDatasetAddFieldDomain(GDALDatasetH hDS, OGRFieldDomainH hFieldDomain, char **ppszFailureReason)
Add a field domain to the dataset.
Definition gdaldataset.cpp:9959
char ** GDALGetMetadata(GDALMajorObjectH, const char *)
Fetch metadata.
Definition gdalmajorobject.cpp:244
GDALDriverH GDALGetDatasetDriver(GDALDatasetH)
Fetch the driver to which this dataset relates.
Definition gdaldataset.cpp:1721
GDALAttributeH GDALGroupGetAttribute(GDALGroupH hGroup, const char *pszName)
Return an attribute by its name.
Definition gdalmultidim.cpp:11850
char ** GDALDatasetGetCompressionFormats(GDALDatasetH hDS, int nXOff, int nYOff, int nXSize, int nYSize, int nBandCount, const int *panBandList)
Return the compression formats that can be natively obtained for the window of interest and requested...
Definition gdaldataset.cpp:10654
const char * GDALDimensionGetDirection(GDALDimensionH hDim)
Return dimension direction.
Definition gdalmultidim.cpp:14156
GDALDimensionH * GDALGroupGetDimensions(GDALGroupH hGroup, size_t *pnCount, CSLConstList papszOptions)
Return the list of dimensions contained in this group and used by its arrays.
Definition gdalmultidim.cpp:11824
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)
Create a CPLVirtualMem object from a GDAL dataset object, with tiling organization.
Definition gdalvirtualmem.cpp:1414
GDALMDArrayH GDALGroupOpenMDArray(GDALGroupH hGroup, const char *pszMDArrayName, CSLConstList papszOptions)
Open and return a multidimensional array.
Definition gdalmultidim.cpp:11626
int GDALGetMaskFlags(GDALRasterBandH hBand)
Return the status flags of the mask band associated with the band.
Definition gdalrasterband.cpp:9409
GDALMDArrayH GDALMDArrayGetResampled(GDALMDArrayH hArray, size_t nNewDimCount, const GDALDimensionH *pahNewDims, GDALRIOResampleAlg resampleAlg, OGRSpatialReferenceH hTargetSRS, CSLConstList papszOptions)
Return an array that is a resampled / reprojected view of the current array.
Definition gdalmultidim.cpp:13125
CPLErr GDALSetProjection(GDALDatasetH, const char *)
Set the projection reference string for this dataset.
Definition gdaldataset.cpp:1464
CPLErr GDALRasterBandCopyWholeRaster(GDALRasterBandH hSrcBand, GDALRasterBandH hDstBand, const char *const *constpapszOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Copy a whole raster band.
Definition rasterio.cpp:5434
GDALAsyncStatusType GDALGetAsyncStatusTypeByName(const char *)
Get AsyncStatusType by symbolic name.
Definition gdal_misc.cpp:1126
void GDALDatasetMarkSuppressOnClose(GDALDatasetH)
Set that the dataset must be deleted on close.
Definition gdaldataset.cpp:1934
void GDALRelationshipSetType(GDALRelationshipH, GDALRelationshipType)
Sets the type of the relationship.
Definition gdalrelationship.cpp:443
GDALDatasetH GDALMDArrayAsClassicDatasetEx(GDALMDArrayH hArray, size_t iXDim, size_t iYDim, GDALGroupH hRootGroup, CSLConstList papszOptions)
Return a view of this array as a "classic" GDALDataset (ie 2D).
Definition gdalmultidim.cpp:14413
GUInt64 GDALMDArrayGetTotalElementsCount(GDALMDArrayH hArray)
Return the total number of values in the array.
Definition gdalmultidim.cpp:12242
CPLErr GDALRATValuesIOAsWKBGeometry(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField, int iStartRow, int iLength, GByte **ppabyWKB, size_t *pnWKBSize)
Read or Write a block of WKB-encoded geometries to/from the Attribute Table.
Definition gdal_rat.cpp:592
void * VRTPDWorkingDataPtr
Generic pointer for the working structure of VRTProcessedDataset function.
Definition gdal.h:1789
OGRSpatialReferenceH GDALGetSpatialRef(GDALDatasetH)
Fetch the spatial reference for this dataset.
Definition gdaldataset.cpp:1337
void GDALSwapWordsEx(void *pData, int nWordSize, size_t nWordCount, int nWordSkip)
Byte swap words in-place.
Definition rasterio.cpp:2130
GDALMDArrayH GDALGroupResolveMDArray(GDALGroupH hGroup, const char *pszName, const char *pszStartingPoint, CSLConstList papszOptions)
Locate an array in a group and its subgroups by name.
Definition gdalmultidim.cpp:11672
int GDALGetOverviewCount(GDALRasterBandH)
Return the number of overview layers available.
Definition gdalrasterband.cpp:3349
int GDALAttributeWriteInt64(GDALAttributeH hAttr, int64_t)
Write an attribute from an int64_t value.
Definition gdalmultidim.cpp:13944
void GDALAttributeRelease(GDALAttributeH hAttr)
Release the GDAL in-memory object associated with a GDALAttribute.
Definition gdalmultidim.cpp:13514
void GDALGetBlockSize(GDALRasterBandH, int *pnXSize, int *pnYSize)
Fetch the "natural" block size of this band.
Definition gdalrasterband.cpp:1527
GDALMDArrayH GDALMDArrayGetView(GDALMDArrayH hArray, const char *pszViewExpr)
Return a view of the array using slicing or field access.
Definition gdalmultidim.cpp:13027
char ** GDALGetMetadataDomainList(GDALMajorObjectH hObject)
Fetch list of metadata domains.
Definition gdalmajorobject.cpp:198
const char * GDALGetDriverCreationOptionList(GDALDriverH)
Return the list of creation options of the driver.
Definition gdaldriver.cpp:2198
GDALPaletteInterp
Definition gdal.h:351
@ GPI_CMYK
Definition gdal.h:354
@ GPI_HLS
Definition gdal.h:355
@ GPI_Gray
Definition gdal.h:352
@ GPI_RGB
Definition gdal.h:353
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:4850
GDALRasterAlgebraUnaryOperation
Raster algebra unary operation.
Definition gdal.h:1942
@ GRAUO_ABS
Absolute value (module for complex data type).
Definition gdal.h:1946
@ GRAUO_LOG10
Logarithm base 10.
Definition gdal.h:1952
@ GRAUO_SQRT
Square root.
Definition gdal.h:1948
@ GRAUO_LOG
Natural logarithm (ln).
Definition gdal.h:1950
@ GRAUO_LOGICAL_NOT
Logical not.
Definition gdal.h:1944
CPLErr GDALRATSetValueAsBoolean(GDALRasterAttributeTableH, int iRow, int iField, bool)
Set field value from a boolean value.
Definition gdal_rat.cpp:2889
void GDALSetDescription(GDALMajorObjectH, const char *)
Set object description.
Definition gdalmajorobject.cpp:118
CPLErr GDALRATValuesIOAsDateTime(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField, int iStartRow, int iLength, GDALRATDateTime *pasDateTime)
Read or Write a block of date-times to/from the Attribute Table.
Definition gdal_rat.cpp:501
void GDALDimensionRelease(GDALDimensionH hDim)
Release the GDAL in-memory object associated with a GDALDimension.
Definition gdalmultidim.cpp:14101
int GDALGetRasterCount(GDALDatasetH)
Fetch the number of raster bands on this dataset.
Definition gdaldataset.cpp:1162
GDALRasterBandH GDALGetRasterSampleOverviewEx(GDALRasterBandH, GUIntBig)
Fetch best sampling overview.
Definition gdalrasterband.cpp:3487
size_t GDALAttributeGetDimensionCount(GDALAttributeH hAttr)
Return the number of dimensions.
Definition gdalmultidim.cpp:13574
CPLErr GDALGetRasterStatistics(GDALRasterBandH, int bApproxOK, int bForce, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev)
Fetch image statistics.
Definition gdalrasterband.cpp:5286
CPLErr GDALRATInitializeFromColorTable(GDALRasterAttributeTableH, GDALColorTableH)
Initialize from color table.
Definition gdal_rat.cpp:1582
size_t GDALMDArrayGetDimensionCount(GDALMDArrayH hArray)
Return the number of dimensions.
Definition gdalmultidim.cpp:12256
void GDALRATSetValueAsString(GDALRasterAttributeTableH, int iRow, int iField, const char *)
Set field value from string.
Definition gdal_rat.cpp:2652
CPLVirtualMem * GDALGetVirtualMemAuto(GDALRasterBandH hBand, GDALRWFlag eRWFlag, int *pnPixelSpace, GIntBig *pnLineSpace, CSLConstList papszOptions)
Create a CPLVirtualMem object from a GDAL raster band object.
Definition gdalrasterband.cpp:9942
char ** GDALGroupGetMDArrayNames(GDALGroupH hGroup, CSLConstList papszOptions)
Return the list of multidimensional array names contained in this group.
Definition gdalmultidim.cpp:11576
GIntBig GDALGetCacheUsed64(void)
Get cache memory used.
Definition gdalrasterblock.cpp:295
void GDALDatasetSetStyleTableDirectly(GDALDatasetH, OGRStyleTableH)
Set dataset style table.
Definition gdaldataset.cpp:5826
GDALComputedRasterBandH GDALRasterBandMinConstant(GDALRasterBandH hBand, double dfConstant)
Return a band whose each pixel value is the minimum of the corresponding pixel values in the input ba...
Definition gdalrasterband.cpp:12689
GDALDataType
Definition gdal.h:48
@ GDT_UInt32
Definition gdal.h:54
@ GDT_UInt64
Definition gdal.h:56
@ GDT_CInt32
Definition gdal.h:62
@ GDT_Int64
Definition gdal.h:57
@ GDT_Byte
Definition gdal.h:50
@ GDT_Int8
Definition gdal.h:51
@ GDT_CFloat32
Definition gdal.h:65
@ GDT_CFloat64
Definition gdal.h:66
@ GDT_CFloat16
Definition gdal.h:64
@ GDT_Float64
Definition gdal.h:60
@ GDT_Float16
Definition gdal.h:58
@ GDT_UInt16
Definition gdal.h:52
@ GDT_Int16
Definition gdal.h:53
@ GDT_CInt16
Definition gdal.h:61
@ GDT_Int32
Definition gdal.h:55
@ GDT_Unknown
Definition gdal.h:49
@ GDT_Float32
Definition gdal.h:59
double GDALGetRasterOffset(GDALRasterBandH, int *pbSuccess)
Fetch the raster value offset.
Definition gdalrasterband.cpp:3591
OGRErr GDALDatasetCommitTransaction(GDALDatasetH hDS)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition gdaldataset.cpp:8474
int GDALHasArbitraryOverviews(GDALRasterBandH)
Check for arbitrary overviews.
Definition gdalrasterband.cpp:3308
const GDALColorEntry * GDALGetColorEntry(GDALColorTableH, int)
Fetch a color entry from table.
Definition gdalcolortable.cpp:119
int GDALGetAccess(GDALDatasetH hDS)
Return access flag.
Definition gdaldataset.cpp:3301
int GDALGetRasterBandXSize(GDALRasterBandH)
Fetch XSize of raster.
Definition gdalrasterband.cpp:3879
GDALRATFieldUsage GDALRATGetUsageOfCol(GDALRasterAttributeTableH, int)
Fetch column usage value.
Definition gdal_rat.cpp:1926
int GDALAttributeReadAsInt(GDALAttributeH hAttr)
Return the value of an attribute as a integer.
Definition gdalmultidim.cpp:13714
GDALExtendedDataTypeH GDALExtendedDataTypeCreate(GDALDataType eType)
Return a new GDALExtendedDataType of class GEDTC_NUMERIC.
Definition gdalmultidim.cpp:11134
CPLErr GDALDatasetRasterIOEx(GDALDatasetH hDS, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType, int nBandCount, const int *panBandCount, GSpacing nPixelSpace, GSpacing nLineSpace, GSpacing nBandSpace, GDALRasterIOExtraArg *psExtraArg)
Read/write a region of image data from multiple bands.
Definition gdaldataset.cpp:3201
GDALRATFieldUsage
Field usage of raster attribute table.
Definition gdal.h:2238
@ GFU_Min
Definition gdal.h:2242
@ GFU_AlphaMin
Definition gdal.h:2252
@ GFU_GreenMin
Definition gdal.h:2250
@ GFU_Red
Definition gdal.h:2245
@ GFU_Alpha
Definition gdal.h:2248
@ GFU_MaxCount
Definition gdal.h:2257
@ GFU_MinMax
Definition gdal.h:2244
@ GFU_RedMin
Definition gdal.h:2249
@ GFU_GreenMax
Definition gdal.h:2254
@ GFU_Name
Definition gdal.h:2241
@ GFU_BlueMax
Definition gdal.h:2255
@ GFU_BlueMin
Definition gdal.h:2251
@ GFU_RedMax
Definition gdal.h:2253
@ GFU_Green
Definition gdal.h:2246
@ GFU_Blue
Definition gdal.h:2247
@ GFU_AlphaMax
Definition gdal.h:2256
@ GFU_PixelCount
Definition gdal.h:2240
@ GFU_Generic
Definition gdal.h:2239
@ GFU_Max
Definition gdal.h:2243
double GDALGetRasterScale(GDALRasterBandH, int *pbSuccess)
Fetch the raster value scale.
Definition gdalrasterband.cpp:3697
int GDALGetColorEntryCount(GDALColorTableH)
Get number of color entries in table.
Definition gdalcolortable.cpp:301
CPLErr GDALRegisterPlugin(const char *name)
Register a plugin by name, returning an error if not found.
Definition gdalallregister.cpp:51
GDALRasterBandH GDALGetRasterBand(GDALDatasetH, int)
Fetch a band object for a dataset.
Definition gdaldataset.cpp:1126
GDALAccess GDALGetRasterAccess(GDALRasterBandH)
Find out if we have update permission for this band.
Definition gdalrasterband.cpp:2213
int64_t GDALMDArrayGetNoDataValueAsInt64(GDALMDArrayH hArray, int *pbHasNoDataValue)
Return the nodata value as a Int64.
Definition gdalmultidim.cpp:12604
int GDALGeneralCmdLineProcessor(int nArgc, char ***ppapszArgv, int nOptions)
General utility option processing.
Definition gdal_misc.cpp:3767
int GDALRATChangesAreWrittenToFile(GDALRasterAttributeTableH hRAT)
Determine whether changes made to this RAT are reflected directly in the dataset.
Definition gdal_rat.cpp:3082
OGRSpatialReferenceH GDALGetGCPSpatialRef(GDALDatasetH)
Get output spatial reference system for GCPs.
Definition gdaldataset.cpp:2090
const void * GDALMDArrayGetRawNoDataValue(GDALMDArrayH hArray)
Return the nodata value as a "raw" value.
Definition gdalmultidim.cpp:12552
int GDALMDArrayWrite(GDALMDArrayH hArray, const GUInt64 *arrayStartIdx, const size_t *count, const GInt64 *arrayStep, const GPtrDiff_t *bufferStride, GDALExtendedDataTypeH bufferDatatype, const void *pSrcBuffer, const void *psrcBufferAllocStart, size_t nSrcBufferllocSize)
Write part or totality of a multidimensional array.
Definition gdalmultidim.cpp:12368
int GDALDumpOpenDatasets(FILE *)
List open datasets.
Definition gdaldataset.cpp:4584
void GDALExtendedDataTypeFreeComponents(GDALEDTComponentH *components, size_t nCount)
Free the return of GDALExtendedDataTypeGetComponents().
Definition gdalmultidim.cpp:11432
const GDAL_GCP * GDALGetGCPs(GDALDatasetH)
Fetch GCPs.
Definition gdaldataset.cpp:2145
GByte * GDALAttributeReadAsRaw(GDALAttributeH hAttr, size_t *pnSize)
Return the raw value of an attribute.
Definition gdalmultidim.cpp:13637
CPLErr GDALDatasetRunCloseWithoutDestroying(GDALDatasetH hDS)
Run the Close() method, without running destruction of the object.
Definition gdaldataset.cpp:511
size_t GDALExtendedDataTypeGetSize(GDALExtendedDataTypeH hEDT)
Return data type size in bytes.
Definition gdalmultidim.cpp:11286
GDALDataType GDALGetRasterDataType(GDALRasterBandH)
Fetch the pixel data type for this band.
Definition gdalrasterband.cpp:1460
GDALRasterAttributeTableH GDALCreateRasterAttributeTableFromMDArrays(GDALRATTableType eTableType, int nArrays, const GDALMDArrayH *ahArrays, const GDALRATFieldUsage *paeUsages)
Return a virtual Raster Attribute Table from several GDALMDArray's.
Definition gdalmultidim_rat.cpp:511
int GDALExtractRPCInfoV2(CSLConstList, GDALRPCInfoV2 *)
Extract RPC info from metadata, and apply to an RPCInfo structure.
Definition gdal_misc.cpp:4432
GDALMDArrayH GDALGroupOpenMDArrayFromFullname(GDALGroupH hGroup, const char *pszMDArrayName, CSLConstList papszOptions)
Open and return a multidimensional array from its fully qualified name.
Definition gdalmultidim.cpp:11650
GDALMDArrayRawBlockInfo * GDALMDArrayRawBlockInfoCreate(void)
Allocate a new instance of GDALMDArrayRawBlockInfo.
Definition gdalmultidim.cpp:15358
bool GDALGroupDeleteAttribute(GDALGroupH hGroup, const char *pszName, CSLConstList papszOptions)
Delete an attribute from a group.
Definition gdalmultidim.cpp:12135
GDALColorTableH GDALCreateColorTable(GDALPaletteInterp)
Construct a new color table.
Definition gdalcolortable.cpp:54
bool GDALIsMaskBand(GDALRasterBandH hBand)
Returns whether a band is a mask band.
Definition gdalrasterband.cpp:9554
GDALRasterBandH GDALGetMaskBand(GDALRasterBandH hBand)
Return the mask band associated with the band.
Definition gdalrasterband.cpp:9310
GDALAttributeH GDALMDArrayCreateAttribute(GDALMDArrayH hArray, const char *pszName, size_t nDimensions, const GUInt64 *panDimensions, GDALExtendedDataTypeH hEDT, CSLConstList papszOptions)
Create a attribute within an array.
Definition gdalmultidim.cpp:12492
void GDALRelationshipSetMappingTableName(GDALRelationshipH, const char *)
Sets the name of the mapping table for many-to-many relationships.
Definition gdalrelationship.cpp:199
int GDALMDArraySetNoDataValueAsInt64(GDALMDArrayH hArray, int64_t nNoDataValue)
Set the nodata value as a Int64.
Definition gdalmultidim.cpp:12691
int GDALMDArraySetNoDataValueAsUInt64(GDALMDArrayH hArray, uint64_t nNoDataValue)
Set the nodata value as a UInt64.
Definition gdalmultidim.cpp:12711
CPLErr GDALOverviewMagnitudeCorrection(GDALRasterBandH hBaseBand, int nOverviewCount, GDALRasterBandH *pahOverviews, GDALProgressFunc pfnProgress, void *pProgressData)
Undocumented.
Definition overview.cpp:6945
char ** GDALGetOutputDriversForDatasetName(const char *pszDestFilename, int nFlagRasterVector, bool bSingleMatch, bool bEmitWarning)
Return a list of driver short names that are likely candidates for the provided output file name.
Definition gdaldriver.cpp:3123
bool GDALDatasetDeleteFieldDomain(GDALDatasetH hDS, const char *pszName, char **ppszFailureReason)
Removes a field domain from the dataset.
Definition gdaldataset.cpp:10036
void GDALReleaseDimensions(GDALDimensionH *dims, size_t nCount)
Free the return of GDALGroupGetDimensions() or GDALMDArrayGetDimensions().
Definition gdalmultidim.cpp:12303
void GDALRATSetRowCount(GDALRasterAttributeTableH, int)
Set row count.
Definition gdal_rat.cpp:860
CPLErr GDALRasterInterpolateAtPoint(GDALRasterBandH hBand, double dfPixel, double dfLine, GDALRIOResampleAlg eInterpolation, double *pdfRealValue, double *pdfImagValue)
Interpolates the value between pixels using a resampling algorithm.
Definition gdalrasterband.cpp:10938
GDALDatasetH GDALOpenShared(const char *, GDALAccess)
Open a raster file as a GDALDataset.
Definition gdaldataset.cpp:4449
CPLErr GDALSetRasterNoDataValueAsInt64(GDALRasterBandH, int64_t)
Set the no data value for this band.
Definition gdalrasterband.cpp:2745
void GDALRelationshipSetForwardPathLabel(GDALRelationshipH, const char *)
Sets the label of the forward path for the relationship.
Definition gdalrelationship.cpp:509
const char * GDALGetDriverHelpTopic(GDALDriverH)
Return the URL to the help that describes the driver.
Definition gdaldriver.cpp:2174
GDALDriverH GDALIdentifyDriverEx(const char *pszFilename, unsigned int nIdentifyFlags, const char *const *papszAllowedDrivers, const char *const *papszFileList)
Identify the driver that can open a dataset.
Definition gdaldriver.cpp:2774
int GDALInvGeoTransform(const double *padfGeoTransformIn, double *padfInvGeoTransformOut)
Invert Geotransform.
Definition gdaltransformer.cpp:4562
GDALExtendedDataTypeH GDALExtendedDataTypeCreateStringEx(size_t nMaxStringLength, GDALExtendedDataTypeSubType eSubType)
Return a new GDALExtendedDataType of class GEDTC_STRING.
Definition gdalmultidim.cpp:11178
void GDALSwapWords(void *pData, int nWordSize, int nWordCount, int nWordSkip)
Byte swap words in-place.
Definition rasterio.cpp:2040
void GDALRelationshipSetLeftMappingTableFields(GDALRelationshipH, CSLConstList)
Sets the names of the mapping table fields which correspond to the participating fields from the left...
Definition gdalrelationship.cpp:380
const GByte * GDALRATGetValueAsWKBGeometry(GDALRasterAttributeTableH, int iRow, int iField, size_t *pnWKBSize)
Fetch field value as a WKB-encoded geometry.
Definition gdal_rat.cpp:2512
GDALDriverH GDALGetDriver(int)
Fetch driver by index.
Definition gdaldrivermanager.cpp:461
void GDALGroupRelease(GDALGroupH hGroup)
Release the GDAL in-memory object associated with a GDALGroupH.
Definition gdalmultidim.cpp:11529
GDAL_GCP * GDALDuplicateGCPs(int, const GDAL_GCP *)
Duplicate an array of GCPs.
Definition gdal_misc.cpp:1884
const char * GDALMDArrayGetFullName(GDALMDArrayH hArray)
Return array full name.
Definition gdalmultidim.cpp:12227
double GDALGetRasterMinimum(GDALRasterBandH, int *pbSuccess)
Fetch the minimum value for this band.
Definition gdalrasterband.cpp:3081
const char * GDALGetRATFieldTypeName(GDALRATFieldType)
Return the string representation of a GDALRATFieldType.
Definition gdal_rat.cpp:90
CPLErr GDALSetRasterCategoryNames(GDALRasterBandH, CSLConstList)
Set the category names for this band.
Definition gdalrasterband.cpp:2310
GUInt64 GDALDimensionGetSize(GDALDimensionH hDim)
Return the size, that is the number of values along the dimension.
Definition gdalmultidim.cpp:14170
int GDALMDArraySetOffsetEx(GDALMDArrayH hArray, double dfOffset, GDALDataType eStorageType)
Set the scale value to apply to raw values.
Definition gdalmultidim.cpp:12821
int GDALMDArrayCache(GDALMDArrayH hArray, CSLConstList papszOptions)
Cache the content of the array into an auxiliary filename.
Definition gdalmultidim.cpp:13477
GDALDataType GDALGetNonComplexDataType(GDALDataType)
Return the base data type for the specified input.
Definition gdal_misc.cpp:1077
double GDALGetRasterMaximum(GDALRasterBandH, int *pbSuccess)
Fetch the maximum value for this band.
Definition gdalrasterband.cpp:2972
const char * GDALDimensionGetType(GDALDimensionH hDim)
Return dimension type.
Definition gdalmultidim.cpp:14142
CPLErr GDALRATValuesIOAsString(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField, int iStartRow, int iLength, char **papszStrList)
Read or Write a block of strings to/from the Attribute Table.
Definition gdal_rat.cpp:356
const char * GDALGetDriverLongName(GDALDriverH)
Return the long name of a driver.
Definition gdaldriver.cpp:2144
int GDALDataTypeIsComplex(GDALDataType)
Is data type complex?
Definition gdal_misc.cpp:466
const char * GDALGetColorInterpretationName(GDALColorInterp)
Get name of color interpretation.
Definition gdal_misc.cpp:1240
bool GDALIsValueExactAs(double dfValue, GDALDataType eDT)
Check whether the provided value can be exactly represented in a data type.
Definition gdal_misc.cpp:969
void GDALRelationshipSetRightMappingTableFields(GDALRelationshipH, CSLConstList)
Sets the names of the mapping table fields which correspond to the participating fields from the righ...
Definition gdalrelationship.cpp:405
GDALComputedRasterBandH GDALRasterBandAsDataType(GDALRasterBandH hBand, GDALDataType eDT)
Cast this band to another type.
Definition gdalrasterband.cpp:12485
void GDALDestroyDriverManager(void)
Destroy the driver manager.
Definition gdaldrivermanager.cpp:1786
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)
Read/write a region of image data for this band.
Definition gdalrasterband.cpp:513
int GDALMDArraySetUnit(GDALMDArrayH hArray, const char *)
Set the variable unit.
Definition gdalmultidim.cpp:13167
const char * GDALRelationshipGetBackwardPathLabel(GDALRelationshipH)
Get the label of the backward path for the relationship.
Definition gdalrelationship.cpp:542
char ** GDALDatasetGetFieldDomainNames(GDALDatasetH, CSLConstList)
Returns a list of the names of all field domains stored in the dataset.
Definition gdaldataset.cpp:9847
int GDALValidateCreationOptions(GDALDriverH, CSLConstList papszCreationOptions)
Validate the list of creation options that are handled by a driver.
Definition gdaldriver.cpp:2239
GDALRelationshipH GDALRelationshipCreate(const char *, const char *, const char *, GDALRelationshipCardinality)
Creates a new relationship.
Definition gdalrelationship.cpp:50
CPLErr GDALComputeRasterMinMax(GDALRasterBandH hBand, int bApproxOK, double adfMinMax[2])
Compute the min/max values for a band.
Definition gdalrasterband.cpp:8521
const char * GDALRelationshipGetMappingTableName(GDALRelationshipH)
Get the name of the mapping table for many-to-many relationships.
Definition gdalrelationship.cpp:174
OGRLayerH GDALDatasetGetLayer(GDALDatasetH, int)
Fetch a layer by index.
Definition gdaldataset.cpp:5163
CPLErr GDALRenameDataset(GDALDriverH, const char *pszNewName, const char *pszOldName)
Rename a dataset.
Definition gdaldriver.cpp:1923
void GDALRATDumpReadable(GDALRasterAttributeTableH, FILE *)
Dump RAT in readable form.
Definition gdal_rat.cpp:1739
CPLErr GDALSetGCPs2(GDALDatasetH, int, const GDAL_GCP *, OGRSpatialReferenceH)
Assign GCPs.
Definition gdaldataset.cpp:2281
size_t GDALExtendedDataTypeGetMaxStringLength(GDALExtendedDataTypeH hEDT)
Return the maximum length of a string in bytes.
Definition gdalmultidim.cpp:11302
GDALMDArrayH GDALDimensionGetIndexingVariable(GDALDimensionH hDim)
Return the variable that is used to index the dimension (if there is one).
Definition gdalmultidim.cpp:14189
char ** GDALGroupGetGroupNames(GDALGroupH hGroup, CSLConstList papszOptions)
Return the list of sub-groups contained in this group.
Definition gdalmultidim.cpp:11696
OGRErr GDALDatasetRollbackTransaction(GDALDatasetH hDS)
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition gdaldataset.cpp:8524
int GDALAttributeWriteDouble(GDALAttributeH hAttr, double)
Write an attribute from a double value.
Definition gdalmultidim.cpp:13966
int GDALGetRasterXSize(GDALDatasetH)
Fetch raster width in pixels.
Definition gdaldataset.cpp:998
CPLErr GDALComputeRasterMinMaxLocation(GDALRasterBandH hBand, double *pdfMin, double *pdfMax, int *pnMinX, int *pnMinY, int *pnMaxX, int *pnMaxY)
Compute the min/max values for a band, and their location.
Definition gdalrasterband.cpp:8795
void * GDALRATSerializeJSON(GDALRasterAttributeTableH)
Serialize Raster Attribute Table in Json format.
Definition gdal_rat.cpp:3398
void GDALRegisterPlugins(void)
Register drivers and support code available as a plugin.
Definition gdalallregister.cpp:78
int GDALApplyHomography(const double *, double, double, double *, double *)
Apply Homography to x/y coordinate.
Definition gdal_homography.cpp:408
const char * GDALAttributeReadAsString(GDALAttributeH hAttr)
Return the value of an attribute as a string.
Definition gdalmultidim.cpp:13694
CSLConstList GDALGroupGetStructuralInfo(GDALGroupH hGroup)
Return structural information on the group.
Definition gdalmultidim.cpp:11908
bool GDALDriverHasOpenOption(GDALDriverH, const char *pszOpenOptionName)
Returns TRUE if the given open option is supported by the driver.
Definition gdaldriver.cpp:2099
GDALExtendedDataTypeClass
Enumeration giving the class of a GDALExtendedDataType.
Definition gdal.h:392
@ GEDTC_STRING
String value.
Definition gdal.h:396
@ GEDTC_COMPOUND
Compound data type.
Definition gdal.h:398
@ GEDTC_NUMERIC
Numeric value.
Definition gdal.h:394
bool GDALDatasetUpdateFieldDomain(GDALDatasetH hDS, OGRFieldDomainH hFieldDomain, char **ppszFailureReason)
Updates an existing field domain by replacing its definition.
Definition gdaldataset.cpp:10109
CPLErr GDALDeleteRasterNoDataValue(GDALRasterBandH)
Remove the no data value for this band.
Definition gdalrasterband.cpp:2863
CPLErr GDALSetMetadataItem(GDALMajorObjectH, const char *, const char *, const char *)
Set single metadata item.
Definition gdalmajorobject.cpp:392
GDALDataType GDALFindDataTypeForValue(double dValue, int bComplex)
Finds the smallest data type able to support the provided value.
Definition gdal_misc.cpp:346
GDALGroupH GDALGroupOpenGroup(GDALGroupH hGroup, const char *pszSubGroupName, CSLConstList papszOptions)
Open and return a sub-group.
Definition gdalmultidim.cpp:11718
OGRFeatureH GDALDatasetGetNextFeature(GDALDatasetH hDS, OGRLayerH *phBelongingLayer, double *pdfProgressPct, GDALProgressFunc pfnProgress, void *pProgressData)
Fetch the next available feature from this dataset.
Definition gdaldataset.cpp:8181
OGRErr GDALDatasetStartTransaction(GDALDatasetH hDS, int bForce)
For datasources which support transactions, StartTransaction creates a transaction.
Definition gdaldataset.cpp:8418
CPLErr(* GDALDerivedPixelFuncWithArgs)(void **papoSources, int nSources, void *pData, int nBufXSize, int nBufYSize, GDALDataType eSrcType, GDALDataType eBufType, int nPixelSpace, int nLineSpace, CSLConstList papszFunctionArgs)
Type of functions to pass to GDALAddDerivedBandPixelFuncWithArgs.
Definition gdal.h:1607
GDALDatasetH GDALCreatePansharpenedVRT(const char *pszXML, GDALRasterBandH hPanchroBand, int nInputSpectralBands, GDALRasterBandH *pahInputSpectralBands)
Create a virtual pansharpened dataset.
Definition vrtpansharpened.cpp:80
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:10034
size_t GDALGroupGetDataTypeCount(GDALGroupH hGroup)
Return the number of data types associated with the group (typically enumerations).
Definition gdalmultidim.cpp:11925
GDALGroupH GDALGroupCreateGroup(GDALGroupH hGroup, const char *pszSubGroupName, CSLConstList papszOptions)
Create a sub-group within a group.
Definition gdalmultidim.cpp:11980
const char * GDALGetPaletteInterpretationName(GDALPaletteInterp)
Get name of palette interpretation.
Definition gdal_misc.cpp:1200
const char * GDALGetAsyncStatusTypeName(GDALAsyncStatusType)
Get name of AsyncStatus data type.
Definition gdal_misc.cpp:1162
int GDALRATGetLinearBinning(GDALRasterAttributeTableH, double *, double *)
Get linear binning information.
Definition gdal_rat.cpp:1075
GDALAsyncStatusType GDALARGetNextUpdatedRegion(GDALAsyncReaderH hARIO, double dfTimeout, int *pnXBufOff, int *pnYBufOff, int *pnXBufSize, int *pnYBufSize)
Get async IO update.
Definition gdaldefaultasync.cpp:145
uint64_t GDALGetRasterNoDataValueAsUInt64(GDALRasterBandH, int *)
Fetch the no data value for this band.
Definition gdalrasterband.cpp:2487
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:5063
void GDALRATSetValueAsInt(GDALRasterAttributeTableH, int iRow, int iField, int)
Set field value from integer.
Definition gdal_rat.cpp:2732
CPLErr GDALAddBand(GDALDatasetH hDS, GDALDataType eType, CSLConstList papszOptions)
Add a band to a dataset.
Definition gdaldataset.cpp:861
void GDALAttributeFreeRawResult(GDALAttributeH hAttr, GByte *raw, size_t nSize)
Free the return of GDALAttributeAsRaw().
Definition gdalmultidim.cpp:13658
CPLErr GDALSetDefaultHistogram(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, int *panHistogram)
Set default histogram.
Definition gdalrasterband.cpp:8845
GDALRelationshipCardinality GDALRelationshipGetCardinality(GDALRelationshipH)
Get the cardinality of the relationship.
Definition gdalrelationship.cpp:110
CPLErr GDALGetExtentWGS84LongLat(GDALDatasetH, OGREnvelope *)
Return extent of dataset in WGS84 longitude/latitude.
Definition gdaldataset.cpp:11323
char ** GDALRelationshipGetLeftTableFields(GDALRelationshipH)
Get the names of the participating fields from the left table in the relationship.
Definition gdalrelationship.cpp:222
GUInt64 GDALAttributeGetTotalElementsCount(GDALAttributeH hAttr)
Return the total number of values in the attribute.
Definition gdalmultidim.cpp:13560
void GDALApplyGeoTransform(const double *, double, double, double *, double *)
Apply GeoTransform to x/y coordinate.
Definition gdaltransformer.cpp:4536
CPLErr GDALDatasetReadCompressedData(GDALDatasetH hDS, const char *pszFormat, int nXOff, int nYOff, int nXSize, int nYSize, int nBandCount, const int *panBandList, void **ppBuffer, size_t *pnBufferSize, char **ppszDetailedFormat)
Return the compressed content that can be natively obtained for the window of interest and requested ...
Definition gdaldataset.cpp:10909
const char * GDALGetRATFieldUsageName(GDALRATFieldUsage)
Return the string representation of a GDALRATFieldUsage.
Definition gdal_rat.cpp:119
int GDALMDArrayComputeStatisticsEx(GDALMDArrayH hArray, GDALDatasetH, int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GUInt64 *pnValidCount, GDALProgressFunc, void *pProgressData, CSLConstList papszOptions)
Compute statistics.
Definition gdalmultidim.cpp:13296
GDALColorTableH GDALCloneColorTable(GDALColorTableH)
Make a copy of a color table.
Definition gdalcolortable.cpp:264
GDALRelationshipCardinality
Cardinality of relationship.
Definition gdal.h:2423
@ GRC_ONE_TO_ONE
One-to-one.
Definition gdal.h:2425
@ GRC_MANY_TO_ONE
Many-to-one.
Definition gdal.h:2429
@ GRC_MANY_TO_MANY
Many-to-many.
Definition gdal.h:2431
@ GRC_ONE_TO_MANY
One-to-many.
Definition gdal.h:2427
GDALRIOResampleAlg
RasterIO() resampling method.
Definition gdal.h:135
@ GRIORA_Mode
Definition gdal.h:144
@ GRIORA_Lanczos
Definition gdal.h:140
@ GRIORA_Cubic
Definition gdal.h:138
@ GRIORA_CubicSpline
Definition gdal.h:139
@ GRIORA_Average
Definition gdal.h:141
@ GRIORA_RMS
RMS: Root Mean Square / Quadratic Mean.
Definition gdal.h:155
@ GRIORA_NearestNeighbour
Definition gdal.h:136
@ GRIORA_Gauss
Definition gdal.h:145
@ GRIORA_Bilinear
Definition gdal.h:137
CPLErr GDALSetRasterUnitType(GDALRasterBandH hBand, const char *pszNewValue)
Set unit type.
Definition gdalrasterband.cpp:3841
CPLErr GDALRATValuesIOAsBoolean(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField, int iStartRow, int iLength, bool *pbData)
Read or Write a block of booleans to/from the Attribute Table.
Definition gdal_rat.cpp:429
GDALExtendedDataTypeSubType GDALExtendedDataTypeGetSubType(GDALExtendedDataTypeH hEDT)
Return the subtype of a type.
Definition gdalmultidim.cpp:11361
bool GDALDatasetAddRelationship(GDALDatasetH hDS, GDALRelationshipH hRelationship, char **ppszFailureReason)
Add a relationship to the dataset.
Definition gdaldataset.cpp:10284
GDALExtendedDataTypeH GDALEDTComponentGetType(GDALEDTComponentH hComp)
Return the data type of the component.
Definition gdalmultidim.cpp:11513
char ** GDALGetRasterCategoryNames(GDALRasterBandH)
Fetch the list of category names for this raster.
Definition gdalrasterband.cpp:2259
GDALGroupH GDALGroupOpenGroupFromFullname(GDALGroupH hGroup, const char *pszMDArrayName, CSLConstList papszOptions)
Open and return a sub-group from its fully qualified name.
Definition gdalmultidim.cpp:11791
void GDALRelationshipSetLeftTableFields(GDALRelationshipH, CSLConstList)
Sets the names of the participating fields from the left table in the relationship.
Definition gdalrelationship.cpp:276
int GDALWriteWorldFile(const char *, const char *, double *)
Write ESRI world file.
Definition gdal_misc.cpp:2777
int GDALDataTypeIsInteger(GDALDataType)
Is data type integer?
Definition gdal_misc.cpp:551
CPLErr GDALRATCreateColumn(GDALRasterAttributeTableH, const char *, GDALRATFieldType, GDALRATFieldUsage)
Create new column.
Definition gdal_rat.cpp:985
int GDALDimensionSetIndexingVariable(GDALDimensionH hDim, GDALMDArrayH hArray)
Set the variable that is used to index the dimension.
Definition gdalmultidim.cpp:14211
bool GDALDatasetDeleteRelationship(GDALDatasetH hDS, const char *pszName, char **ppszFailureReason)
Removes a relationship from the dataset.
Definition gdaldataset.cpp:10353
OGRErr GDALDatasetDeleteLayer(GDALDatasetH, int)
Delete the indicated layer from the datasource.
Definition gdaldataset.cpp:5299
bool GDALDimensionRename(GDALDimensionH hDim, const char *pszNewName)
Rename the dimension.
Definition gdalmultidim.cpp:14233
OGRSpatialReferenceH GDALMDArrayGetSpatialRef(GDALMDArrayH hArray)
Return the spatial reference system object associated with the array.
Definition gdalmultidim.cpp:13224
int GDALCheckVersion(int nVersionMajor, int nVersionMinor, const char *pszCallingComponentName)
Return TRUE if GDAL library version at runtime matches nVersionMajor.nVersionMinor.
Definition gdal_misc.cpp:3045
GDALEDTComponentH GDALEDTComponentCreate(const char *pszName, size_t nOffset, GDALExtendedDataTypeH hType)
Create a new GDALEDTComponent.
Definition gdalmultidim.cpp:11452
GDALAttributeH GDALMDArrayGetAttribute(GDALMDArrayH hArray, const char *pszName)
Return an attribute by its name.
Definition gdalmultidim.cpp:12437
char ** GDALAttributeReadAsStringArray(GDALAttributeH hAttr)
Return the value of an attribute as an array of strings.
Definition gdalmultidim.cpp:13770
GDALDatasetH GDALGetBandDataset(GDALRasterBandH)
Fetch the owning dataset handle.
Definition gdalrasterband.cpp:3999
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:3406
double GDALRATGetValueAsDouble(GDALRasterAttributeTableH, int iRow, int iField)
Fetch field value as a double.
Definition gdal_rat.cpp:2268
GDALDatasetH OGR_L_GetDataset(OGRLayerH hLayer)
Return the dataset associated with this layer.
Definition ogrlayer.cpp:8380
GDALExtendedDataTypeH GDALAttributeGetDataType(GDALAttributeH hAttr)
Return the data type.
Definition gdalmultidim.cpp:13615
void GDALRelationshipSetRelatedTableType(GDALRelationshipH, const char *)
Sets the type string of the related table.
Definition gdalrelationship.cpp:633
CPLErr GDALRATSetValueAsDateTime(GDALRasterAttributeTableH, int iRow, int iField, const GDALRATDateTime *psDateTime)
Set field value from datetime.
Definition gdal_rat.cpp:2967
void GDALComputedRasterBandRelease(GDALComputedRasterBandH hBand)
Release a GDALComputedRasterBandH.
Definition gdalcomputedrasterband.cpp:788
int GDALLoadTabFile(const char *, double *, char **, int *, GDAL_GCP **)
Helper function for translator implementer wanting support for MapInfo .tab files.
Definition gdal_misc.cpp:2254
GDALComputedRasterBandH GDALRasterBandMaxConstant(GDALRasterBandH hBand, double dfConstant)
Return a band whose each pixel value is the maximum of the corresponding pixel values in the input ba...
Definition gdalrasterband.cpp:12615
int GDALGetRasterBandYSize(GDALRasterBandH)
Fetch YSize of raster.
Definition gdalrasterband.cpp:3916
void GDALARUnlockBuffer(GDALAsyncReaderH hARIO)
Unlock image buffer.
Definition gdaldefaultasync.cpp:239
CPLErr GDALSetRasterNoDataValue(GDALRasterBandH, double)
Set the no data value for this band.
Definition gdalrasterband.cpp:2673
int GDALExtendedDataTypeCanConvertTo(GDALExtendedDataTypeH hSourceEDT, GDALExtendedDataTypeH hTargetEDT)
Return whether this data type can be converted to the other one.
Definition gdalmultidim.cpp:11320
GDALComputedRasterBandH GDALRasterBandIfThenElse(GDALRasterBandH hCondBand, GDALRasterBandH hThenBand, GDALRasterBandH hElseBand)
Return a band whose value is hThenBand if the corresponding pixel in hCondBand is not zero,...
Definition gdalrasterband.cpp:12415
const char * GDALDecToDMS(double, const char *, int)
Translate a decimal degrees value to a DMS string with hemisphere.
Definition gdal_misc.cpp:3069
GDALDataType GDALExtendedDataTypeGetNumericDataType(GDALExtendedDataTypeH hEDT)
Return numeric data type (only valid when GetClass() == GEDTC_NUMERIC).
Definition gdalmultidim.cpp:11272
void GDALDeregisterDriver(GDALDriverH)
Deregister the passed driver.
Definition gdaldrivermanager.cpp:708
CPLErr GDALCopyDatasetFiles(GDALDriverH, const char *pszNewName, const char *pszOldName)
Copy the files of a dataset.
Definition gdaldriver.cpp:2070
CPLErr GDALGetDefaultHistogram(GDALRasterBandH hBand, double *pdfMin, double *pdfMax, int *pnBuckets, int **ppanHistogram, int bForce, GDALProgressFunc pfnProgress, void *pProgressData)
Fetch default raster histogram.
Definition gdalrasterband.cpp:4994
OGRErr GDALDatasetAbortSQL(GDALDatasetH)
Abort any SQL statement running in the data store.
Definition gdaldataset.cpp:5776
void GDALDestroyRasterAttributeTable(GDALRasterAttributeTableH)
Destroys a RAT.
Definition gdal_rat.cpp:1798
CPLErr GDALCreateDatasetMaskBand(GDALDatasetH hDS, int nFlags)
Adds a mask band to the dataset.
Definition gdaldataset.cpp:3712
int GDALAttributeWriteString(GDALAttributeH hAttr, const char *)
Write an attribute from a string value.
Definition gdalmultidim.cpp:13902
int GDALMDArraySetScale(GDALMDArrayH hArray, double dfScale)
Set the scale value to apply to raw values.
Definition gdalmultidim.cpp:12764
CPLErr GDALGetActualBlockSize(GDALRasterBandH, int nXBlockOff, int nYBlockOff, int *pnXValid, int *pnYValid)
Retrieve the actual block size for a given block offset.
Definition gdalrasterband.cpp:1381
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)
Create a CPLVirtualMem object from a GDAL raster band object.
Definition gdalvirtualmem.cpp:998
CPLErr GDALRATGetValueAsDateTime(GDALRasterAttributeTableH, int iRow, int iField, GDALRATDateTime *psDateTime)
Fetch field value as a datetime.
Definition gdal_rat.cpp:2417
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)
Sets up an asynchronous data request.
Definition gdaldataset.cpp:4780
int GDALRATGetValueAsInt(GDALRasterAttributeTableH, int iRow, int iField)
Fetch field value as a integer.
Definition gdal_rat.cpp:2201
char ** GDALRelationshipGetRightTableFields(GDALRelationshipH)
Get the names of the participating fields from the right table in the relationship.
Definition gdalrelationship.cpp:248
CPLErr GDALSetDefaultHistogramEx(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram)
Set default histogram.
Definition gdalrasterband.cpp:8887
OGRLayerH GDALDatasetCreateLayer(GDALDatasetH, const char *, OGRSpatialReferenceH, OGRwkbGeometryType, CSLConstList)
This function attempts to create a new layer on the dataset with the indicated name,...
Definition gdaldataset.cpp:5556
const char * GDALAttributeGetFullName(GDALAttributeH hAttr)
Return the full name of the attribute.
Definition gdalmultidim.cpp:13545
GDALComputedRasterBandH GDALRasterBandBinaryOpDoubleToBand(double constant, GDALRasterAlgebraBinaryOperation eOp, GDALRasterBandH hBand)
Apply a binary operation on the constant with this band.
Definition gdalrasterband.cpp:11349
GDALRelationshipH GDALDatasetGetRelationship(GDALDatasetH hDS, const char *pszName)
Get a relationship from its name.
Definition gdaldataset.cpp:10206
GDALRATFieldType
Field type of raster attribute table.
Definition gdal.h:2224
@ GFT_DateTime
Definition gdal.h:2229
@ GFT_WKBGeometry
Definition gdal.h:2230
@ GFT_Real
Definition gdal.h:2226
@ GFT_Boolean
Definition gdal.h:2228
@ GFT_String
Definition gdal.h:2227
@ GFT_Integer
Definition gdal.h:2225
void GDALDatasetResetReading(GDALDatasetH)
Reset feature reading to start on the first feature.
Definition gdaldataset.cpp:7955
const char * GDALMDArrayGetUnit(GDALMDArrayH hArray)
Return the array unit.
Definition gdalmultidim.cpp:13192
int GDALAttributeWriteDoubleArray(GDALAttributeH hAttr, const double *, size_t)
Write an attribute from an array of double.
Definition gdalmultidim.cpp:14063
bool GDALGroupDeleteMDArray(GDALGroupH hGroup, const char *pszName, CSLConstList papszOptions)
Delete an array from a group.
Definition gdalmultidim.cpp:12084
CPLErr(* GDALVRTProcessedDatasetFuncInit)(const char *pszFuncName, void *pUserData, CSLConstList papszFunctionArgs, int nInBands, GDALDataType eInDT, double *padfInNoData, int *pnOutBands, GDALDataType *peOutDT, double **ppadfOutNoData, const char *pszVRTPath, VRTPDWorkingDataPtr *ppWorkingData)
Initialization function to pass to GDALVRTRegisterProcessedDatasetFunc.
Definition gdal.h:1829
char * GDALSubdatasetInfoGetPathComponent(GDALSubdatasetInfoH hInfo)
Returns the file path component of a subdataset descriptor effectively stripping the information abou...
Definition gdalsubdatasetinfo.cpp:69
void GDALRATRemoveStatistics(GDALRasterAttributeTableH)
Remove Statistics from RAT.
Definition gdal_rat.cpp:3417
const char * GDALDimensionGetName(GDALDimensionH hDim)
Return dimension name.
Definition gdalmultidim.cpp:14114
const char * GDALGetGCPProjection(GDALDatasetH)
Get output projection for GCPs.
Definition gdaldataset.cpp:2109
GDALDataType GDALDataTypeUnion(GDALDataType, GDALDataType)
Return the smallest data type that can fully express both input data types.
Definition gdal_misc.cpp:135
GDALColorInterp GDALGetColorInterpretationByName(const char *pszName)
Get color interpretation by symbolic name.
Definition gdal_misc.cpp:1390
OGRLayerH GDALGroupOpenVectorLayer(GDALGroupH hGroup, const char *pszVectorLayerName, CSLConstList papszOptions)
Open and return a vector layer.
Definition gdalmultidim.cpp:11769
int GDALMDArrayRead(GDALMDArrayH hArray, const GUInt64 *arrayStartIdx, const size_t *count, const GInt64 *arrayStep, const GPtrDiff_t *bufferStride, GDALExtendedDataTypeH bufferDatatype, void *pDstBuffer, const void *pDstBufferAllocStart, size_t nDstBufferllocSize)
Read part or totality of a multidimensional array.
Definition gdalmultidim.cpp:12337
int GDALGetColorEntryAsRGB(GDALColorTableH, int, GDALColorEntry *)
Fetch a table entry in RGB format.
Definition gdalcolortable.cpp:169
char ** GDALGetFileList(GDALDatasetH)
Fetch files forming dataset.
Definition gdaldataset.cpp:3639
const char * GDALRelationshipGetRightTableName(GDALRelationshipH)
Get the name of the right (or related/destination) table in the relationship.
Definition gdalrelationship.cpp:150
char ** GDALDatasetGetRelationshipNames(GDALDatasetH, CSLConstList)
Returns a list of the names of all relationships stored in the dataset.
Definition gdaldataset.cpp:10163
const char * GDALVersionInfo(const char *)
Get runtime version information.
Definition gdal_misc.cpp:2847
int GDALAttributeWriteRaw(GDALAttributeH hAttr, const void *, size_t)
Write an attribute from raw values expressed in GetDataType().
Definition gdalmultidim.cpp:13880
int GDALDatasetGetLayerCount(GDALDatasetH)
Get the number of layers in this dataset.
Definition gdaldataset.cpp:5131
CPLErr GDALSetMetadata(GDALMajorObjectH, CSLConstList, const char *)
Set metadata.
Definition gdalmajorobject.cpp:296
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:5146
int GDALDatasetTestCapability(GDALDatasetH, const char *)
Test if capability is available.
Definition gdaldataset.cpp:8302
const char * GDALDimensionGetFullName(GDALDimensionH hDim)
Return dimension full name.
Definition gdalmultidim.cpp:14128
int GDALInvHomography(const double *padfHomographyIn, double *padfInvHomographyOut)
Invert Homography.
Definition gdal_homography.cpp:442
GDALDatasetH GDALGetThreadSafeDataset(GDALDatasetH, int nScopeFlags, CSLConstList papszOptions)
Return a thread-safe dataset.
Definition gdalthreadsafedataset.cpp:1285
CPLXMLNode * GDALGetJPEG2000Structure(const char *pszFilename, CSLConstList papszOptions)
Dump the structure of a JPEG2000 file as a XML tree.
Definition gdaljp2structure.cpp:2344
double GDALAdjustValueToDataType(GDALDataType eDT, double dfValue, int *pbClamped, int *pbRounded)
Adjust a value to the output data type.
Definition gdal_misc.cpp:851
void GDALEndAsyncReader(GDALDatasetH hDS, GDALAsyncReaderH hAsynchReaderH)
End asynchronous request.
Definition gdaldataset.cpp:4831
CPLErr GDALCreateMaskBand(GDALRasterBandH hBand, int nFlags)
Adds a mask band to the current band.
Definition gdalrasterband.cpp:9495
GDALAttributeH GDALGroupCreateAttribute(GDALGroupH hGroup, const char *pszName, size_t nDimensions, const GUInt64 *panDimensions, GDALExtendedDataTypeH hEDT, CSLConstList papszOptions)
Create a attribute within a group.
Definition gdalmultidim.cpp:12102
int GDALGCPsToHomography(int nGCPCount, const GDAL_GCP *pasGCPs, double *padfHomography)
Generate Homography from GCPs.
Definition gdal_homography.cpp:141
int GDALDatasetIsLayerPrivate(GDALDatasetH, int)
Returns true if the layer at the specified index is deemed a private or system table,...
Definition gdaldataset.cpp:5232
int GDALGetDataTypeSizeBytes(GDALDataType)
Get data type size in bytes.
Definition gdal_misc.cpp:374
GDALMDArrayH * GDALMDArrayGetCoordinateVariables(GDALMDArrayH hArray, size_t *pnCount)
Return coordinate variables.
Definition gdalmultidim.cpp:13328
const char * GDALAttributeGetName(GDALAttributeH hAttr)
Return the name of the attribute.
Definition gdalmultidim.cpp:13529
CPLErr GDALDeleteDataset(GDALDriverH, const char *)
Delete named dataset.
Definition gdaldriver.cpp:1769
GDALSubdatasetInfoH GDALGetSubdatasetInfo(const char *pszFileName)
Returns a new GDALSubdatasetInfo object with methods to extract and manipulate subdataset information...
Definition gdalsubdatasetinfo.cpp:22
const char * GDALExtendedDataTypeGetName(GDALExtendedDataTypeH hEDT)
Return type name.
Definition gdalmultidim.cpp:11243
void GDALExtendedDataTypeRelease(GDALExtendedDataTypeH hEDT)
Release the GDAL in-memory object associated with a GDALExtendedDataTypeH.
Definition gdalmultidim.cpp:11230
bool GDALGroupRename(GDALGroupH hGroup, const char *pszNewName)
Rename the group.
Definition gdalmultidim.cpp:12159
GDALMDArrayH GDALMDArrayTranspose(GDALMDArrayH hArray, size_t nNewAxisCount, const int *panMapNewAxisToOldAxis)
Return a view of the array whose axis have been reordered.
Definition gdalmultidim.cpp:13047
bool GDALAttributeRename(GDALAttributeH hAttr, const char *pszNewName)
Rename the attribute.
Definition gdalmultidim.cpp:14085
GDALGroupH GDALDatasetGetRootGroup(GDALDatasetH hDS)
Return the root GDALGroup of this dataset.
Definition gdalmultidim.cpp:14254
GDALDatasetH GDALOpenEx(const char *pszFilename, unsigned int nOpenFlags, const char *const *papszAllowedDrivers, const char *const *papszOpenOptions, const char *const *papszSiblingFiles)
Open a raster or vector file as a GDALDataset.
Definition gdaldataset.cpp:3914
const char * GDALGetDataTypeName(GDALDataType)
Get name of data type.
Definition gdal_misc.cpp:715
void GDALAllRegister(void)
Register all known configured GDAL drivers.
Definition gdalallregister.cpp:111
GDALRATFieldType GDALRATGetTypeOfCol(GDALRasterAttributeTableH, int)
Fetch column type.
Definition gdal_rat.cpp:1966
double GDALMDArrayGetOffset(GDALMDArrayH hArray, int *pbHasValue)
Get the scale value to apply to raw values.
Definition gdalmultidim.cpp:12886
void GDALReleaseArrays(GDALMDArrayH *arrays, size_t nCount)
Free the return of GDALMDArrayGetCoordinateVariables().
Definition gdalmultidim.cpp:13456
GDALMDArrayH GDALMDArrayGetMask(GDALMDArrayH hArray, CSLConstList papszOptions)
Return an array that is a mask for the current array.
Definition gdalmultidim.cpp:13101
const char * GDALGetDescription(GDALMajorObjectH)
Fetch object description.
Definition gdalmajorobject.cpp:77
GDALGroupH GDALGroupSubsetDimensionFromSelection(GDALGroupH hGroup, const char *pszSelection, CSLConstList papszOptions)
Return a virtual group whose one dimension has been subset according to a selection.
Definition gdalmultidim.cpp:12178
GDALMDArrayH * GDALMDArrayGetMeshGrid(const GDALMDArrayH *pahInputArrays, size_t nCountInputArrays, size_t *pnCountOutputArrays, CSLConstList papszOptions)
Return a list of multidimensional arrays from a list of one-dimensional arrays.
Definition gdalmultidim.cpp:13423
double * GDALAttributeReadAsDoubleArray(GDALAttributeH hAttr, size_t *pnCount)
Return the value of an attribute as an array of doubles.
Definition gdalmultidim.cpp:13845
uint64_t GDALMDArrayGetNoDataValueAsUInt64(GDALMDArrayH hArray, int *pbHasNoDataValue)
Return the nodata value as a UInt64.
Definition gdalmultidim.cpp:12630
const char * GDALRATGetValueAsString(GDALRasterAttributeTableH, int iRow, int iField)
Fetch field value as a string.
Definition gdal_rat.cpp:2135
int GDALGetDriverCount(void)
Fetch the number of registered drivers.
Definition gdaldrivermanager.cpp:409
CPLErr GDALBuildOverviewsEx(GDALDatasetH, const char *, int, const int *, int, const int *, GDALProgressFunc, void *, CSLConstList papszOptions)
Build raster overview(s).
Definition gdaldataset.cpp:2475
GDALRasterAlgebraBinaryOperation
Raster algebra binary operation.
Definition gdal.h:1961
@ GRABO_LOGICAL_AND
Logical and.
Definition gdal.h:1985
@ GRABO_GT
Strictly greater than test.
Definition gdal.h:1973
@ GRABO_LOGICAL_OR
Logical or.
Definition gdal.h:1987
@ GRABO_POW
Power.
Definition gdal.h:1971
@ GRABO_MUL
Multiplication.
Definition gdal.h:1967
@ GRABO_SUB
Subtraction.
Definition gdal.h:1965
@ GRABO_ADD
Addition.
Definition gdal.h:1963
@ GRABO_EQ
Equality test.
Definition gdal.h:1981
@ GRABO_NE
Non-equality test.
Definition gdal.h:1983
@ GRABO_LE
Lesser or equal to test.
Definition gdal.h:1979
@ GRABO_DIV
Division.
Definition gdal.h:1969
@ GRABO_GE
Greater or equal to test.
Definition gdal.h:1975
@ GRABO_LT
Strictly lesser than test.
Definition gdal.h:1977
CPLErr GDALGetExtent(GDALDatasetH, OGREnvelope *, OGRSpatialReferenceH hCRS)
Return extent of dataset in specified CRS.
Definition gdaldataset.cpp:11270
GDALExtendedDataTypeSubType
Enumeration giving the subtype of a GDALExtendedDataType.
Definition gdal.h:405
@ GEDTST_JSON
JSon.
Definition gdal.h:409
@ GEDTST_NONE
None.
Definition gdal.h:407
GDALEDTComponentH * GDALExtendedDataTypeGetComponents(GDALExtendedDataTypeH hEDT, size_t *pnCount)
Return the components of the data type (only valid when GetClass() == GEDTC_COMPOUND).
Definition gdalmultidim.cpp:11407
bool GDALMDArrayResize(GDALMDArrayH hArray, const GUInt64 *panNewDimSizes, CSLConstList papszOptions)
Resize an array to new dimensions.
Definition gdalmultidim.cpp:12739
void GDALDestroyColorTable(GDALColorTableH)
Destroys a color table.
Definition gdalcolortable.cpp:81
int GDALLoadOziMapFile(const char *, double *, char **, int *, GDAL_GCP **)
Helper function for translator implementer wanting support for OZI .map.
Definition gdal_misc.cpp:1999
CPLErr GDALAddDerivedBandPixelFuncWithArgs(const char *pszName, GDALDerivedPixelFuncWithArgs pfnPixelFunc, const char *pszMetadata)
This adds a pixel function to the global list of available pixel functions for derived bands.
Definition vrtderivedrasterband.cpp:349
CPLErr GDALClose(GDALDatasetH)
Close GDAL dataset.
Definition gdaldataset.cpp:4478
void GDALDestroyRelationship(GDALRelationshipH)
Destroys a relationship.
Definition gdalrelationship.cpp:72
GDALDatasetH GDALMDArrayAsClassicDataset(GDALMDArrayH hArray, size_t iXDim, size_t iYDim)
Return a view of this array as a "classic" GDALDataset (ie 2D).
Definition gdalmultidim.cpp:14381
CPLErr GDALComputeRasterStatistics(GDALRasterBandH, int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData)
Compute image statistics.
Definition gdalrasterband.cpp:7842
int * GDALAttributeReadAsIntArray(GDALAttributeH hAttr, size_t *pnCount)
Return the value of an attribute as an array of integers.
Definition gdalmultidim.cpp:13788
int GDALAttributeWriteStringArray(GDALAttributeH hAttr, CSLConstList)
Write an attribute from an array of strings.
Definition gdalmultidim.cpp:13988
CPLErr GDALMDArrayGetStatistics(GDALMDArrayH hArray, GDALDatasetH, int bApproxOK, int bForce, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GUInt64 *pnValidCount, GDALProgressFunc pfnProgress, void *pProgressData)
Fetch statistics.
Definition gdalmultidim.cpp:13243
int GDALReadOziMapFile(const char *, double *, char **, int *, GDAL_GCP **)
Helper function for translator implementer wanting support for OZI .map.
Definition gdal_misc.cpp:2208
CPLErr GDALRATSetTableType(GDALRasterAttributeTableH hRAT, const GDALRATTableType eInTableType)
Set RAT Table Type.
Definition gdal_rat.cpp:1114
OGRLayerH GDALDatasetExecuteSQL(GDALDatasetH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition gdaldataset.cpp:5731
CPLErr GDALVRTRegisterProcessedDatasetFunc(const char *pszFuncName, void *pUserData, const char *pszXMLMetadata, GDALDataType eRequestedInputDT, const GDALDataType *paeSupportedInputDT, size_t nSupportedInputDTSize, const int *panSupportedInputBandCount, size_t nSupportedInputBandCountSize, GDALVRTProcessedDatasetFuncInit pfnInit, GDALVRTProcessedDatasetFuncFree pfnFree, GDALVRTProcessedDatasetFuncProcess pfnProcess, CSLConstList papszOptions)
Register a function to be used by VRTProcessedDataset.
Definition vrtprocesseddataset.cpp:1739
CPLErr GDALSetRasterOffset(GDALRasterBandH hBand, double dfNewOffset)
Set scaling offset.
Definition gdalrasterband.cpp:3640
CSLConstList GDALMDArrayGetStructuralInfo(GDALMDArrayH hArray)
Return structural information on the array.
Definition gdalmultidim.cpp:13011
void GDALDeinitGCPs(int, GDAL_GCP *)
De-initialize an array of GCPs (initialized with GDALInitGCPs()).
Definition gdal_misc.cpp:1857
CPLErr GDALReadBlock(GDALRasterBandH, int, int, void *)
Read a block of image data efficiently.
Definition gdalrasterband.cpp:1125
CPLErr(* GDALVRTProcessedDatasetFuncProcess)(const char *pszFuncName, void *pUserData, VRTPDWorkingDataPtr pWorkingData, CSLConstList papszFunctionArgs, int nBufXSize, int nBufYSize, const void *pInBuffer, size_t nInBufferSize, GDALDataType eInDT, int nInBands, const double *padfInNoData, void *pOutBuffer, size_t nOutBufferSize, GDALDataType eOutDT, int nOutBands, const double *padfOutNoData, double dfSrcXOff, double dfSrcYOff, double dfSrcXSize, double dfSrcYSize, const double adfSrcGT[], const char *pszVRTPath, CSLConstList papszExtra)
Processing function to pass to GDALVRTRegisterProcessedDatasetFunc.
Definition gdal.h:1877
const char * GDALMDArrayGetName(GDALMDArrayH hArray)
Return array name.
Definition gdalmultidim.cpp:12213
GDALExtendedDataTypeH GDALExtendedDataTypeCreateString(size_t nMaxStringLength)
Return a new GDALExtendedDataType of class GEDTC_STRING.
Definition gdalmultidim.cpp:11158
const char * GDALGetMetadataItem(GDALMajorObjectH, const char *, const char *)
Fetch single metadata item.
Definition gdalmajorobject.cpp:339
double GDALMDArrayGetOffsetEx(GDALMDArrayH hArray, int *pbHasValue, GDALDataType *peStorageType)
Get the scale value to apply to raw values.
Definition gdalmultidim.cpp:12909
CPLErr GDALSetRasterColorInterpretation(GDALRasterBandH, GDALColorInterp)
Set color interpretation of a band.
Definition gdalrasterband.cpp:3169
CPLErr GDALDropRasterCache(GDALRasterBandH hBand)
Drop raster data cache.
Definition gdalrasterband.cpp:1746
CPLErr GDALBuildOverviews(GDALDatasetH, const char *, int, const int *, int, const int *, GDALProgressFunc, void *)
Build raster overview(s).
Definition gdaldataset.cpp:2448
CPLErr GDALDatasetRasterIO(GDALDatasetH hDS, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType, int nBandCount, const int *panBandCount, int nPixelSpace, int nLineSpace, int nBandSpace)
Read/write a region of image data from multiple bands.
Definition gdaldataset.cpp:3170
CPLErr GDALRegenerateOverviewsEx(GDALRasterBandH hSrcBand, int nOverviewCount, GDALRasterBandH *pahOverviewBands, const char *pszResampling, GDALProgressFunc pfnProgress, void *pProgressData, CSLConstList papszOptions)
Generate downsampled overviews.
Definition overview.cpp:4937
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:255
int GDALLoadWorldFile(const char *, double *)
Read ESRI world file.
Definition gdal_misc.cpp:2508
GDALColorTableH GDALGetRasterColorTable(GDALRasterBandH)
Fetch the color table associated with band.
Definition gdalrasterband.cpp:3211
void GDALMDArrayRawBlockInfoRelease(GDALMDArrayRawBlockInfo *psBlockInfo)
Free an instance of GDALMDArrayRawBlockInfo.
Definition gdalmultidim.cpp:15371
CPLErr GDALComputeBandStats(GDALRasterBandH hBand, int nSampleStep, double *pdfMean, double *pdfStdDev, GDALProgressFunc pfnProgress, void *pProgressData)
Undocumented.
Definition overview.cpp:6811
bool GDALMDArrayRename(GDALMDArrayH hArray, const char *pszNewName)
Rename the array.
Definition gdalmultidim.cpp:13498
GDALExtendedDataTypeClass GDALExtendedDataTypeGetClass(GDALExtendedDataTypeH hEDT)
Return type class.
Definition gdalmultidim.cpp:11258
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:287
GDALDimensionH GDALGroupCreateDimension(GDALGroupH hGroup, const char *pszName, const char *pszType, const char *pszDirection, GUInt64 nSize, CSLConstList papszOptions)
Create a dimension within a group.
Definition gdalmultidim.cpp:12025
void GDALDestroy(void)
Finalize GDAL/OGR library.
Definition gdaldllmain.cpp:53
int GDALMDArraySetScaleEx(GDALMDArrayH hArray, double dfScale, GDALDataType eStorageType)
Set the scale value to apply to raw values.
Definition gdalmultidim.cpp:12783
GDALRasterAttributeTableH GDALGetDefaultRAT(GDALRasterBandH hBand)
Fetch default Raster Attribute Table.
Definition gdalrasterband.cpp:8931
const char * GDALRelationshipGetName(GDALRelationshipH)
Get the name of the relationship.
Definition gdalrelationship.cpp:90
GDALAttributeH * GDALMDArrayGetAttributes(GDALMDArrayH hArray, size_t *pnCount, CSLConstList papszOptions)
Return the list of attributes contained in this array.
Definition gdalmultidim.cpp:12466
GDALMDArrayH GDALMDArrayGetGridded(GDALMDArrayH hArray, const char *pszGridOptions, GDALMDArrayH hXArray, GDALMDArrayH hYArray, CSLConstList papszOptions)
Return a gridded array from scattered point data, that is from an array whose last dimension is the i...
Definition gdalmultidim.cpp:13357
void GDALRelationshipSetBackwardPathLabel(GDALRelationshipH, const char *)
Sets the label of the backward path for the relationship.
Definition gdalrelationship.cpp:577
OGRFieldDomainH GDALDatasetGetFieldDomain(GDALDatasetH hDS, const char *pszName)
Get a field domain from its name.
Definition gdaldataset.cpp:9892
const char * GDALRelationshipGetRelatedTableType(GDALRelationshipH)
Get the type string of the related table.
Definition gdalrelationship.cpp:603
GDALComputedRasterBandH GDALMinimumOfNBands(size_t nBandCount, GDALRasterBandH *pahBands)
Return a band whose each pixel value is the minimum of the corresponding pixel values in the input ba...
Definition gdalrasterband.cpp:12639
int GDALDereferenceDataset(GDALDatasetH)
Subtract one from dataset reference count.
Definition gdaldataset.cpp:1797
GDALDimensionH * GDALMDArrayGetDimensions(GDALMDArrayH hArray, size_t *pnCount)
Return the dimensions of the array.
Definition gdalmultidim.cpp:12279
double GDALMDArrayGetScale(GDALMDArrayH hArray, int *pbHasValue)
Get the scale value to apply to raw values.
Definition gdalmultidim.cpp:12840
CPLErr GDALRasterInterpolateAtGeolocation(GDALRasterBandH hBand, double dfGeolocX, double dfGeolocY, OGRSpatialReferenceH hSRS, GDALRIOResampleAlg eInterpolation, double *pdfRealValue, double *pdfImagValue, CSLConstList papszTransformerOptions)
Interpolates the value between pixels using a resampling algorithm, taking georeferenced coordinates ...
Definition gdalrasterband.cpp:11024
char ** GDALGroupGetMDArrayFullNamesRecursive(GDALGroupH hGroup, CSLConstList papszGroupOptions, CSLConstList papszArrayOptions)
Return the list of multidimensional array full names contained in this group and its subgroups.
Definition gdalmultidim.cpp:11601
GUInt64 * GDALAttributeGetDimensionsSize(GDALAttributeH hAttr, size_t *pnCount)
Return the dimension sizes of the attribute.
Definition gdalmultidim.cpp:13593
char ** GDALRelationshipGetLeftMappingTableFields(GDALRelationshipH)
Get the names of the mapping table fields which correspond to the participating fields from the left ...
Definition gdalrelationship.cpp:325
GIntBig GDALGetCacheMax64(void)
Get maximum cache memory.
Definition gdalrasterblock.cpp:215
void GDALDatasetReleaseResultSet(GDALDatasetH, OGRLayerH)
Release results of ExecuteSQL().
Definition gdaldataset.cpp:5103
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)
Create a CPLVirtualMem object from a GDAL dataset object.
Definition gdalvirtualmem.cpp:881
GDALRATTableType GDALRATGetTableType(GDALRasterAttributeTableH hRAT)
Get Rat Table Type.
Definition gdal_rat.cpp:1096
GDALAttributeH * GDALGroupGetAttributes(GDALGroupH hGroup, size_t *pnCount, CSLConstList papszOptions)
Return the list of attributes contained in this group.
Definition gdalmultidim.cpp:11879
bool GDALIsValueInRangeOf(double dfValue, GDALDataType eDT)
Check whether the provided value can be represented in the range of the data type,...
Definition gdal_misc.cpp:1024
CPLErr GDALFillRaster(GDALRasterBandH hBand, double dfRealValue, double dfImaginaryValue)
Fill this band with a constant value.
Definition gdalrasterband.cpp:2176
void GDALRATSetValueAsDouble(GDALRasterAttributeTableH, int iRow, int iField, double)
Set field value from double.
Definition gdal_rat.cpp:2810
OGRStyleTableH GDALDatasetGetStyleTable(GDALDatasetH)
Returns dataset style table.
Definition gdaldataset.cpp:5798
int GDALRegisterDriver(GDALDriverH)
Register a driver for use.
Definition gdaldrivermanager.cpp:650
char * GDALSubdatasetInfoModifyPathComponent(GDALSubdatasetInfoH hInfo, const char *pszNewPath)
Replaces the path component of a subdataset descriptor.
Definition gdalsubdatasetinfo.cpp:79
void GDALInitGCPs(int, GDAL_GCP *)
Initialize an array of GCPs.
Definition gdal_misc.cpp:1831
size_t * GDALMDArrayGetProcessingChunkSize(GDALMDArrayH hArray, size_t *pnCount, size_t nMaxChunkMemory)
Return an optimal chunk size for read/write operations, given the natural block size and memory const...
Definition gdalmultidim.cpp:12983
int GDALReferenceDataset(GDALDatasetH)
Add one to dataset reference count.
Definition gdaldataset.cpp:1759
int GDALRATGetColumnCount(GDALRasterAttributeTableH)
Fetch table column count.
Definition gdal_rat.cpp:1846
int GDALGetGCPCount(GDALDatasetH)
Get number of GCPs.
Definition gdaldataset.cpp:1998
GDALRasterAttributeTableH GDALRATClone(const GDALRasterAttributeTableH)
Copy Raster Attribute Table.
Definition gdal_rat.cpp:3380
int GDALMDArraySetNoDataValueAsDouble(GDALMDArrayH hArray, double dfNoDataValue)
Set the nodata value as a double.
Definition gdalmultidim.cpp:12671
int GDALDataTypeIsFloating(GDALDataType)
Is data type floating?
Definition gdal_misc.cpp:509
const char * GDALGetProjectionRef(GDALDatasetH)
Fetch the projection definition string for this dataset.
Definition gdaldataset.cpp:1356
int GDALDataTypeIsConversionLossy(GDALDataType eTypeFrom, GDALDataType eTypeTo)
Is conversion from eTypeFrom to eTypeTo potentially lossy.
Definition gdal_misc.cpp:636
GDALPaletteInterp GDALGetPaletteInterpretation(GDALColorTableH)
Fetch palette interpretation.
Definition gdalcolortable.cpp:340
CPLErr GDALSetGCPs(GDALDatasetH, int, const GDAL_GCP *, const char *)
Assign GCPs.
Definition gdaldataset.cpp:2259
#define GCI_SAR_Start
Value indicating the start of the range for color interpretations belonging to the Synthetic Aperture...
Definition gdal.h:246
int GDALRATGetRowCount(GDALRasterAttributeTableH)
Fetch row count.
Definition gdal_rat.cpp:2034
bool GDALMDArrayDeleteAttribute(GDALMDArrayH hArray, const char *pszName, CSLConstList papszOptions)
Delete an attribute from an array.
Definition gdalmultidim.cpp:12527
GDALExtendedDataTypeH GDALMDArrayGetDataType(GDALMDArrayH hArray)
Return the data type.
Definition gdalmultidim.cpp:12320
GDALColorInterp
Types of color interpretation for raster bands.
Definition gdal.h:270
@ GCI_NIRBand
Definition gdal.h:298
@ GCI_SAR_S_Band
Definition gdal.h:330
@ GCI_SAR_L_Band
Definition gdal.h:332
@ GCI_YCbCr_YBand
Definition gdal.h:289
@ GCI_SAR_Reserved_2
Definition gdal.h:338
@ GCI_Undefined
Definition gdal.h:271
@ GCI_SAR_K_Band
Definition gdal.h:322
@ GCI_SaturationBand
Definition gdal.h:282
@ GCI_LightnessBand
Definition gdal.h:283
@ GCI_SAR_Ku_Band
Definition gdal.h:324
@ GCI_HueBand
Definition gdal.h:281
@ GCI_LWIRBand
Definition gdal.h:304
@ GCI_CyanBand
Definition gdal.h:284
@ GCI_IR_Reserved_3
Definition gdal.h:315
@ GCI_SAR_Ka_Band
Definition gdal.h:320
@ GCI_MagentaBand
Definition gdal.h:285
@ GCI_GrayIndex
Definition gdal.h:272
@ GCI_IR_Reserved_4
Definition gdal.h:317
@ GCI_SAR_X_Band
Definition gdal.h:326
@ GCI_SAR_P_Band
Definition gdal.h:334
@ GCI_BlueBand
Definition gdal.h:279
@ GCI_PaletteIndex
Definition gdal.h:273
@ GCI_SAR_Reserved_1
Definition gdal.h:336
@ GCI_RedBand
Definition gdal.h:275
@ GCI_AlphaBand
Definition gdal.h:280
@ GCI_Max
Definition gdal.h:342
@ GCI_YCbCr_CrBand
Definition gdal.h:291
@ GCI_TIRBand
Definition gdal.h:306
@ GCI_MWIRBand
Definition gdal.h:302
@ GCI_SAR_C_Band
Definition gdal.h:328
@ GCI_GreenBand
Definition gdal.h:277
@ GCI_YellowBand
Definition gdal.h:287
@ GCI_OtherIRBand
Definition gdal.h:308
@ GCI_IR_Reserved_2
Definition gdal.h:313
@ GCI_BlackBand
Definition gdal.h:288
@ GCI_IR_Reserved_1
Definition gdal.h:311
@ GCI_RedEdgeBand
Definition gdal.h:296
@ GCI_SWIRBand
Definition gdal.h:300
@ GCI_YCbCr_CbBand
Definition gdal.h:290
@ GCI_CoastalBand
Definition gdal.h:295
@ GCI_PanBand
Definition gdal.h:294
OGRLayerH GDALDatasetCreateLayerFromGeomFieldDefn(GDALDatasetH, const char *, OGRGeomFieldDefnH, CSLConstList)
This function attempts to create a new layer on the dataset with the indicated name and geometry fiel...
Definition gdaldataset.cpp:5631
int GDALARLockBuffer(GDALAsyncReaderH hARIO, double dfTimeout)
Lock image buffer.
Definition gdaldefaultasync.cpp:204
int64_t * GDALAttributeReadAsInt64Array(GDALAttributeH hAttr, size_t *pnCount)
Return the value of an attribute as an array of int64_t.
Definition gdalmultidim.cpp:13816
const char * GDALGetRasterUnitType(GDALRasterBandH)
Return raster unit type.
Definition gdalrasterband.cpp:3789
CPLErr GDALFlushRasterCache(GDALRasterBandH hBand)
Flush raster data cache.
Definition gdalrasterband.cpp:1682
void GDALTranspose2D(const void *pSrc, GDALDataType eSrcType, void *pDst, GDALDataType eDstType, size_t nSrcWidth, size_t nSrcHeight)
Transpose a 2D array in a efficient (cache-oblivious) way.
Definition rasterio.cpp:6583
GDALRelationshipType
Type of relationship.
Definition gdal.h:2439
@ GRT_AGGREGATION
Aggregation relationship.
Definition gdal.h:2445
@ GRT_ASSOCIATION
Association relationship.
Definition gdal.h:2443
@ GRT_COMPOSITE
Composite relationship.
Definition gdal.h:2441
CPLErr GDALRATSetValueAsWKBGeometry(GDALRasterAttributeTableH, int iRow, int iField, const void *pabyWKB, size_t nWKBSize)
Set field value from a WKB-encoded geometry.
Definition gdal_rat.cpp:3049
GDALRasterBandH GDALGetRasterSampleOverview(GDALRasterBandH, int)
Fetch best sampling overview.
Definition gdalrasterband.cpp:3465
double GDALPackedDMSToDec(double)
Convert a packed DMS value (DDDMMMSSS.SS) into decimal degrees.
Definition gdal_misc.cpp:3086
int GDALExtendedDataTypeEquals(GDALExtendedDataTypeH hFirstEDT, GDALExtendedDataTypeH hSecondEDT)
Return whether this data type is equal to another one.
Definition gdalmultidim.cpp:11340
GDALColorTableH GDALRATTranslateToColorTable(GDALRasterAttributeTableH, int nEntryCount)
Translate to a color table.
Definition gdal_rat.cpp:1689
OGRLayerH GDALDatasetCopyLayer(GDALDatasetH, OGRLayerH, const char *, CSLConstList)
Duplicate an existing layer.
Definition gdaldataset.cpp:5677
int GDALMDArrayAdviseRead(GDALMDArrayH hArray, const GUInt64 *arrayStartIdx, const size_t *count)
Advise driver of upcoming read requests.
Definition gdalmultidim.cpp:12402
const char * GDALRATGetNameOfCol(GDALRasterAttributeTableH, int)
Fetch name of indicated column.
Definition gdal_rat.cpp:1884
GDALDataType GDALDataTypeUnionWithValue(GDALDataType eDT, double dValue, int bComplex)
Union a data type with the one found for a value.
Definition gdal_misc.cpp:177
GDALAsyncStatusType
status of the asynchronous stream
Definition gdal.h:104
int GDALReadTabFile(const char *, double *, char **, int *, GDAL_GCP **)
Helper function for translator implementer wanting support for MapInfo .tab files.
Definition gdal_misc.cpp:2403
GDALRelationshipType GDALRelationshipGetType(GDALRelationshipH)
Get the type of the relationship.
Definition gdalrelationship.cpp:426
void GDALReleaseAttributes(GDALAttributeH *attributes, size_t nCount)
Free the return of GDALGroupGetAttributes() or GDALMDArrayGetAttributes().
Definition gdalmultidim.cpp:11961
CPLErr GDALFlushCache(GDALDatasetH hDS)
Flush all write cached data to disk.
Definition gdaldataset.cpp:650
int64_t GDALAttributeReadAsInt64(GDALAttributeH hAttr)
Return the value of an attribute as a int64_t.
Definition gdalmultidim.cpp:13734
CPLErr GDALSetDefaultRAT(GDALRasterBandH, GDALRasterAttributeTableH)
Set default Raster Attribute Table.
Definition gdalrasterband.cpp:8986
void GDALCopyWords(const void *pSrcData, GDALDataType eSrcType, int nSrcPixelOffset, void *pDstData, GDALDataType eDstType, int nDstPixelOffset, int nWordCount)
Copy pixel words from buffer to buffer.
Definition rasterio.cpp:3740
int GDALReadWorldFile(const char *, const char *, double *)
Read ESRI world file.
Definition gdal_misc.cpp:2603
GDALMDArrayH GDALGroupCreateMDArray(GDALGroupH hGroup, const char *pszName, size_t nDimensions, GDALDimensionH *pahDimensions, GDALExtendedDataTypeH hEDT, CSLConstList papszOptions)
Create a multidimensional array within a group.
Definition gdalmultidim.cpp:12050
int GDALReleaseDataset(GDALDatasetH)
Drop a reference to this object, and destroy if no longer referenced.
Definition gdaldataset.cpp:1836
GUInt64 * GDALMDArrayGetBlockSize(GDALMDArrayH hArray, size_t *pnCount)
Return the "natural" block size of the array along all dimensions.
Definition gdalmultidim.cpp:12946
int GDALGetDataTypeSize(GDALDataType)
Get data type size in bits.
Definition gdal_misc.cpp:448
GDALRasterAttributeTableH GDALExtendedDataTypeGetRAT(GDALExtendedDataTypeH hEDT)
Return associated raster attribute table, when there is one.
Definition gdalmultidim.cpp:11382
int GDALDataTypeIsSigned(GDALDataType)
Is data type signed?
Definition gdal_misc.cpp:593
CPLErr GDALSetRasterColorTable(GDALRasterBandH, GDALColorTableH)
Set the raster color table.
Definition gdalrasterband.cpp:3263
bool GDALRATGetValueAsBoolean(GDALRasterAttributeTableH, int iRow, int iField)
Fetch field value as a boolean.
Definition gdal_rat.cpp:2337
CPLErr GDALGetGeoTransform(GDALDatasetH, double *)
Fetch the affine transformation coefficients.
Definition gdaldataset.cpp:1564
void GDALSetCacheMax(int nBytes)
Set maximum cache memory.
Definition gdalrasterblock.cpp:104
int GDALAttributeWriteInt(GDALAttributeH hAttr, int)
Write an attribute from a integer value.
Definition gdalmultidim.cpp:13923
int GDALFlushCacheBlock(void)
Try to flush one cached raster block.
Definition gdalrasterblock.cpp:315
double GDALAttributeReadAsDouble(GDALAttributeH hAttr)
Return the value of an attribute as a double.
Definition gdalmultidim.cpp:13754
int GDALGetRasterYSize(GDALDatasetH)
Fetch raster height in pixels.
Definition gdaldataset.cpp:1035
GDALComputedRasterBandH GDALRasterBandBinaryOpDouble(GDALRasterBandH hBand, GDALRasterAlgebraBinaryOperation eOp, double constant)
Apply a binary operation on this band with a constant.
Definition gdalrasterband.cpp:11313
void GDALEDTComponentRelease(GDALEDTComponentH hComp)
Release the GDAL in-memory object associated with a GDALEDTComponentH.
Definition gdalmultidim.cpp:11470
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:307
int GDALRATGetColOfUsage(GDALRasterAttributeTableH, GDALRATFieldUsage)
Fetch column index for given usage.
Definition gdal_rat.cpp:2006
void GDALGetOpenDatasets(GDALDatasetH **hDS, int *pnCount)
Fetch all open GDAL dataset handles.
Definition gdaldataset.cpp:3267
int GDALGetBandNumber(GDALRasterBandH)
Fetch the band number.
Definition gdalrasterband.cpp:3958
GDALDatasetH GDALCreateMultiDimensional(GDALDriverH hDriver, const char *pszName, CSLConstList papszRootGroupOptions, CSLConstList papszOptions)
Create a new multidimensional dataset with this driver.
Definition gdaldriver.cpp:424
char ** GDALRelationshipGetRightMappingTableFields(GDALRelationshipH)
Get the names of the mapping table fields which correspond to the participating fields from the right...
Definition gdalrelationship.cpp:352
GDALComputedRasterBandH GDALRasterBandBinaryOpBand(GDALRasterBandH hBand, GDALRasterAlgebraBinaryOperation eOp, GDALRasterBandH hOtherBand)
Apply a binary operation on this band with another one.
Definition gdalrasterband.cpp:11258
GDALRWFlag
Definition gdal.h:125
@ GF_Write
Definition gdal.h:127
@ GF_Read
Definition gdal.h:126
int GDALGCPsToGeoTransform(int nGCPCount, const GDAL_GCP *pasGCPs, double *padfGeoTransform, int bApproxOK)
Generate Geotransform from GCPs.
Definition gdal_misc.cpp:3143
void GDALCopyWords64(const void *pSrcData, GDALDataType eSrcType, int nSrcPixelOffset, void *pDstData, GDALDataType eDstType, int nDstPixelOffset, GPtrDiff_t nWordCount)
Copy pixel words from buffer to buffer.
Definition rasterio.cpp:3808
GDALMDArrayH GDALDatasetAsMDArray(GDALDatasetH hDS, CSLConstList papszOptions)
Return a view of this dataset as a 3D multidimensional GDALMDArray.
Definition gdalmultidim.cpp:14351
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:221
void GDALMDArrayRelease(GDALMDArrayH hMDArray)
Release the GDAL in-memory object associated with a GDALMDArray.
Definition gdalmultidim.cpp:12200
void GDALDestroySubdatasetInfo(GDALSubdatasetInfoH hInfo)
Destroys a GDALSubdatasetInfo object.
Definition gdalsubdatasetinfo.cpp:63
int GDALMDArraySetSpatialRef(GDALMDArrayH, OGRSpatialReferenceH)
Assign a spatial reference system object to the array.
Definition gdalmultidim.cpp:13207
void(* GDALVRTProcessedDatasetFuncFree)(const char *pszFuncName, void *pUserData, VRTPDWorkingDataPtr pWorkingData)
Free function to pass to GDALVRTRegisterProcessedDatasetFunc.
Definition gdal.h:1844
GDALDriverH GDALGetDriverByName(const char *)
Fetch a driver based on the short name.
Definition gdaldrivermanager.cpp:758
GDALDatasetH GDALOpen(const char *pszFilename, GDALAccess eAccess)
Open a raster file as a GDALDataset.
Definition gdaldataset.cpp:3763
const char * GDALRelationshipGetLeftTableName(GDALRelationshipH)
Get the name of the left (or base/origin) table in the relationship.
Definition gdalrelationship.cpp:127
GDALColorInterp GDALGetRasterColorInterpretation(GDALRasterBandH)
How should this band be interpreted as color?
Definition gdalrasterband.cpp:3123
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:1599
bool GDALDatasetUpdateRelationship(GDALDatasetH hDS, GDALRelationshipH hRelationship, char **ppszFailureReason)
Updates an existing relationship by replacing its definition.
Definition gdaldataset.cpp:10424
int GDALMDArrayComputeStatistics(GDALMDArrayH hArray, GDALDatasetH, int bApproxOK, double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev, GUInt64 *pnValidCount, GDALProgressFunc, void *pProgressData)
Compute statistics.
Definition gdalmultidim.cpp:13269
CPLErr GDALGetRasterHistogram(GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets, int *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc pfnProgress, void *pProgressData)
Compute raster histogram.
Definition gdalrasterband.cpp:4789
GDALDriverH GDALCreateDriver(void)
Create a GDALDriver.
Definition gdaldriver.cpp:66
char ** GDALGroupGetVectorLayerNames(GDALGroupH hGroup, CSLConstList papszOptions)
Return the list of layer names contained in this group.
Definition gdalmultidim.cpp:11741
double GDALMDArrayGetScaleEx(GDALMDArrayH hArray, int *pbHasValue, GDALDataType *peStorageType)
Get the scale value to apply to raw values.
Definition gdalmultidim.cpp:12863
CPLErr GDALRasterIO(GDALRasterBandH hRBand, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize, GDALDataType eBDataType, int nPixelSpace, int nLineSpace)
Read/write a region of image data for this band.
Definition gdalrasterband.cpp:487
int64_t GDALGetRasterNoDataValueAsInt64(GDALRasterBandH, int *)
Fetch the no data value for this band.
Definition gdalrasterband.cpp:2426
GDALDatasetH GDALCreateCopy(GDALDriverH, const char *, GDALDatasetH, int, CSLConstList, GDALProgressFunc, void *)
Create a copy of a dataset.
Definition gdaldriver.cpp:1409
const char * GDALGroupGetName(GDALGroupH hGroup)
Return the name of the group.
Definition gdalmultidim.cpp:11544
GDALComputedRasterBandH GDALRasterBandUnaryOp(GDALRasterBandH hBand, GDALRasterAlgebraUnaryOperation eOp)
Apply a unary operation on this band.
Definition gdalrasterband.cpp:11167
int GDALMDArraySetOffset(GDALMDArrayH hArray, double dfOffset)
Set the scale value to apply to raw values.
Definition gdalmultidim.cpp:12802
void GDALRelationshipSetRightTableFields(GDALRelationshipH, CSLConstList)
Sets the names of the participating fields from the right table in the relationship.
Definition gdalrelationship.cpp:301
CPLErr GDALRegenerateOverviews(GDALRasterBandH hSrcBand, int nOverviewCount, GDALRasterBandH *pahOverviewBands, const char *pszResampling, GDALProgressFunc pfnProgress, void *pProgressData)
Generate downsampled overviews.
Definition overview.cpp:4885
GDALRasterAttributeTableH GDALCreateRasterAttributeTable(void)
Construct empty table.
Definition gdal_rat.cpp:1774
int GDALGetCacheMax(void)
Get maximum cache memory.
Definition gdalrasterblock.cpp:181
void GDALComposeGeoTransforms(const double *padfGeoTransform1, const double *padfGeoTransform2, double *padfGeoTransformOut)
Compose two geotransforms.
Definition gdal_misc.cpp:3446
int GDALMDArrayAdviseReadEx(GDALMDArrayH hArray, const GUInt64 *arrayStartIdx, const size_t *count, CSLConstList papszOptions)
Advise driver of upcoming read requests.
Definition gdalmultidim.cpp:12420
CPLErr GDALSetRasterNoDataValueAsUInt64(GDALRasterBandH, uint64_t)
Set the no data value for this band.
Definition gdalrasterband.cpp:2817
void GDALDatasetSetStyleTable(GDALDatasetH, OGRStyleTableH)
Set dataset style table.
Definition gdaldataset.cpp:5854
void * GDALGetInternalHandle(GDALDatasetH, const char *)
Fetch a format specific internally meaningful handle.
Definition gdaldataset.cpp:1684
CPLErr GDALSetSpatialRef(GDALDatasetH, OGRSpatialReferenceH)
Set the spatial reference system for this dataset.
Definition gdaldataset.cpp:1445
void GDALDestroyDriver(GDALDriverH)
Destroy a GDALDriver.
Definition gdaldriver.cpp:85
GDALExtendedDataTypeH GDALGroupGetDataType(GDALGroupH hGroup, size_t nIdx)
Return one of the data types associated with the group.
Definition gdalmultidim.cpp:11943
#define GCI_IR_Start
Value indicating the start of the range for color interpretations belonging to the InfraRed (IR) doma...
Definition gdal.h:229
size_t GDALEDTComponentGetOffset(GDALEDTComponentH hComp)
Return the offset (in bytes) of the component in the compound data type.
Definition gdalmultidim.cpp:11499
GDALTileOrganization
!
Definition gdal.h:2522
@ GTO_BIT
Definition gdal.h:2529
@ GTO_BSQ
Definition gdal.h:2532
@ GTO_TIP
Definition gdal.h:2525
CPLErr GDALDatasetGeolocationToPixelLine(GDALDatasetH, double dfGeolocX, double dfGeolocY, OGRSpatialReferenceH hSRS, double *pdfPixel, double *pdfLine, CSLConstList papszTransformerOptions)
Transform georeferenced coordinates to pixel/line coordinates.
Definition gdaldataset.cpp:11106
void GDALCreateColorRamp(GDALColorTableH hTable, int nStartIndex, const GDALColorEntry *psStartColor, int nEndIndex, const GDALColorEntry *psEndColor)
Create color ramp.
Definition gdalcolortable.cpp:429
GDALExtendedDataTypeH GDALExtendedDataTypeCreateCompound(const char *pszName, size_t nTotalSize, size_t nComponents, const GDALEDTComponentH *comps)
Return a new GDALExtendedDataType of class GEDTC_COMPOUND.
Definition gdalmultidim.cpp:11204
char * GDALSubdatasetInfoGetSubdatasetComponent(GDALSubdatasetInfoH hInfo)
Returns the subdataset component of a subdataset descriptor descriptor.
Definition gdalsubdatasetinfo.cpp:74
GDALMDArrayH GDALMDArrayGetUnscaled(GDALMDArrayH hArray)
Return an array that is the unscaled version of the current one.
Definition gdalmultidim.cpp:13079
CPLErr GDALSetRasterStatistics(GDALRasterBandH hBand, double dfMin, double dfMax, double dfMean, double dfStdDev)
Set statistics on band.
Definition gdalrasterband.cpp:7917
CPLErr GDALDropCache(GDALDatasetH hDS)
Drop all write cached data.
Definition gdaldataset.cpp:703
double GDALMDArrayGetNoDataValueAsDouble(GDALMDArrayH hArray, int *pbHasNoDataValue)
Return the nodata value as a double.
Definition gdalmultidim.cpp:12578
double GDALDecToPackedDMS(double)
Convert decimal degrees into packed DMS value (DDDMMMSSS.SS).
Definition gdal_misc.cpp:3102
GDALDataType GDALGetDataTypeByName(const char *)
Get data type by symbolic name.
Definition gdal_misc.cpp:792
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:4057
bool GDALMDArrayGetRawBlockInfo(GDALMDArrayH hArray, const uint64_t *panBlockCoordinates, GDALMDArrayRawBlockInfo *psBlockInfo)
Return information on a raw block.
Definition gdalmultidim.cpp:15338
bool GDALDatasetSetQueryLoggerFunc(GDALDatasetH hDS, GDALQueryLoggerFunc pfnQueryLoggerFunc, void *poQueryLoggerArg)
Sets the SQL query logger callback.
Definition gdaldataset.cpp:10463
Forward definitions of GDAL/OGR/OSR C handle types.
struct GDALDimensionHS * GDALDimensionH
Opaque type for C++ GDALDimension.
Definition gdal_fwd.h:79
struct GDALAttributeHS * GDALAttributeH
Opaque type for C++ GDALAttribute.
Definition gdal_fwd.h:77
void * OGRGeometryH
Opaque type for a geometry.
Definition gdal_fwd.h:96
struct GDALSubdatasetInfo * GDALSubdatasetInfoH
Opaque type used for the C bindings of the C++ GDALSubdatasetInfo class.
Definition gdal_fwd.h:85
void * GDALDatasetH
Opaque type used for the C bindings of the C++ GDALDataset class.
Definition gdal_fwd.h:42
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition gdal_fwd.h:195
struct GDALEDTComponentHS * GDALEDTComponentH
Opaque type for C++ GDALEDTComponent.
Definition gdal_fwd.h:71
void * OGRLayerH
Opaque type for a layer (OGRLayer).
Definition gdal_fwd.h:157
struct GDALMDArrayHS * GDALMDArrayH
Opaque type for C++ GDALMDArray.
Definition gdal_fwd.h:75
void * GDALRelationshipH
Opaque type used for the C bindings of the C++ GDALRelationship class.
Definition gdal_fwd.h:66
void * GDALRasterAttributeTableH
Opaque type used for the C bindings of the C++ GDALRasterAttributeTable class.
Definition gdal_fwd.h:58
void * GDALAsyncReaderH
Opaque type used for the C bindings of the C++ GDALAsyncReader class.
Definition gdal_fwd.h:61
void * OGRFeatureH
Opaque type for a feature (OGRFeature).
Definition gdal_fwd.h:141
struct OGRFieldDomainHS * OGRFieldDomainH
Opaque type for a field domain definition (OGRFieldDomain).
Definition gdal_fwd.h:131
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn).
Definition gdal_fwd.h:128
struct GDALExtendedDataTypeHS * GDALExtendedDataTypeH
Opaque type for C++ GDALExtendedDataType.
Definition gdal_fwd.h:69
void * GDALComputedRasterBandH
Opaque type used for the C bindings of the C++ GDALComputedRasterBand class.
Definition gdal_fwd.h:48
void * GDALMajorObjectH
Opaque type used for the C bindings of the C++ GDALMajorObject class.
Definition gdal_fwd.h:39
struct GDALGroupHS * GDALGroupH
Opaque type for C++ GDALGroup.
Definition gdal_fwd.h:73
void * OGRStyleTableH
Opaque type for a style table (OGRStyleTable).
Definition gdal_fwd.h:181
void * GDALDriverH
Opaque type used for the C bindings of the C++ GDALDriver class.
Definition gdal_fwd.h:51
void * GDALRasterBandH
Opaque type used for the C bindings of the C++ GDALRasterBand class.
Definition gdal_fwd.h:45
void * GDALColorTableH
Opaque type used for the C bindings of the C++ GDALColorTable class.
Definition gdal_fwd.h:54
C API and defines for OGRFeature, OGRGeometry, and OGRDataSource related classes.
OGRwkbGeometryType
List of well known binary geometry types.
Definition ogr_core.h:405
int OGRErr
Type for a OGR error.
Definition ogr_core.h:370
Document node structure.
Definition cpl_minixml.h:54
Color tuple.
Definition gdal.h:2185
short c4
Definition gdal.h:2196
short c2
Definition gdal.h:2190
short c3
Definition gdal.h:2193
short c1
Definition gdal.h:2187
Information on a raw block of a GDALMDArray.
Definition gdal.h:2828
char * pszFilename
Filename into which the raw block is found.
Definition gdal.h:2830
char ** papszInfo
NULL or Null-terminated list of driver specific information on the raw block.
Definition gdal.h:2837
uint64_t nOffset
File offset within pszFilename of the start of the raw block.
Definition gdal.h:2832
uint64_t nSize
Size in bytes of the raw block.
Definition gdal.h:2834
GByte * pabyInlineData
In-memory buffer of nSize bytes.
Definition gdal.h:2845
Structure encoding a DateTime field for a GDAL Raster Attribute Table.
Definition gdal.h:2309
int nMonth
Definition gdal.h:2311
float fSecond
Definition gdal.h:2315
int nTimeZoneHour
Definition gdal.h:2316
bool bPositiveTimeZone
Definition gdal.h:2318
int nDay
Definition gdal.h:2312
bool bIsValid
Definition gdal.h:2319
int nMinute
Definition gdal.h:2314
int nHour
Definition gdal.h:2313
int nTimeZoneMinute
Definition gdal.h:2317
int nYear
Definition gdal.h:2310
Structure to store Rational Polynomial Coefficients / Rigorous Projection Model.
Definition gdal.h:2145
double dfLAT_OFF
Definition gdal.h:2148
double dfLONG_SCALE
Definition gdal.h:2155
double adfLINE_NUM_COEFF[20]
Definition gdal.h:2158
double dfHEIGHT_OFF
Definition gdal.h:2150
double dfMAX_LAT
Definition gdal.h:2166
double dfMIN_LAT
Definition gdal.h:2164
double dfLINE_OFF
Definition gdal.h:2146
double dfLONG_OFF
Definition gdal.h:2149
double dfSAMP_SCALE
Definition gdal.h:2153
double dfMAX_LONG
Definition gdal.h:2165
double dfERR_BIAS
Definition gdal.h:2170
double dfERR_RAND
Definition gdal.h:2171
double dfLINE_SCALE
Definition gdal.h:2152
double adfSAMP_NUM_COEFF[20]
Definition gdal.h:2160
double dfHEIGHT_SCALE
Definition gdal.h:2156
double dfMIN_LONG
Definition gdal.h:2163
double dfLAT_SCALE
Definition gdal.h:2154
double adfSAMP_DEN_COEFF[20]
Definition gdal.h:2161
double dfSAMP_OFF
Definition gdal.h:2147
double adfLINE_DEN_COEFF[20]
Definition gdal.h:2159
Structure to pass extra arguments to RasterIO() method, must be initialized with INIT_RASTERIO_EXTRA_...
Definition gdal.h:168
void * pProgressData
Definition gdal.h:178
GDALRIOResampleAlg eResampleAlg
Definition gdal.h:173
double dfXOff
Definition gdal.h:188
int nVersion
Definition gdal.h:170
double dfYSize
Definition gdal.h:197
double dfYOff
Definition gdal.h:191
double dfXSize
Definition gdal.h:194
GDALProgressFunc pfnProgress
Definition gdal.h:176
int bFloatingPointWindowValidity
Definition gdal.h:185
int bUseOnlyThisScale
Definition gdal.h:203
Ground Control Point.
Definition gdal.h:1221
double dfGCPLine
Line (y) location of GCP on raster.
Definition gdal.h:1231
double dfGCPX
X position of GCP in georeferenced space.
Definition gdal.h:1234
char * pszId
Unique identifier, often numeric.
Definition gdal.h:1223
char * pszInfo
Informational message or "".
Definition gdal.h:1226
double dfGCPPixel
Pixel (x) location of GCP on raster.
Definition gdal.h:1229
double dfGCPY
Y position of GCP in georeferenced space.
Definition gdal.h:1237
double dfGCPZ
Elevation of GCP, or zero if not known.
Definition gdal.h:1240