GDAL
gdal_utils_priv.h
00001 /******************************************************************************
00002  * $Id: gdal_utils_priv.h 34921 2016-08-04 22:26:31Z rouault $
00003  *
00004  * Project:  GDAL Utilities
00005  * Purpose:  GDAL Utilities Private Declarations.
00006  * Author:   Even Rouault <even.rouault at spatialys.com>
00007  *
00008  * ****************************************************************************
00009  * Copyright (c) 2015, Even Rouault <even.rouault at spatialys.com>
00010  *
00011  * Permission is hereby granted, free of charge, to any person obtaining a
00012  * copy of this software and associated documentation files (the "Software"),
00013  * to deal in the Software without restriction, including without limitation
00014  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00015  * and/or sell copies of the Software, and to permit persons to whom the
00016  * Software is furnished to do so, subject to the following conditions:
00017  *
00018  * The above copyright notice and this permission notice shall be included
00019  * in all copies or substantial portions of the Software.
00020  *
00021  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00022  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00023  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00024  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00025  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00026  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00027  * DEALINGS IN THE SOFTWARE.
00028  ****************************************************************************/
00029 
00030 #ifndef GDAL_UTILS_PRIV_H_INCLUDED
00031 #define GDAL_UTILS_PRIV_H_INCLUDED
00032 
00033 #ifndef DOXYGEN_SKIP
00034 
00035 #include "cpl_port.h"
00036 #include "gdal_utils.h"
00037 
00038 /* This file is only meant at being used by the XXXX_bin.cpp and XXXX_lib.cpp files */
00039 
00040 CPL_C_START
00041 
00042 struct GDALInfoOptionsForBinary
00043 {
00044     /* Filename to open. */
00045     char* pszFilename;
00046 
00047     /* Open options. */
00048     char** papszOpenOptions;
00049 
00050     /* > for reporting on a particular subdataset */
00051     int nSubdataset;
00052 };
00053 
00054 struct GDALTranslateOptionsForBinary
00055 {
00056     char* pszSource;
00057     char* pszDest;
00058     int bQuiet;
00059     int bCopySubDatasets;
00060     char** papszOpenOptions;
00061     int bFormatExplicitlySet;
00062     char* pszFormat;
00063 };
00064 
00065 struct GDALWarpAppOptionsForBinary
00066 {
00067     char** papszSrcFiles;
00068     char* pszDstFilename;
00069     int bQuiet;
00070     char** papszOpenOptions;
00071 
00073     char **papszDestOpenOptions;
00074 
00075     int bOverwrite;
00076     int bCreateOutput;
00077     int bFormatExplicitlySet;
00078     char* pszFormat;
00079 };
00080 
00081 /* Access modes */
00082 typedef enum
00083 {
00084     ACCESS_CREATION,
00085     ACCESS_UPDATE, /* open existing output datasource in update mode rather than trying to create a new one */
00086     ACCESS_APPEND, /* append to existing layer instead of creating new */
00087     ACCESS_OVERWRITE /*  delete the output layer and recreate it empty */
00088 } GDALVectorTranslateAccessMode;
00089 
00090 struct GDALVectorTranslateOptionsForBinary
00091 {
00092     char* pszDataSource;
00093     char* pszDestDataSource;
00094     int bQuiet;
00095     char** papszOpenOptions;
00096     int bFormatExplicitlySet;
00097     char* pszFormat;
00098     GDALVectorTranslateAccessMode eAccessMode;
00099 };
00100 
00101 struct GDALDEMProcessingOptionsForBinary
00102 {
00103     char* pszProcessing;
00104     char* pszSrcFilename;
00105     char* pszColorFilename;
00106     char* pszDstFilename;
00107     int bQuiet;
00108     int bFormatExplicitlySet;
00109     char* pszFormat;
00110 };
00111 
00112 struct GDALNearblackOptionsForBinary
00113 {
00114     char* pszInFile;
00115     char* pszOutFile;
00116     int bQuiet;
00117     int bFormatExplicitlySet;
00118     char* pszFormat;
00119 };
00120 
00121 struct GDALGridOptionsForBinary
00122 {
00123     char* pszSource;
00124     char* pszDest;
00125     int bQuiet;
00126     int bFormatExplicitlySet;
00127     char* pszFormat;
00128 };
00129 
00130 struct GDALRasterizeOptionsForBinary
00131 {
00132     char* pszSource;
00133     char* pszDest;
00134     int bQuiet;
00135     int bFormatExplicitlySet;
00136     char* pszFormat;
00137     int bCreateOutput;
00138 };
00139 
00140 struct GDALBuildVRTOptionsForBinary
00141 {
00142     int nSrcFiles;
00143     char** papszSrcFiles;
00144     char* pszDstFilename;
00145     int bQuiet;
00146     int bOverwrite;
00147 };
00148 
00149 CPL_C_END
00150 
00151 #endif /* #ifndef DOXYGEN_SKIP */
00152 
00153 #endif /* GDAL_UTILS_PRIV_H_INCLUDED */

Generated for GDAL by doxygen 1.7.6.1.