Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-gdal / include / ogr_api.h @ 948

History | View | Annotate | Download (16.4 KB)

1
/******************************************************************************
2
 * $Id: ogr_api.h 716 2004-12-28 14:07:11Z igbrotru $
3
 *
4
 * Project:  OpenGIS Simple Features Reference Implementation
5
 * Purpose:  C API for OGR Geometry, Feature, Layers, DataSource and drivers.
6
 * Author:   Frank Warmerdam, warmerdam@pobox.com
7
 *
8
 ******************************************************************************
9
 * Copyright (c) 2002, Frank Warmerdam
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
 * $Log$
31
 * Revision 1.1  2004-12-28 14:06:59  igbrotru
32
 * *** empty log message ***
33
 *
34
 * Revision 1.1  2004/12/28 13:32:25  igbrotru
35
 * *** empty log message ***
36
 *
37
 * Revision 1.20  2004/09/17 15:05:36  fwarmerdam
38
 * added get_Area() support
39
 *
40
 * Revision 1.19  2004/07/10 06:57:54  warmerda
41
 * Added C entry points and docs for GEOS geometry functions
42
 *
43
 * Revision 1.18  2004/07/10 04:52:44  warmerda
44
 * added OGR_G_CloseRings
45
 *
46
 * Revision 1.17  2003/10/09 15:27:41  warmerda
47
 * added OGRLayer::DeleteFeature() support
48
 *
49
 * Revision 1.16  2003/09/04 14:01:44  warmerda
50
 * added OGRGetGenerate_DB2_V72_BYTE_ORDER
51
 *
52
 * Revision 1.15  2003/08/27 15:40:37  warmerda
53
 * added support for generating DB2 V7.2 compatible WKB
54
 *
55
 * Revision 1.14  2003/04/22 19:33:26  warmerda
56
 * Added synctodisk
57
 *
58
 * Revision 1.13  2003/04/08 21:21:13  warmerda
59
 * added OGRGetDriverByName
60
 *
61
 * Revision 1.12  2003/04/08 19:30:56  warmerda
62
 * added CopyLayer and CopyDataSource entry points
63
 *
64
 * Revision 1.11  2003/03/19 20:28:20  warmerda
65
 * added shared access, and reference counting apis
66
 *
67
 * Revision 1.10  2003/03/12 20:52:07  warmerda
68
 * implemented support for gml:Box
69
 *
70
 * Revision 1.9  2003/03/06 20:29:27  warmerda
71
 * added GML import/export entry points
72
 *
73
 * Revision 1.8  2003/03/05 05:08:49  warmerda
74
 * added GetLayerByName
75
 *
76
 * Revision 1.7  2003/03/03 05:05:54  warmerda
77
 * added support for DeleteDataSource and DeleteLayer
78
 *
79
 * Revision 1.6  2003/01/07 16:44:27  warmerda
80
 * added removeGeometry
81
 *
82
 * Revision 1.5  2003/01/06 21:37:00  warmerda
83
 * added CPL_DLL attribute on OGRBuildPolygon...
84
 *
85
 * Revision 1.4  2003/01/02 21:45:23  warmerda
86
 * move OGRBuildPolygonsFromEdges into C API
87
 *
88
 * Revision 1.3  2002/10/24 16:46:08  warmerda
89
 * removed bogus OGR_G_GetWkbSize()
90
 *
91
 * Revision 1.2  2002/09/26 19:00:07  warmerda
92
 * ensure all entry points CPL_DLL'ed
93
 *
94
 * Revision 1.1  2002/09/26 18:11:51  warmerda
95
 * New
96
 *
97
 */
98

    
99
#ifndef _OGR_API_H_INCLUDED
100
#define _OGR_API_H_INCLUDED
101

    
102
/**
103
 * \file ogr_api.h
104
 * 
105
 * C API and defines for OGRFeature, OGRGeometry, and OGRDataSource
106
 * related classes. 
107
 * 
108
 * See also: ogr_geometry.h, ogr_feature.h, ogrsf_frmts.h
109
 */
