15#ifndef GDAL_UTILS_H_INCLUDED
16#define GDAL_UTILS_H_INCLUDED
58 GDALProgressFunc pfnProgress,
79 GDALProgressFunc pfnProgress,
85 const char *pszValue);
107 void *pProgressData);
110 const char *pszDest,
GDALDatasetH hDstDS,
int nSrcCount,
128 void *pProgressData);
132 const char *pszProcessing,
const char *pszColorFilename,
148 GDALProgressFunc pfnProgress,
149 void *pProgressData);
169 GDALProgressFunc pfnProgress,
170 void *pProgressData);
189 GDALProgressFunc pfnProgress,
190 void *pProgressData);
198 const char *pszDestDatasource);
202 char ***ppapszStringOptions,
223 GDALProgressFunc pfnProgress,
224 void *pProgressData);
244 GDALProgressFunc pfnProgress,
245 void *pProgressData);
265 GDALProgressFunc pfnProgress,
266 void *pProgressData);
270 const char *
const *papszSrcDSNames,
305 void *pProgressData);
308 const char *pszDest,
GDALDatasetH hDstDataset,
int nSrcCount,
338 GDALProgressFunc pfnProgress,
339 void *pProgressData);
344 const char *
const *papszSrcDSNames,
CPLErr
Error category.
Definition cpl_error.h:37
Core portability definitions for CPL.
#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
Public (C callable) GDAL entry points.
void * GDALDatasetH
Opaque type used for the C bindings of the C++ GDALDataset class.
Definition gdal_fwd.h:42
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition gdal_fwd.h:157
void * GDALRasterBandH
Opaque type used for the C bindings of the C++ GDALRasterBand class.
Definition gdal_fwd.h:45
GDALMultiDimTranslateOptions * GDALMultiDimTranslateOptionsNew(char **papszArgv, GDALMultiDimTranslateOptionsForBinary *psOptionsForBinary)
Allocates a GDALMultiDimTranslateOptions struct.
Definition gdalmdimtranslate_lib.cpp:2036
char * GDALInfo(GDALDatasetH hDataset, const GDALInfoOptions *psOptions)
Lists various information about a GDAL supported raster dataset.
Definition gdalinfo_lib.cpp:401
GDALDatasetH GDALBuildVRT(const char *pszDest, int nSrcCount, GDALDatasetH *pahSrcDS, const char *const *papszSrcDSNames, const GDALBuildVRTOptions *psOptions, int *pbUsageError)
Build a VRT from a list of datasets.
Definition gdalbuildvrt_lib.cpp:2051
void GDALWarpAppOptionsFree(GDALWarpAppOptions *psOptions)
Frees the GDALWarpAppOptions struct.
Definition gdalwarp_lib.cpp:6536
void GDALFootprintOptionsFree(GDALFootprintOptions *psOptions)
Frees the GDALFootprintOptions struct.
Definition gdal_footprint_lib.cpp:1509
struct GDALBuildVRTOptionsForBinary GDALBuildVRTOptionsForBinary
Opaque type.
Definition gdal_utils.h:256
struct GDALInfoOptions GDALInfoOptions
Definition gdal_utils.h:32
struct GDALInfoOptionsForBinary GDALInfoOptionsForBinary
Opaque type.
Definition gdal_utils.h:35
void GDALInfoOptionsFree(GDALInfoOptions *psOptions)
Frees the GDALInfoOptions struct.
Definition gdalinfo_lib.cpp:2386
GDALDatasetH GDALTranslate(const char *pszDestFilename, GDALDatasetH hSrcDataset, const GDALTranslateOptions *psOptions, int *pbUsageError)
Converts raster data between different formats.
Definition gdal_translate_lib.cpp:676
struct GDALTileIndexOptions GDALTileIndexOptions
Definition gdal_utils.h:328
struct GDALFootprintOptionsForBinary GDALFootprintOptionsForBinary
Opaque type.
Definition gdal_utils.h:235
struct GDALMultiDimTranslateOptionsForBinary GDALMultiDimTranslateOptionsForBinary
Opaque type.
Definition gdal_utils.h:293
void GDALVectorTranslateOptionsFree(GDALVectorTranslateOptions *psOptions)
Frees the GDALVectorTranslateOptions struct.
Definition ogr2ogr_lib.cpp:8769
struct GDALVectorTranslateOptionsForBinary GDALVectorTranslateOptionsForBinary
Opaque type.
Definition gdal_utils.h:96
struct GDALVectorInfoOptionsForBinary GDALVectorInfoOptionsForBinary
Opaque type.
Definition gdal_utils.h:316
void GDALVectorTranslateOptionsSetProgress(GDALVectorTranslateOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition ogr2ogr_lib.cpp:8788
GDALMultiDimInfoOptions * GDALMultiDimInfoOptionsNew(char **papszArgv, GDALMultiDimInfoOptionsForBinary *psOptionsForBinary)
Allocates a GDALMultiDimInfo struct.
Definition gdalmdiminfo_lib.cpp:1348
GDALDatasetH GDALTileIndex(const char *pszDest, int nSrcCount, const char *const *papszSrcDSNames, const GDALTileIndexOptions *psOptions, int *pbUsageError)
Build a tile index from a list of datasets.
Definition gdaltindex_lib.cpp:535
struct GDALDEMProcessingOptions GDALDEMProcessingOptions
Definition gdal_utils.h:115
GDALWarpAppOptions * GDALWarpAppOptionsNew(char **papszArgv, GDALWarpAppOptionsForBinary *psOptionsForBinary)
Allocates a GDALWarpAppOptions struct.
Definition gdalwarp_lib.cpp:6380
GDALDEMProcessingOptions * GDALDEMProcessingOptionsNew(char **papszArgv, GDALDEMProcessingOptionsForBinary *psOptionsForBinary)
Allocates a GDALDEMProcessingOptions struct.
Definition gdaldem_lib.cpp:4254
void GDALMultiDimTranslateOptionsFree(GDALMultiDimTranslateOptions *psOptions)
Frees the GDALMultiDimTranslateOptions struct.
Definition gdalmdimtranslate_lib.cpp:2105
struct GDALWarpAppOptionsForBinary GDALWarpAppOptionsForBinary
Opaque type.
Definition gdal_utils.h:70
GDALDatasetH GDALFootprint(const char *pszDest, GDALDatasetH hDstDS, GDALDatasetH hSrcDS, const GDALFootprintOptions *psOptions, int *pbUsageError)
Computes the footprint of a raster.
Definition gdal_footprint_lib.cpp:1303
void GDALNearblackOptionsSetProgress(GDALNearblackOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition nearblack_lib.cpp:993
void GDALRasterizeOptionsFree(GDALRasterizeOptions *psOptions)
Frees the GDALRasterizeOptions struct.
Definition gdal_rasterize_lib.cpp:1683
struct GDALVectorInfoOptions GDALVectorInfoOptions
Definition gdal_utils.h:313
GDALDatasetH GDALDEMProcessing(const char *pszDestFilename, GDALDatasetH hSrcDataset, const char *pszProcessing, const char *pszColorFilename, const GDALDEMProcessingOptions *psOptions, int *pbUsageError)
Apply a DEM processing.
Definition gdaldem_lib.cpp:3562
void GDALTileIndexOptionsFree(GDALTileIndexOptions *psOptions)
Frees the GDALTileIndexOptions struct.
Definition gdaltindex_lib.cpp:2989
struct GDALNearblackOptions GDALNearblackOptions
Definition gdal_utils.h:136
struct GDALRasterizeOptions GDALRasterizeOptions
Definition gdal_utils.h:211
void GDALWarpAppOptionsSetProgress(GDALWarpAppOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdalwarp_lib.cpp:6555
struct GDALDEMProcessingOptionsForBinary GDALDEMProcessingOptionsForBinary
Opaque type.
Definition gdal_utils.h:118
void GDALMultiDimInfoOptionsFree(GDALMultiDimInfoOptions *psOptions)
Frees the GDALMultiDimInfoOptions struct.
Definition gdalmdiminfo_lib.cpp:1394
GDALContourOptions * GDALContourOptionsNew(char **papszArgv, GDALContourOptionsForBinary *psOptionsForBinary)
Create a new GDALContourOptions object.
Definition gdal_contour_lib.cpp:616
void GDALBuildVRTOptionsFree(GDALBuildVRTOptions *psOptions)
Frees the GDALBuildVRTOptions struct.
Definition gdalbuildvrt_lib.cpp:2631
GDALTranslateOptions * GDALTranslateOptionsNew(char **papszArgv, GDALTranslateOptionsForBinary *psOptionsForBinary)
Allocates a GDALTranslateOptions struct.
Definition gdal_translate_lib.cpp:3258
void GDALMultiDimTranslateOptionsSetProgress(GDALMultiDimTranslateOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdalmdimtranslate_lib.cpp:2124
struct GDALContourOptions GDALContourOptions
Definition gdal_utils.h:177
GDALInfoOptions * GDALInfoOptionsNew(char **papszArgv, GDALInfoOptionsForBinary *psOptionsForBinary)
Allocates a GDALInfoOptions struct.
Definition gdalinfo_lib.cpp:2332
void GDALRasterizeOptionsSetProgress(GDALRasterizeOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdal_rasterize_lib.cpp:1702
char * GDALVectorInfo(GDALDatasetH hDataset, const GDALVectorInfoOptions *psOptions)
Lists various information about a GDAL supported vector dataset.
Definition ogrinfo_lib.cpp:1847
struct GDALTranslateOptions GDALTranslateOptions
Definition gdal_utils.h:46
void GDALGridOptionsFree(GDALGridOptions *psOptions)
Frees the GDALGridOptions struct.
Definition gdal_grid_lib.cpp:1422
struct GDALGridOptions GDALGridOptions
Definition gdal_utils.h:157
GDALNearblackOptions * GDALNearblackOptionsNew(char **papszArgv, GDALNearblackOptionsForBinary *psOptionsForBinary)
Allocates a GDALNearblackOptions struct.
Definition nearblack_lib.cpp:940
GDALDatasetH GDALVectorTranslate(const char *pszDest, GDALDatasetH hDstDS, int nSrcCount, GDALDatasetH *pahSrcDS, const GDALVectorTranslateOptions *psOptions, int *pbUsageError)
Converts vector data between file formats.
Definition ogr2ogr_lib.cpp:2358
GDALFootprintOptions * GDALFootprintOptionsNew(char **papszArgv, GDALFootprintOptionsForBinary *psOptionsForBinary)
Allocates a GDALFootprintOptions struct.
Definition gdal_footprint_lib.cpp:1404
struct GDALNearblackOptionsForBinary GDALNearblackOptionsForBinary
Opaque type.
Definition gdal_utils.h:139
void GDALDEMProcessingOptionsSetProgress(GDALDEMProcessingOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdaldem_lib.cpp:4446
struct GDALGridOptionsForBinary GDALGridOptionsForBinary
Opaque type.
Definition gdal_utils.h:160
void GDALContourOptionsFree(GDALContourOptions *psOptions)
Free a GDALContourOptions object.
Definition gdal_contour_lib.cpp:752
GDALDatasetH GDALWarp(const char *pszDest, GDALDatasetH hDstDS, int nSrcCount, GDALDatasetH *pahSrcDS, const GDALWarpAppOptions *psOptions, int *pbUsageError)
Image reprojection and warping function.
Definition gdalwarp_lib.cpp:1417
GDALVectorTranslateOptions * GDALVectorTranslateOptionsNew(char **papszArgv, GDALVectorTranslateOptionsForBinary *psOptionsForBinary)
allocates a GDALVectorTranslateOptions struct.
Definition ogr2ogr_lib.cpp:8487
struct GDALTileIndexOptionsForBinary GDALTileIndexOptionsForBinary
Opaque type.
Definition gdal_utils.h:331
GDALDatasetH GDALGrid(const char *pszDest, GDALDatasetH hSrcDS, const GDALGridOptions *psOptions, int *pbUsageError)
Create raster from the scattered data.
Definition gdal_grid_lib.cpp:629
char * GDALMultiDimInfo(GDALDatasetH hDataset, const GDALMultiDimInfoOptions *psOptions)
Lists various information about a GDAL multidimensional dataset.
Definition gdalmdiminfo_lib.cpp:1255
GDALBuildVRTOptions * GDALBuildVRTOptionsNew(char **papszArgv, GDALBuildVRTOptionsForBinary *psOptionsForBinary)
Allocates a GDALBuildVRTOptions struct.
Definition gdalbuildvrt_lib.cpp:2544
void GDALVectorInfoOptionsFree(GDALVectorInfoOptions *psOptions)
Frees the GDALVectorInfoOptions struct.
Definition ogrinfo_lib.cpp:88
void GDALWarpAppOptionsSetWarpOption(GDALWarpAppOptions *psOptions, const char *pszKey, const char *pszValue)
Set a warp option.
Definition gdalwarp_lib.cpp:6597
void GDALBuildVRTOptionsSetProgress(GDALBuildVRTOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdalbuildvrt_lib.cpp:2650
struct GDALFootprintOptions GDALFootprintOptions
Definition gdal_utils.h:232
void GDALWarpAppOptionsSetQuiet(GDALWarpAppOptions *psOptions, int bQuiet)
Set a progress function.
Definition gdalwarp_lib.cpp:6578
struct GDALMultiDimTranslateOptions GDALMultiDimTranslateOptions
Definition gdal_utils.h:290
void GDALTranslateOptionsFree(GDALTranslateOptions *psOptions)
Frees the GDALTranslateOptions struct.
Definition gdal_translate_lib.cpp:3584
void GDALTranslateOptionsSetProgress(GDALTranslateOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdal_translate_lib.cpp:3603
struct GDALMultiDimInfoOptionsForBinary GDALMultiDimInfoOptionsForBinary
Opaque type.
Definition gdal_utils.h:278
GDALDatasetH GDALNearblack(const char *pszDest, GDALDatasetH hDstDS, GDALDatasetH hSrcDS, const GDALNearblackOptions *psOptions, int *pbUsageError)
Convert nearly black/white borders to exact value.
Definition nearblack_lib.cpp:76
struct GDALMultiDimInfoOptions GDALMultiDimInfoOptions
Definition gdal_utils.h:275
GDALVectorInfoOptions * GDALVectorInfoOptionsNew(char **papszArgv, GDALVectorInfoOptionsForBinary *psOptionsForBinary)
Allocates a GDALVectorInfoOptions struct.
Definition ogrinfo_lib.cpp:2537
GDALGridOptions * GDALGridOptionsNew(char **papszArgv, GDALGridOptionsForBinary *psOptionsForBinary)
Allocates a GDALGridOptions struct.
Definition gdal_grid_lib.cpp:1193
struct GDALTranslateOptionsForBinary GDALTranslateOptionsForBinary
Opaque type.
Definition gdal_utils.h:49
struct GDALBuildVRTOptions GDALBuildVRTOptions
Definition gdal_utils.h:253
void GDALTileIndexOptionsSetProgress(GDALTileIndexOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdaltindex_lib.cpp:3008
GDALDatasetH GDALMultiDimTranslate(const char *pszDest, GDALDatasetH hDstDataset, int nSrcCount, GDALDatasetH *pahSrcDS, const GDALMultiDimTranslateOptions *psOptions, int *pbUsageError)
Converts raster data between different formats.
Definition gdalmdimtranslate_lib.cpp:1843
struct GDALVectorTranslateOptions GDALVectorTranslateOptions
Definition gdal_utils.h:93
void GDALDEMProcessingOptionsFree(GDALDEMProcessingOptions *psOptions)
Frees the GDALDEMProcessingOptions struct.
Definition gdaldem_lib.cpp:4427
void GDALNearblackOptionsFree(GDALNearblackOptions *psOptions)
Frees the GDALNearblackOptions struct.
Definition nearblack_lib.cpp:974
struct GDALContourOptionsForBinary GDALContourOptionsForBinary
Opaque type.
Definition gdal_utils.h:180
void GDALContourOptionsSetProgress(GDALContourOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdal_contour_lib.cpp:83
void GDALFootprintOptionsSetProgress(GDALFootprintOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdal_footprint_lib.cpp:1528
struct GDALWarpAppOptions GDALWarpAppOptions
Definition gdal_utils.h:67
GDALRasterizeOptions * GDALRasterizeOptionsNew(char **papszArgv, GDALRasterizeOptionsForBinary *psOptionsForBinary)
Allocates a GDALRasterizeOptions struct.
Definition gdal_rasterize_lib.cpp:1430
GDALTileIndexOptions * GDALTileIndexOptionsNew(char **papszArgv, GDALTileIndexOptionsForBinary *psOptionsForBinary)
Allocates a GDALTileIndexOptions struct.
Definition gdaltindex_lib.cpp:2860
void GDALGridOptionsSetProgress(GDALGridOptions *psOptions, GDALProgressFunc pfnProgress, void *pProgressData)
Set a progress function.
Definition gdal_grid_lib.cpp:1441
GDALDatasetH GDALRasterize(const char *pszDest, GDALDatasetH hDstDS, GDALDatasetH hSrcDS, const GDALRasterizeOptions *psOptions, int *pbUsageError)
Burns vector geometries into a raster.
Definition gdal_rasterize_lib.cpp:959
struct GDALRasterizeOptionsForBinary GDALRasterizeOptionsForBinary
Opaque type.
Definition gdal_utils.h:214