GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- File List
- File Members

gdal_utils_priv.h
1 /******************************************************************************
2 * $Id$
3 *
4 * Project: GDAL Utilities
5 * Purpose: GDAL Utilities Private Declarations.
6 * Author: Even Rouault <even.rouault at spatialys.com>
7 *
8 * ****************************************************************************
9 * Copyright (c) 2015, Even Rouault <even.rouault at spatialys.com>
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
28 ****************************************************************************/
29
30 #ifndef GDAL_UTILS_PRIV_H_INCLUDED
31 #define GDAL_UTILS_PRIV_H_INCLUDED
32
33 #ifndef DOXYGEN_SKIP
34
35 #include "cpl_port.h"
36 #include "gdal_utils.h"
37
38 /* This file is only meant at being used by the XXXX_bin.cpp and XXXX_lib.cpp files */
39
40 CPL_C_START
41
42 struct GDALInfoOptionsForBinary
43 {
44 /* Filename to open. */
45 char* pszFilename;
46
47 /* Open options. */
48 char** papszOpenOptions;
49
50 /* > for reporting on a particular subdataset */
51 int nSubdataset;
52 };
53
54 struct GDALTranslateOptionsForBinary
55 {
56 char* pszSource;
57 char* pszDest;
58 int bQuiet;
59 int bCopySubDatasets;
60 char** papszOpenOptions;
61 char* pszFormat;
62 };
63
64 struct GDALWarpAppOptionsForBinary
65 {
66 char** papszSrcFiles;
67 char* pszDstFilename;
68 int bQuiet;
69 char** papszOpenOptions;
70
72 char **papszDestOpenOptions;
73
74 int bOverwrite;
75 int bCreateOutput;
76 };
77
78 /* Access modes */
79 typedef enum
80 {
81 ACCESS_CREATION,
82 ACCESS_UPDATE, /* open existing output datasource in update mode rather than trying to create a new one */
83 ACCESS_APPEND, /* append to existing layer instead of creating new */
84 ACCESS_OVERWRITE /* delete the output layer and recreate it empty */
85 } GDALVectorTranslateAccessMode;
86
87 struct GDALVectorTranslateOptionsForBinary
88 {
89 char* pszDataSource;
90 char* pszDestDataSource;
91 int bQuiet;
92 char** papszOpenOptions;
93 char* pszFormat;
94 GDALVectorTranslateAccessMode eAccessMode;
95 };
96
97 struct GDALDEMProcessingOptionsForBinary
98 {
99 char* pszProcessing;
100 char* pszSrcFilename;
101 char* pszColorFilename;
102 char* pszDstFilename;
103 int bQuiet;
104 };
105
106 struct GDALNearblackOptionsForBinary
107 {
108 char* pszInFile;
109 char* pszOutFile;
110 int bQuiet;
111 };
112
113 struct GDALGridOptionsForBinary
114 {
115 char* pszSource;
116 char* pszDest;
117 int bQuiet;
118 char* pszFormat;
119 };
120
121 struct GDALRasterizeOptionsForBinary
122 {
123 char* pszSource;
124 char* pszDest;
125 int bQuiet;
126 char* pszFormat;
127 int bCreateOutput;
128 };
129
130 struct GDALBuildVRTOptionsForBinary
131 {
132 int nSrcFiles;
133 char** papszSrcFiles;
134 char* pszDstFilename;
135 int bQuiet;
136 int bOverwrite;
137 };
138
139 CPL_C_END
140
141 #endif /* #ifndef DOXYGEN_SKIP */
142
143 #endif /* GDAL_UTILS_PRIV_H_INCLUDED */
GDALBuildVRTOptionsForBinary
struct GDALBuildVRTOptionsForBinary GDALBuildVRTOptionsForBinary
Opaque type.
Definition: gdal_utils.h:206
cpl_port.h
Core portability definitions for CPL.
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:341
GDALRasterizeOptionsForBinary
struct GDALRasterizeOptionsForBinary GDALRasterizeOptionsForBinary
Opaque type.
Definition: gdal_utils.h:187
GDALTranslateOptionsForBinary
struct GDALTranslateOptionsForBinary GDALTranslateOptionsForBinary
Opaque type.
Definition: gdal_utils.h:64
gdal_utils.h
Public (C callable) GDAL Utilities entry points.
GDALWarpAppOptionsForBinary
struct GDALWarpAppOptionsForBinary GDALWarpAppOptionsForBinary
Opaque type.
Definition: gdal_utils.h:84
GDALNearblackOptionsForBinary
struct GDALNearblackOptionsForBinary GDALNearblackOptionsForBinary
Opaque type.
Definition: gdal_utils.h:149
GDALGridOptionsForBinary
struct GDALGridOptionsForBinary GDALGridOptionsForBinary
Opaque type.
Definition: gdal_utils.h:168
GDALDEMProcessingOptionsForBinary
struct GDALDEMProcessingOptionsForBinary GDALDEMProcessingOptionsForBinary
Opaque type.
Definition: gdal_utils.h:127
GDALInfoOptionsForBinary
struct GDALInfoOptionsForBinary GDALInfoOptionsForBinary
Opaque type.
Definition: gdal_utils.h:52
GDALVectorTranslateOptionsForBinary
struct GDALVectorTranslateOptionsForBinary GDALVectorTranslateOptionsForBinary
Opaque type.
Definition: gdal_utils.h:108
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:343

Generated for GDAL by 1.8.8.