110

    
111
#include "ogr_core.h"
112

    
113
CPL_C_START
114

    
115
/* -------------------------------------------------------------------- */
116
/*      Geometry related functions (ogr_geometry.h)                     */
117
/* -------------------------------------------------------------------- */
118
typedef void *OGRGeometryH;
119

    
120
#ifndef _DEFINED_OGRSpatialReferenceH
121
#define _DEFINED_OGRSpatialReferenceH
122

    
123
typedef void *OGRSpatialReferenceH;                               
124
typedef void *OGRCoordinateTransformationH;
125

    
126
#endif
127

    
128
struct _CPLXMLNode;
129

    
130
/* From base OGRGeometry class */
131

    
132
OGRErr CPL_DLL OGR_G_CreateFromWkb( unsigned char *, OGRSpatialReferenceH, 
133
                                    OGRGeometryH * );
134
OGRErr CPL_DLL OGR_G_CreateFromWkt( char **, OGRSpatialReferenceH, 
135
                                    OGRGeometryH * );
136
void   CPL_DLL OGR_G_DestroyGeometry( OGRGeometryH );
137
OGRGeometryH CPL_DLL OGR_G_CreateGeometry( OGRwkbGeometryType );
138

    
139
int    CPL_DLL OGR_G_GetDimension( OGRGeometryH );
140
int    CPL_DLL OGR_G_GetCoordinateDimension( OGRGeometryH );
141
OGRGeometryH CPL_DLL OGR_G_Clone( OGRGeometryH );
142
void   CPL_DLL OGR_G_GetEnvelope( OGRGeometryH, OGREnvelope * );
143
OGRErr CPL_DLL OGR_G_ImportFromWkb( OGRGeometryH, unsigned char *, int );
144
OGRErr CPL_DLL OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder, unsigned char*);
145
int    CPL_DLL OGR_G_WkbSize( OGRGeometryH hGeom );
146
OGRErr CPL_DLL OGR_G_ImportFromWkt( OGRGeometryH, char ** );
147
OGRErr CPL_DLL OGR_G_ExportToWkt( OGRGeometryH, char ** );
148
OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType( OGRGeometryH );
149
const char CPL_DLL *OGR_G_GetGeometryName( OGRGeometryH );
150
void   CPL_DLL OGR_G_DumpReadable( OGRGeometryH, FILE *, const char * );
151
void   CPL_DLL OGR_G_FlattenTo2D( OGRGeometryH );
152
void   CPL_DLL OGR_G_CloseRings( OGRGeometryH );
153

    
154
OGRGeometryH CPL_DLL OGR_G_CreateFromGML( const char * );
155
char   CPL_DLL *OGR_G_ExportToGML( OGRGeometryH );
156

    
157
#if defined(_CPL_MINIXML_H_INCLUDED)
158
OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree( const CPLXMLNode * );
159
CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree( OGRGeometryH );
160
CPLXMLNode CPL_DLL *OGR_G_ExportEnvelopeToGMLTree( OGRGeometryH );
161
#endif
162

    
163
void   CPL_DLL OGR_G_AssignSpatialReference( OGRGeometryH, 
164
                                             OGRSpatialReferenceH );
