00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef GDAL_UTILS_H_INCLUDED
00033 #define GDAL_UTILS_H_INCLUDED
00034
00043 #include "cpl_port.h"
00044 #include "gdal.h"
00045
00046 CPL_C_START
00047
00049 typedef struct GDALInfoOptions GDALInfoOptions;
00050
00051 typedef struct GDALInfoOptionsForBinary GDALInfoOptionsForBinary;
00052
00053 GDALInfoOptions CPL_DLL *GDALInfoOptionsNew(char** papszArgv, GDALInfoOptionsForBinary* psOptionsForBinary);
00054
00055 void CPL_DLL GDALInfoOptionsFree( GDALInfoOptions *psOptions );
00056
00057 char CPL_DLL *GDALInfo( GDALDatasetH hDataset, const GDALInfoOptions *psOptions );
00058
00059
00061 typedef struct GDALTranslateOptions GDALTranslateOptions;
00062
00063 typedef struct GDALTranslateOptionsForBinary GDALTranslateOptionsForBinary;
00064
00065 GDALTranslateOptions CPL_DLL *GDALTranslateOptionsNew(char** papszArgv,
00066 GDALTranslateOptionsForBinary* psOptionsForBinary);
00067
00068 void CPL_DLL GDALTranslateOptionsFree( GDALTranslateOptions *psOptions );
00069
00070 void CPL_DLL GDALTranslateOptionsSetProgress( GDALTranslateOptions *psOptions,
00071 GDALProgressFunc pfnProgress,
00072 void *pProgressData );
00073
00074 GDALDatasetH CPL_DLL GDALTranslate(const char *pszDestFilename,
00075 GDALDatasetH hSrcDataset,
00076 const GDALTranslateOptions *psOptions,
00077 int *pbUsageError);
00078
00080 typedef struct GDALWarpAppOptions GDALWarpAppOptions;
00081
00082 typedef struct GDALWarpAppOptionsForBinary GDALWarpAppOptionsForBinary;
00083
00084 GDALWarpAppOptions CPL_DLL *GDALWarpAppOptionsNew(char** papszArgv,
00085 GDALWarpAppOptionsForBinary* psOptionsForBinary);
00086
00087 void CPL_DLL GDALWarpAppOptionsFree( GDALWarpAppOptions *psOptions );
00088
00089 void CPL_DLL GDALWarpAppOptionsSetProgress( GDALWarpAppOptions *psOptions,
00090 GDALProgressFunc pfnProgress,
00091 void *pProgressData );
00092 void CPL_DLL GDALWarpAppOptionsSetWarpOption( GDALWarpAppOptions *psOptions,
00093 const char* pszKey,
00094 const char* pszValue );
00095
00096 GDALDatasetH CPL_DLL GDALWarp( const char *pszDest, GDALDatasetH hDstDS,
00097 int nSrcCount, GDALDatasetH *pahSrcDS,
00098 const GDALWarpAppOptions *psOptions, int *pbUsageError );
00099
00101 typedef struct GDALVectorTranslateOptions GDALVectorTranslateOptions;
00102
00103 typedef struct GDALVectorTranslateOptionsForBinary GDALVectorTranslateOptionsForBinary;
00104
00105 GDALVectorTranslateOptions CPL_DLL *GDALVectorTranslateOptionsNew(char** papszArgv,
00106 GDALVectorTranslateOptionsForBinary* psOptionsForBinary);
00107
00108 void CPL_DLL GDALVectorTranslateOptionsFree( GDALVectorTranslateOptions *psOptions );
00109
00110 void CPL_DLL GDALVectorTranslateOptionsSetProgress( GDALVectorTranslateOptions *psOptions,
00111 GDALProgressFunc pfnProgress,
00112 void *pProgressData );
00113
00114 GDALDatasetH CPL_DLL GDALVectorTranslate( const char *pszDest, GDALDatasetH hDstDS, int nSrcCount,
00115 GDALDatasetH *pahSrcDS,
00116 const GDALVectorTranslateOptions *psOptions, int *pbUsageError );
00117
00118
00120 typedef struct GDALDEMProcessingOptions GDALDEMProcessingOptions;
00121
00122 typedef struct GDALDEMProcessingOptionsForBinary GDALDEMProcessingOptionsForBinary;
00123
00124 GDALDEMProcessingOptions CPL_DLL *GDALDEMProcessingOptionsNew(char** papszArgv,
00125 GDALDEMProcessingOptionsForBinary* psOptionsForBinary);
00126
00127 void CPL_DLL GDALDEMProcessingOptionsFree( GDALDEMProcessingOptions *psOptions );
00128
00129 void CPL_DLL GDALDEMProcessingOptionsSetProgress( GDALDEMProcessingOptions *psOptions,
00130 GDALProgressFunc pfnProgress,
00131 void *pProgressData );
00132
00133 GDALDatasetH CPL_DLL GDALDEMProcessing(const char *pszDestFilename,
00134 GDALDatasetH hSrcDataset,
00135 const char* pszProcessing,
00136 const char* pszColorFilename,
00137 const GDALDEMProcessingOptions *psOptions,
00138 int *pbUsageError);
00139
00141 typedef struct GDALNearblackOptions GDALNearblackOptions;
00142
00143 typedef struct GDALNearblackOptionsForBinary GDALNearblackOptionsForBinary;
00144
00145 GDALNearblackOptions CPL_DLL *GDALNearblackOptionsNew(char** papszArgv,
00146 GDALNearblackOptionsForBinary* psOptionsForBinary);
00147
00148 void CPL_DLL GDALNearblackOptionsFree( GDALNearblackOptions *psOptions );
00149
00150 void CPL_DLL GDALNearblackOptionsSetProgress( GDALNearblackOptions *psOptions,
00151 GDALProgressFunc pfnProgress,
00152 void *pProgressData );
00153
00154 GDALDatasetH CPL_DLL GDALNearblack( const char *pszDest, GDALDatasetH hDstDS,
00155 GDALDatasetH hSrcDS,
00156 const GDALNearblackOptions *psOptions, int *pbUsageError );
00157
00159 typedef struct GDALGridOptions GDALGridOptions;
00160
00161 typedef struct GDALGridOptionsForBinary GDALGridOptionsForBinary;
00162
00163 GDALGridOptions CPL_DLL *GDALGridOptionsNew(char** papszArgv,
00164 GDALGridOptionsForBinary* psOptionsForBinary);
00165
00166 void CPL_DLL GDALGridOptionsFree( GDALGridOptions *psOptions );
00167
00168 void CPL_DLL GDALGridOptionsSetProgress( GDALGridOptions *psOptions,
00169 GDALProgressFunc pfnProgress,
00170 void *pProgressData );
00171
00172 GDALDatasetH CPL_DLL GDALGrid( const char *pszDest,
00173 GDALDatasetH hSrcDS,
00174 const GDALGridOptions *psOptions, int *pbUsageError );
00175
00177 typedef struct GDALRasterizeOptions GDALRasterizeOptions;
00178
00179 typedef struct GDALRasterizeOptionsForBinary GDALRasterizeOptionsForBinary;
00180
00181 GDALRasterizeOptions CPL_DLL *GDALRasterizeOptionsNew(char** papszArgv,
00182 GDALRasterizeOptionsForBinary* psOptionsForBinary);
00183
00184 void CPL_DLL GDALRasterizeOptionsFree( GDALRasterizeOptions *psOptions );
00185
00186 void CPL_DLL GDALRasterizeOptionsSetProgress( GDALRasterizeOptions *psOptions,
00187 GDALProgressFunc pfnProgress,
00188 void *pProgressData );
00189
00190 GDALDatasetH CPL_DLL GDALRasterize( const char *pszDest, GDALDatasetH hDstDS,
00191 GDALDatasetH hSrcDS,
00192 const GDALRasterizeOptions *psOptions, int *pbUsageError );
00193
00195 typedef struct GDALBuildVRTOptions GDALBuildVRTOptions;
00196
00197 typedef struct GDALBuildVRTOptionsForBinary GDALBuildVRTOptionsForBinary;
00198
00199 GDALBuildVRTOptions CPL_DLL *GDALBuildVRTOptionsNew(char** papszArgv,
00200 GDALBuildVRTOptionsForBinary* psOptionsForBinary);
00201
00202 void CPL_DLL GDALBuildVRTOptionsFree( GDALBuildVRTOptions *psOptions );
00203
00204 void CPL_DLL GDALBuildVRTOptionsSetProgress( GDALBuildVRTOptions *psOptions,
00205 GDALProgressFunc pfnProgress,
00206 void *pProgressData );
00207
00208 GDALDatasetH CPL_DLL GDALBuildVRT( const char *pszDest,
00209 int nSrcCount, GDALDatasetH *pahSrcDS, const char* const* papszSrcDSNames,
00210 const GDALBuildVRTOptions *psOptions, int *pbUsageError );
00211
00212 CPL_C_END
00213
00214 #endif