GDAL
gdal_utils.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  * $Id: gdal_utils.h 35884 2016-10-24 05:56:50Z goatbar $
00003  *
00004  * Project:  GDAL Utilities
00005  * Purpose:  GDAL Utilities Public Declarations.
00006  * Author:   Faza Mahamood, fazamhd at gmail dot com
00007  *
00008  * ****************************************************************************
00009  * Copyright (c) 1998, Frank Warmerdam
00010  * Copyright (c) 2007-2015, Even Rouault <even.rouault at spatialys.com>
00011  * Copyright (c) 2015, Faza Mahamood
00012  *
00013  * Permission is hereby granted, free of charge, to any person obtaining a
00014  * copy of this software and associated documentation files (the "Software"),
00015  * to deal in the Software without restriction, including without limitation
00016  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00017  * and/or sell copies of the Software, and to permit persons to whom the
00018  * Software is furnished to do so, subject to the following conditions:
00019  *
00020  * The above copyright notice and this permission notice shall be included
00021  * in all copies or substantial portions of the Software.
00022  *
00023  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00024  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00025  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00026  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00027  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00028  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00029  * DEALINGS IN THE SOFTWARE.
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 
00052 typedef struct GDALInfoOptionsForBinary GDALInfoOptionsForBinary;
00053 
00054 GDALInfoOptions CPL_DLL *GDALInfoOptionsNew(char** papszArgv, GDALInfoOptionsForBinary* psOptionsForBinary);
00055 
00056 void CPL_DLL GDALInfoOptionsFree( GDALInfoOptions *psOptions );
00057 
00058 char CPL_DLL *GDALInfo( GDALDatasetH hDataset, const GDALInfoOptions *psOptions );
00059 
00061 typedef struct GDALTranslateOptions GDALTranslateOptions;
00062 
00064 typedef struct GDALTranslateOptionsForBinary GDALTranslateOptionsForBinary;
00065 
00066 GDALTranslateOptions CPL_DLL *GDALTranslateOptionsNew(char** papszArgv,
00067                                                       GDALTranslateOptionsForBinary* psOptionsForBinary);
00068 
00069 void CPL_DLL GDALTranslateOptionsFree( GDALTranslateOptions *psOptions );
00070 
00071 void CPL_DLL GDALTranslateOptionsSetProgress( GDALTranslateOptions *psOptions,
00072                                               GDALProgressFunc pfnProgress,
00073                                               void *pProgressData );
00074 
00075 GDALDatasetH CPL_DLL GDALTranslate(const char *pszDestFilename,
00076                                    GDALDatasetH hSrcDataset,
00077                                    const GDALTranslateOptions *psOptions,
00078                                    int *pbUsageError);
00079 
00081 typedef struct GDALWarpAppOptions GDALWarpAppOptions;
00082 
00084 typedef struct GDALWarpAppOptionsForBinary GDALWarpAppOptionsForBinary;
00085 
00086 GDALWarpAppOptions CPL_DLL *GDALWarpAppOptionsNew(char** papszArgv,
00087                                                       GDALWarpAppOptionsForBinary* psOptionsForBinary);
00088 
00089 void CPL_DLL GDALWarpAppOptionsFree( GDALWarpAppOptions *psOptions );
00090 
00091 void CPL_DLL GDALWarpAppOptionsSetProgress( GDALWarpAppOptions *psOptions,
00092                                               GDALProgressFunc pfnProgress,
00093                                               void *pProgressData );
00094 void CPL_DLL GDALWarpAppOptionsSetWarpOption( GDALWarpAppOptions *psOptions,
00095                                               const char* pszKey,
00096                                               const char* pszValue );
00097 
00098 GDALDatasetH CPL_DLL GDALWarp( const char *pszDest, GDALDatasetH hDstDS,
00099                                int nSrcCount, GDALDatasetH *pahSrcDS,
00100                                const GDALWarpAppOptions *psOptions, int *pbUsageError );
00101 
00103 typedef struct GDALVectorTranslateOptions GDALVectorTranslateOptions;
00104 
00106 typedef struct GDALVectorTranslateOptionsForBinary GDALVectorTranslateOptionsForBinary;
00107 
00108 GDALVectorTranslateOptions CPL_DLL *GDALVectorTranslateOptionsNew(char** papszArgv,
00109                                                       GDALVectorTranslateOptionsForBinary* psOptionsForBinary);
00110 
00111 void CPL_DLL GDALVectorTranslateOptionsFree( GDALVectorTranslateOptions *psOptions );
00112 
00113 void CPL_DLL GDALVectorTranslateOptionsSetProgress( GDALVectorTranslateOptions *psOptions,
00114                                               GDALProgressFunc pfnProgress,
00115                                               void *pProgressData );
00116 
00117 GDALDatasetH CPL_DLL GDALVectorTranslate( const char *pszDest, GDALDatasetH hDstDS, int nSrcCount,
00118                                GDALDatasetH *pahSrcDS,
00119                                const GDALVectorTranslateOptions *psOptions, int *pbUsageError );
00120 
00122 typedef struct GDALDEMProcessingOptions GDALDEMProcessingOptions;
00123 
00125 typedef struct GDALDEMProcessingOptionsForBinary GDALDEMProcessingOptionsForBinary;
00126 
00127 GDALDEMProcessingOptions CPL_DLL *GDALDEMProcessingOptionsNew(char** papszArgv,
00128                                                       GDALDEMProcessingOptionsForBinary* psOptionsForBinary);
00129 
00130 void CPL_DLL GDALDEMProcessingOptionsFree( GDALDEMProcessingOptions *psOptions );
00131 
00132 void CPL_DLL GDALDEMProcessingOptionsSetProgress( GDALDEMProcessingOptions *psOptions,
00133                                               GDALProgressFunc pfnProgress,
00134                                               void *pProgressData );
00135 
00136 GDALDatasetH CPL_DLL GDALDEMProcessing(const char *pszDestFilename,
00137                                        GDALDatasetH hSrcDataset,
00138                                        const char* pszProcessing,
00139                                        const char* pszColorFilename,
00140                                        const GDALDEMProcessingOptions *psOptions,
00141                                        int *pbUsageError);
00142 
00144 typedef struct GDALNearblackOptions GDALNearblackOptions;
00145 
00147 typedef struct GDALNearblackOptionsForBinary GDALNearblackOptionsForBinary;
00148 
00149 GDALNearblackOptions CPL_DLL *GDALNearblackOptionsNew(char** papszArgv,
00150                                                       GDALNearblackOptionsForBinary* psOptionsForBinary);
00151 
00152 void CPL_DLL GDALNearblackOptionsFree( GDALNearblackOptions *psOptions );
00153 
00154 void CPL_DLL GDALNearblackOptionsSetProgress( GDALNearblackOptions *psOptions,
00155                                               GDALProgressFunc pfnProgress,
00156                                               void *pProgressData );
00157 
00158 GDALDatasetH CPL_DLL GDALNearblack( const char *pszDest, GDALDatasetH hDstDS,
00159                                     GDALDatasetH hSrcDS,
00160                                     const GDALNearblackOptions *psOptions, int *pbUsageError );
00161 
00163 typedef struct GDALGridOptions GDALGridOptions;
00164 
00166 typedef struct GDALGridOptionsForBinary GDALGridOptionsForBinary;
00167 
00168 GDALGridOptions CPL_DLL *GDALGridOptionsNew(char** papszArgv,
00169                                                       GDALGridOptionsForBinary* psOptionsForBinary);
00170 
00171 void CPL_DLL GDALGridOptionsFree( GDALGridOptions *psOptions );
00172 
00173 void CPL_DLL GDALGridOptionsSetProgress( GDALGridOptions *psOptions,
00174                                               GDALProgressFunc pfnProgress,
00175                                               void *pProgressData );
00176 
00177 GDALDatasetH CPL_DLL GDALGrid( const char *pszDest,
00178                                GDALDatasetH hSrcDS,
00179                                const GDALGridOptions *psOptions, int *pbUsageError );
00180 
00182 typedef struct GDALRasterizeOptions GDALRasterizeOptions;
00183 
00185 typedef struct GDALRasterizeOptionsForBinary GDALRasterizeOptionsForBinary;
00186 
00187 GDALRasterizeOptions CPL_DLL *GDALRasterizeOptionsNew(char** papszArgv,
00188                                                       GDALRasterizeOptionsForBinary* psOptionsForBinary);
00189 
00190 void CPL_DLL GDALRasterizeOptionsFree( GDALRasterizeOptions *psOptions );
00191 
00192 void CPL_DLL GDALRasterizeOptionsSetProgress( GDALRasterizeOptions *psOptions,
00193                                               GDALProgressFunc pfnProgress,
00194                                               void *pProgressData );
00195 
00196 GDALDatasetH CPL_DLL GDALRasterize( const char *pszDest, GDALDatasetH hDstDS,
00197                                     GDALDatasetH hSrcDS,
00198                                     const GDALRasterizeOptions *psOptions, int *pbUsageError );
00199 
00201 typedef struct GDALBuildVRTOptions GDALBuildVRTOptions;
00202 
00204 typedef struct GDALBuildVRTOptionsForBinary GDALBuildVRTOptionsForBinary;
00205 
00206 GDALBuildVRTOptions CPL_DLL *GDALBuildVRTOptionsNew(char** papszArgv,
00207                                                       GDALBuildVRTOptionsForBinary* psOptionsForBinary);
00208 
00209 void CPL_DLL GDALBuildVRTOptionsFree( GDALBuildVRTOptions *psOptions );
00210 
00211 void CPL_DLL GDALBuildVRTOptionsSetProgress( GDALBuildVRTOptions *psOptions,
00212                                               GDALProgressFunc pfnProgress,
00213                                               void *pProgressData );
00214 
00215 GDALDatasetH CPL_DLL GDALBuildVRT( const char *pszDest,
00216                                    int nSrcCount, GDALDatasetH *pahSrcDS, const char* const* papszSrcDSNames,
00217                                    const GDALBuildVRTOptions *psOptions, int *pbUsageError );
00218 
00219 CPL_C_END
00220 
00221 #endif /* GDAL_UTILS_H_INCLUDED */

Generated for GDAL by doxygen 1.7.6.1.