165
OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference( OGRGeometryH );
166
OGRErr CPL_DLL OGR_G_Transform( OGRGeometryH, OGRCoordinateTransformationH );
167
OGRErr CPL_DLL OGR_G_TransformTo( OGRGeometryH, OGRSpatialReferenceH );
168

    
169
int    CPL_DLL OGR_G_Intersect( OGRGeometryH, OGRGeometryH );
170
int    CPL_DLL OGR_G_Equal( OGRGeometryH, OGRGeometryH );
171
int    CPL_DLL OGR_G_Disjoint( OGRGeometryH, OGRGeometryH );
172
int    CPL_DLL OGR_G_Touches( OGRGeometryH, OGRGeometryH );
173
int    CPL_DLL OGR_G_Crosses( OGRGeometryH, OGRGeometryH );
174
int    CPL_DLL OGR_G_Within( OGRGeometryH, OGRGeometryH );
175
int    CPL_DLL OGR_G_Contains( OGRGeometryH, OGRGeometryH );
176
int    CPL_DLL OGR_G_Overlaps( OGRGeometryH, OGRGeometryH );
177

    
178
OGRGeometryH CPL_DLL OGR_G_GetBoundary( OGRGeometryH );
179
OGRGeometryH CPL_DLL OGR_G_ConvexHull( OGRGeometryH );
180
OGRGeometryH CPL_DLL OGR_G_Buffer( OGRGeometryH, double, int );
181
OGRGeometryH CPL_DLL OGR_G_Intersection( OGRGeometryH, OGRGeometryH );
182
OGRGeometryH CPL_DLL OGR_G_Union( OGRGeometryH, OGRGeometryH );
183
OGRGeometryH CPL_DLL OGR_G_Difference( OGRGeometryH, OGRGeometryH );
184
OGRGeometryH CPL_DLL OGR_G_SymmetricDifference( OGRGeometryH, OGRGeometryH );
185
double CPL_DLL OGR_G_Distance( OGRGeometryH, OGRGeometryH );
186

    
187
double CPL_DLL OGR_G_GetArea( OGRGeometryH );
188

    
189
void   CPL_DLL OGR_G_Empty( OGRGeometryH );
190

    
191
/* Methods for getting/setting vertices in points, line strings and rings */
192
int    CPL_DLL OGR_G_GetPointCount( OGRGeometryH );
193
double CPL_DLL OGR_G_GetX( OGRGeometryH, int );
194
double CPL_DLL OGR_G_GetY( OGRGeometryH, int );
195
double CPL_DLL OGR_G_GetZ( OGRGeometryH, int );
196
void   CPL_DLL OGR_G_GetPoint( OGRGeometryH, int iPoint, 
197
                               double *, double *, double * );
198
void   CPL_DLL OGR_G_SetPoint( OGRGeometryH, int iPoint, 
199
                               double, double, double );
200
void   CPL_DLL OGR_G_AddPoint( OGRGeometryH, double, double, double );
201

    
202
/* Methods for getting/setting rings and members collections */
203

    
204
int    CPL_DLL OGR_G_GetGeometryCount( OGRGeometryH );
205
OGRGeometryH CPL_DLL OGR_G_GetGeometryRef( OGRGeometryH, int );
206
OGRErr CPL_DLL OGR_G_AddGeometry( OGRGeometryH, OGRGeometryH );
207
OGRErr CPL_DLL OGR_G_AddGeometryDirectly( OGRGeometryH, OGRGeometryH );
208
OGRErr CPL_DLL OGR_G_RemoveGeometry( OGRGeometryH, int, int );
209

    
210
OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges( OGRGeometryH hLinesAsCollection,
211
                                       int bBestEffort, 
212
                                       int bAutoClose, 
213
                                       double dfTolerance,
214
                                       OGRErr * peErr );
215

    
216
OGRErr CPL_DLL OGRSetGenerate_DB2_V72_BYTE_ORDER( 
217
    int bGenerate_DB2_V72_BYTE_ORDER );
218

    
219
int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER();
220

    
221
/* -------------------------------------------------------------------- */
222
/*      Feature related (ogr_feature.h)                                 */
223
/* -------------------------------------------------------------------- */
224

    
225
typedef void *OGRFieldDefnH;
226
typedef void *OGRFeatureDefnH;
227
typedef void *OGRFeatureH;
228

    
229
/* OGRFieldDefn */
230

    
231
OGRFieldDefnH CPL_DLL OGR_Fld_Create( const char *, OGRFieldType );
232
void   CPL_DLL OGR_Fld_Destroy( OGRFieldDefnH );
233

    
234
void   CPL_DLL OGR_Fld_SetName( OGRFieldDefnH, const char * );
235
const char CPL_DLL *OGR_Fld_GetNameRef( OGRFieldDefnH );
236
OGRFieldType CPL_DLL OGR_Fld_GetType( OGRFieldDefnH );
237
void   CPL_DLL OGR_Fld_SetType( OGRFieldDefnH, OGRFieldType );
238
OGRJustification CPL_DLL OGR_Fld_GetJustify( OGRFieldDefnH );
239
void   CPL_DLL OGR_Fld_SetJustify( OGRFieldDefnH, OGRJustification );
240
int    CPL_DLL OGR_Fld_GetWidth( OGRFieldDefnH );
241
void   CPL_DLL OGR_Fld_SetWidth( OGRFieldDefnH, int );
242
int    CPL_DLL OGR_Fld_GetPrecision( OGRFieldDefnH );
243
void   CPL_DLL OGR_Fld_SetPrecision( OGRFieldDefnH, int );
244
void   CPL_DLL OGR_Fld_Set( OGRFieldDefnH, const char *, OGRFieldType, 
245
                            int, int, OGRJustification );
246

    
247
const char CPL_DLL *OGR_GetFieldTypeName( OGRFieldType );
248

    
249
/* OGRFeatureDefn */
250

    
251
OGRFeatureDefnH CPL_DLL OGR_FD_Create( const char * );
252
void   CPL_DLL OGR_FD_Destroy( OGRFeatureDefnH );
253
const char CPL_DLL *OGR_FD_GetName( OGRFeatureDefnH );
254
int    CPL_DLL OGR_FD_GetFieldCount( OGRFeatureDefnH );
255
OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn( OGRFeatureDefnH, int );
256
int    CPL_DLL OGR_FD_GetFieldIndex( OGRFeatureDefnH, const char * );
257
void   CPL_DLL OGR_FD_AddFieldDefn( OGRFeatureDefnH, OGRFieldDefnH );
258
OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType( OGRFeatureDefnH );
259
void   CPL_DLL OGR_FD_SetGeomType( OGRFeatureDefnH, OGRwkbGeometryType );
260
int    CPL_DLL OGR_FD_Reference( OGRFeatureDefnH );
261
int    CPL_DLL OGR_FD_Dereference( OGRFeatureDefnH );
262
int    CPL_DLL OGR_FD_GetReferenceCount( OGRFeatureDefnH );
263

    
264
/* OGRFeature */
265

    
266
OGRFeatureH CPL_DLL OGR_F_Create( OGRFeatureDefnH );
267
void   CPL_DLL OGR_F_Destroy( OGRFeatureH );
268
OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef( OGRFeatureH );
269

    
270
OGRErr CPL_DLL OGR_F_SetGeometryDirectly( OGRFeatureH, OGRGeometryH );
271
OGRErr CPL_DLL OGR_F_SetGeometry( OGRFeatureH, OGRGeometryH );
272
OGRGeometryH CPL_DLL OGR_F_GetGeometryRef( OGRFeatureH );
273
OGRFeatureH CPL_DLL OGR_F_Clone( OGRFeatureH );
274
int    CPL_DLL OGR_F_Equal( OGRFeatureH, OGRFeatureH );
275

    
276
int    CPL_DLL OGR_F_GetFieldCount( OGRFeatureH );
277
OGRFieldDefnH CPL_DLL OGR_F_GetFieldDefnRef( OGRFeatureH, int );
278
int    CPL_DLL OGR_F_GetFieldIndex( OGRFeatureH, const char * );
279

    
280
int    CPL_DLL OGR_F_IsFieldSet( OGRFeatureH, int );
281
void   CPL_DLL OGR_F_UnsetField( OGRFeatureH, int );
282
OGRField CPL_DLL *OGR_F_GetRawFieldRef( OGRFeatureH, int );
283

    
284
int    CPL_DLL OGR_F_GetFieldAsInteger( OGRFeatureH, int );
285
double CPL_DLL OGR_F_GetFieldAsDouble( OGRFeatureH, int );
286
const char CPL_DLL *OGR_F_GetFieldAsString( OGRFeatureH, int );
287
const int CPL_DLL *OGR_F_GetFieldAsIntegerList( OGRFeatureH, int, int * );
288
const double CPL_DLL *OGR_F_GetFieldAsDoubleList( OGRFeatureH, int, int * );
289
char  CPL_DLL **OGR_F_GetFieldAsStringList( OGRFeatureH, int );
290

    
291
void   CPL_DLL OGR_F_SetFieldInteger( OGRFeatureH, int, int );
292
void   CPL_DLL OGR_F_SetFieldDouble( OGRFeatureH, int, double );
293
void   CPL_DLL OGR_F_SetFieldString( OGRFeatureH, int, const char * );
294
void   CPL_DLL OGR_F_SetFieldIntegerList( OGRFeatureH, int, int, int * );
295
void   CPL_DLL OGR_F_SetFieldDoubleList( OGRFeatureH, int, int, double * );
296
void   CPL_DLL OGR_F_SetFieldStringList( OGRFeatureH, int, char ** );
297
void   CPL_DLL OGR_F_SetFieldRaw( OGRFeatureH, int, OGRField * );
298

    
299
long   CPL_DLL OGR_F_GetFID( OGRFeatureH );
300
OGRErr CPL_DLL OGR_F_SetFID( OGRFeatureH, long );
301
void   CPL_DLL OGR_F_DumpReadable( OGRFeatureH, FILE * );
302
OGRErr CPL_DLL OGR_F_SetFrom( OGRFeatureH, OGRFeatureH, int );
303

    
304
const char CPL_DLL *OGR_F_GetStyleString( OGRFeatureH );
305
void   CPL_DLL OGR_F_SetStyleString( OGRFeatureH, const char * );
306

    
307
/* -------------------------------------------------------------------- */
308
/*      ogrsf_frmts.h                                                   */
309
/* -------------------------------------------------------------------- */
310

    
311
typedef void *OGRLayerH;
312
typedef void *OGRDataSourceH;
313
typedef void *OGRSFDriverH;
314

    
315
/* OGRLayer */
316

    
317
OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter( OGRLayerH );
318
void   CPL_DLL OGR_L_SetSpatialFilter( OGRLayerH, OGRGeometryH );
319
OGRErr CPL_DLL OGR_L_SetAttributeFilter( OGRLayerH, const char * );
320
void   CPL_DLL OGR_L_ResetReading( OGRLayerH );
321
OGRFeatureH CPL_DLL OGR_L_GetNextFeature( OGRLayerH );
322
OGRFeatureH CPL_DLL OGR_L_GetFeature( OGRLayerH, long );
323
OGRErr CPL_DLL OGR_L_SetFeature( OGRLayerH, OGRFeatureH );
324
OGRErr CPL_DLL OGR_L_CreateFeature( OGRLayerH, OGRFeatureH );
325
OGRErr CPL_DLL OGR_L_DeleteFeature( OGRLayerH, long );
326
OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn( OGRLayerH );
327
OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef( OGRLayerH );
328
int    CPL_DLL OGR_L_GetFeatureCount( OGRLayerH, int );
329
OGRErr CPL_DLL OGR_L_GetExtent( OGRLayerH, OGREnvelope *, int );
330
int    CPL_DLL OGR_L_TestCapability( OGRLayerH, const char * );
331
OGRErr CPL_DLL OGR_L_CreateField( OGRLayerH, OGRFieldDefnH, int );
332
OGRErr CPL_DLL OGR_L_StartTransaction( OGRLayerH );
333
OGRErr CPL_DLL OGR_L_CommitTransaction( OGRLayerH );
334
OGRErr CPL_DLL OGR_L_RollbackTransaction( OGRLayerH );
335
int    CPL_DLL OGR_L_Reference( OGRLayerH );
336
int    CPL_DLL OGR_L_Dereference( OGRLayerH );
337
int    CPL_DLL OGR_L_GetRefCount( OGRLayerH );
338
OGRErr CPL_DLL OGR_L_SyncToDisk( OGRLayerH );
339

    
340
/* OGRDataSource */
341

    
342
void   CPL_DLL OGR_DS_Destroy( OGRDataSourceH );
343
const char CPL_DLL *OGR_DS_GetName( OGRDataSourceH );
344
int    CPL_DLL OGR_DS_GetLayerCount( OGRDataSourceH );
345
OGRLayerH CPL_DLL OGR_DS_GetLayer( OGRDataSourceH, int );
346
OGRLayerH CPL_DLL OGR_DS_GetLayerByName( OGRDataSourceH, const char * );
347
OGRErr    CPL_DLL OGR_DS_DeleteLayer( OGRDataSourceH, int );
348
OGRLayerH CPL_DLL OGR_DS_CreateLayer( OGRDataSourceH, const char *, 
349
                                      OGRSpatialReferenceH, OGRwkbGeometryType,
350
                                      char ** );
351
OGRLayerH CPL_DLL OGR_DS_CopyLayer( OGRDataSourceH, OGRLayerH, const char *,
352
                                    char ** );
353
int    CPL_DLL OGR_DS_TestCapability( OGRDataSourceH, const char * );
354
OGRLayerH CPL_DLL OGR_DS_ExecuteSQL( OGRDataSourceH, const char *,
355
                                     OGRGeometryH, const char * );
356
void   CPL_DLL OGR_DS_ReleaseResultSet( OGRDataSourceH, OGRLayerH );
357
int    CPL_DLL OGR_DS_Reference( OGRDataSourceH );
358
int    CPL_DLL OGR_DS_Dereference( OGRDataSourceH );
359
int    CPL_DLL OGR_DS_GetRefCount( OGRDataSourceH );
360
int    CPL_DLL OGR_DS_GetSummaryRefCount( OGRDataSourceH );
361
OGRErr CPL_DLL OGR_DS_SyncToDisk( OGRDataSourceH );
362

    
363
/* OGRSFDriver */
364

    
365
const char CPL_DLL *OGR_Dr_GetName( OGRSFDriverH );
366
OGRDataSourceH CPL_DLL OGR_Dr_Open( OGRSFDriverH, const char *, int );
367
int CPL_DLL OGR_Dr_TestCapability( OGRSFDriverH, const char * );
368
OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource( OGRSFDriverH, const char *,
369
                                                char ** );
370
OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource( OGRSFDriverH,  OGRDataSourceH, 
371
                                              const char *, char ** );
372
OGRErr CPL_DLL OGR_Dr_DeleteDataSource( OGRSFDriverH, const char * );
373

    
374
/* OGRSFDriverRegistrar */
375

    
376
OGRDataSourceH CPL_DLL OGROpen( const char *, int, OGRSFDriverH * );
377
OGRDataSourceH CPL_DLL OGROpenShared( const char *, int, OGRSFDriverH * );
378
OGRErr  CPL_DLL OGRReleaseDataSource( OGRDataSourceH );
379
void    CPL_DLL OGRRegisterDriver( OGRSFDriverH );
380
int     CPL_DLL OGRGetDriverCount();
381
OGRSFDriverH CPL_DLL OGRGetDriver( int );
382
OGRSFDriverH CPL_DLL OGRGetDriverByName( const char * );
383
int     CPL_DLL OGRGetOpenDSCount();
384
OGRDataSourceH CPL_DLL OGRGetOpenDS( int iDS );
385

    
386

    
387
/* note: this is also declared in ogrsf_frmts.h */
388
void CPL_DLL OGRRegisterAll();
389

    
390
CPL_C_END
391

    
392
#endif /* ndef _OGR_API_H_INCLUDED */
393

    
394