- Main Page
- Classes
- Files
- Directories
- Related Pages

- File List
- File Members

# ogr_api.h

Go to the documentation of this file.

    00001 /******************************************************************************
    00002  * $Id: ogr_api.h,v 1.33 2006/04/02 18:25:59 fwarmerdam Exp $
    00003  *
    00004  * Project:  OpenGIS Simple Features Reference Implementation
    00005  * Purpose:  C API for OGR Geometry, Feature, Layers, DataSource and drivers.
    00006  * Author:   Frank Warmerdam, warmerdam@pobox.com
    00007  *
    00008  ******************************************************************************
    00009  * Copyright (c) 2002, Frank Warmerdam
    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  * $Log: ogr_api.h,v $
    00031  * Revision 1.33  2006/04/02 18:25:59  fwarmerdam
    00032  * added OFTDateTime, and OFTTime support
    00033  *
    00034  * Revision 1.32  2006/02/15 04:25:37  fwarmerdam
    00035  * added date support
    00036  *
    00037  * Revision 1.31  2006/01/27 00:08:36  fwarmerdam
    00038  * added Get{FID,Geometry}Column() support
    00039  *
    00040  * Revision 1.30  2005/10/28 16:47:21  fwarmerdam
    00041  * Added OGRCleanupAll().
    00042  *
    00043  * Revision 1.29  2005/10/25 19:58:27  fwarmerdam
    00044  * added OGR_DS_GetDriver
    00045  *
    00046  * Revision 1.28  2005/09/21 00:50:08  fwarmerdam
    00047  * Added Release
    00048  *
    00049  * Revision 1.27  2005/08/05 20:28:55  fwarmerdam
    00050  * pass nbytes in OGR_G_CreateFromWkb()
    00051  *
    00052  * Revision 1.26  2005/07/20 01:43:51  fwarmerdam
    00053  * upgraded OGR geometry dimension handling
    00054  *
    00055  * Revision 1.25  2005/02/22 12:37:26  fwarmerdam
    00056  * rename Equal/Intersect to Equals/Intersects
    00057  *
    00058  * Revision 1.24  2005/02/02 19:59:47  fwarmerdam
    00059  * added SetNextByIndex support
    00060  *
    00061  * Revision 1.23  2005/01/03 22:15:48  fwarmerdam
    00062  * added SetSpatialFilterRect
    00063  *
    00064  * Revision 1.22  2004/11/22 22:24:56  fwarmerdam
    00065  * Give explicit void for functions taking no arguments.
    00066  *
    00067  * Revision 1.21  2004/10/07 13:10:59  fwarmerdam
    00068  * added OGR_G_Centroid
    00069  *
    00070  * Revision 1.20  2004/09/17 15:05:36  fwarmerdam
    00071  * added get_Area() support
    00072  *
    00073  * Revision 1.19  2004/07/10 06:57:54  warmerda
    00074  * Added C entry points and docs for GEOS geometry functions
    00075  *
    00076  * Revision 1.18  2004/07/10 04:52:44  warmerda
    00077  * added OGR_G_CloseRings
    00078  *
    00079  * Revision 1.17  2003/10/09 15:27:41  warmerda
    00080  * added OGRLayer::DeleteFeature() support
    00081  *
    00082  * Revision 1.16  2003/09/04 14:01:44  warmerda
    00083  * added OGRGetGenerate_DB2_V72_BYTE_ORDER
    00084  *
    00085  * Revision 1.15  2003/08/27 15:40:37  warmerda
    00086  * added support for generating DB2 V7.2 compatible WKB
    00087  *
    00088  * Revision 1.14  2003/04/22 19:33:26  warmerda
    00089  * Added synctodisk
    00090  *
    00091  * Revision 1.13  2003/04/08 21:21:13  warmerda
    00092  * added OGRGetDriverByName
    00093  *
    00094  * Revision 1.12  2003/04/08 19:30:56  warmerda
    00095  * added CopyLayer and CopyDataSource entry points
    00096  *
    00097  * Revision 1.11  2003/03/19 20:28:20  warmerda
    00098  * added shared access, and reference counting apis
    00099  *
    00100  * Revision 1.10  2003/03/12 20:52:07  warmerda
    00101  * implemented support for gml:Box
    00102  *
    00103  * Revision 1.9  2003/03/06 20:29:27  warmerda
    00104  * added GML import/export entry points
    00105  *
    00106  * Revision 1.8  2003/03/05 05:08:49  warmerda
    00107  * added GetLayerByName
    00108  *
    00109  * Revision 1.7  2003/03/03 05:05:54  warmerda
    00110  * added support for DeleteDataSource and DeleteLayer
    00111  *
    00112  * Revision 1.6  2003/01/07 16:44:27  warmerda
    00113  * added removeGeometry
    00114  *
    00115  * Revision 1.5  2003/01/06 21:37:00  warmerda
    00116  * added CPL_DLL attribute on OGRBuildPolygon...
    00117  *
    00118  * Revision 1.4  2003/01/02 21:45:23  warmerda
    00119  * move OGRBuildPolygonsFromEdges into C API
    00120  *
    00121  * Revision 1.3  2002/10/24 16:46:08  warmerda
    00122  * removed bogus OGR_G_GetWkbSize()
    00123  *
    00124  * Revision 1.2  2002/09/26 19:00:07  warmerda
    00125  * ensure all entry points CPL_DLL'ed
    00126  *
    00127  * Revision 1.1  2002/09/26 18:11:51  warmerda
    00128  * New
    00129  *
    00130  */
    00131
    00132 #ifndef _OGR_API_H_INCLUDED
    00133 #define _OGR_API_H_INCLUDED
    00134
    00144 #include "ogr_core.h"
    00145
    00146 CPL_C_START
    00147
    00148 /* -------------------------------------------------------------------- */
    00149 /*      Geometry related functions (ogr_geometry.h)                     */
    00150 /* -------------------------------------------------------------------- */
    00151 typedef void *OGRGeometryH;
    00152
    00153 #ifndef _DEFINED_OGRSpatialReferenceH
    00154 #define _DEFINED_OGRSpatialReferenceH
    00155
    00156 typedef void *OGRSpatialReferenceH;
    00157 typedef void *OGRCoordinateTransformationH;
    00158
    00159 #endif
    00160
    00161 struct _CPLXMLNode;
    00162
    00163 /* From base OGRGeometry class */
    00164
    00165 OGRErr CPL_DLL OGR_G_CreateFromWkb( unsigned char *, OGRSpatialReferenceH,
    00166                                     OGRGeometryH *, int );
    00167 OGRErr CPL_DLL OGR_G_CreateFromWkt( char **, OGRSpatialReferenceH,
    00168                                     OGRGeometryH * );
    00169 void   CPL_DLL OGR_G_DestroyGeometry( OGRGeometryH );
    00170 OGRGeometryH CPL_DLL OGR_G_CreateGeometry( OGRwkbGeometryType );
    00171
    00172 int    CPL_DLL OGR_G_GetDimension( OGRGeometryH );
    00173 int    CPL_DLL OGR_G_GetCoordinateDimension( OGRGeometryH );
    00174 void   CPL_DLL OGR_G_SetCoordinateDimension( OGRGeometryH, int );
    00175 OGRGeometryH CPL_DLL OGR_G_Clone( OGRGeometryH );
    00176 void   CPL_DLL OGR_G_GetEnvelope( OGRGeometryH, OGREnvelope * );
    00177 OGRErr CPL_DLL OGR_G_ImportFromWkb( OGRGeometryH, unsigned char *, int );
    00178 OGRErr CPL_DLL OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder, unsigned char*);
    00179 int    CPL_DLL OGR_G_WkbSize( OGRGeometryH hGeom );
    00180 OGRErr CPL_DLL OGR_G_ImportFromWkt( OGRGeometryH, char ** );
    00181 OGRErr CPL_DLL OGR_G_ExportToWkt( OGRGeometryH, char ** );
    00182 OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType( OGRGeometryH );
    00183 const char CPL_DLL *OGR_G_GetGeometryName( OGRGeometryH );
    00184 void   CPL_DLL OGR_G_DumpReadable( OGRGeometryH, FILE *, const char * );
    00185 void   CPL_DLL OGR_G_FlattenTo2D( OGRGeometryH );
    00186 void   CPL_DLL OGR_G_CloseRings( OGRGeometryH );
    00187
    00188 OGRGeometryH CPL_DLL OGR_G_CreateFromGML( const char * );
    00189 char   CPL_DLL *OGR_G_ExportToGML( OGRGeometryH );
    00190
    00191 #if defined(_CPL_MINIXML_H_INCLUDED)
    00192 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree( const CPLXMLNode * );
    00193 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree( OGRGeometryH );
    00194 CPLXMLNode CPL_DLL *OGR_G_ExportEnvelopeToGMLTree( OGRGeometryH );
    00195 #endif
    00196
    00197 void   CPL_DLL OGR_G_AssignSpatialReference( OGRGeometryH,
    00198                                              OGRSpatialReferenceH );
    00199 OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference( OGRGeometryH );
    00200 OGRErr CPL_DLL OGR_G_Transform( OGRGeometryH, OGRCoordinateTransformationH );
    00201 OGRErr CPL_DLL OGR_G_TransformTo( OGRGeometryH, OGRSpatialReferenceH );
    00202
    00203 int    CPL_DLL OGR_G_Intersects( OGRGeometryH, OGRGeometryH );
    00204 int    CPL_DLL OGR_G_Equals( OGRGeometryH, OGRGeometryH );
    00205 int    CPL_DLL OGR_G_Disjoint( OGRGeometryH, OGRGeometryH );
    00206 int    CPL_DLL OGR_G_Touches( OGRGeometryH, OGRGeometryH );
    00207 int    CPL_DLL OGR_G_Crosses( OGRGeometryH, OGRGeometryH );
    00208 int    CPL_DLL OGR_G_Within( OGRGeometryH, OGRGeometryH );
    00209 int    CPL_DLL OGR_G_Contains( OGRGeometryH, OGRGeometryH );
    00210 int    CPL_DLL OGR_G_Overlaps( OGRGeometryH, OGRGeometryH );
    00211
    00212 OGRGeometryH CPL_DLL OGR_G_GetBoundary( OGRGeometryH );
    00213 OGRGeometryH CPL_DLL OGR_G_ConvexHull( OGRGeometryH );
    00214 OGRGeometryH CPL_DLL OGR_G_Buffer( OGRGeometryH, double, int );
    00215 OGRGeometryH CPL_DLL OGR_G_Intersection( OGRGeometryH, OGRGeometryH );
    00216 OGRGeometryH CPL_DLL OGR_G_Union( OGRGeometryH, OGRGeometryH );
    00217 OGRGeometryH CPL_DLL OGR_G_Difference( OGRGeometryH, OGRGeometryH );
    00218 OGRGeometryH CPL_DLL OGR_G_SymmetricDifference( OGRGeometryH, OGRGeometryH );
    00219 double CPL_DLL OGR_G_Distance( OGRGeometryH, OGRGeometryH );
    00220
    00221 double CPL_DLL OGR_G_GetArea( OGRGeometryH );
    00222 int    CPL_DLL OGR_G_Centroid( OGRGeometryH, OGRGeometryH );
    00223
    00224 void   CPL_DLL OGR_G_Empty( OGRGeometryH );
    00225
    00226 /* backward compatibility */
    00227 int    CPL_DLL OGR_G_Intersect( OGRGeometryH, OGRGeometryH );
    00228 int    CPL_DLL OGR_G_Equal( OGRGeometryH, OGRGeometryH );
    00229
    00230 /* Methods for getting/setting vertices in points, line strings and rings */
    00231 int    CPL_DLL OGR_G_GetPointCount( OGRGeometryH );
    00232 double CPL_DLL OGR_G_GetX( OGRGeometryH, int );
    00233 double CPL_DLL OGR_G_GetY( OGRGeometryH, int );
    00234 double CPL_DLL OGR_G_GetZ( OGRGeometryH, int );
    00235 void   CPL_DLL OGR_G_GetPoint( OGRGeometryH, int iPoint,
    00236                                double *, double *, double * );
    00237 void   CPL_DLL OGR_G_SetPoint( OGRGeometryH, int iPoint,
    00238                                double, double, double );
    00239 void   CPL_DLL OGR_G_SetPoint_2D( OGRGeometryH, int iPoint,
    00240                                   double, double );
    00241 void   CPL_DLL OGR_G_AddPoint( OGRGeometryH, double, double, double );
    00242 void   CPL_DLL OGR_G_AddPoint_2D( OGRGeometryH, double, double );
    00243
    00244 /* Methods for getting/setting rings and members collections */
    00245
    00246 int    CPL_DLL OGR_G_GetGeometryCount( OGRGeometryH );
    00247 OGRGeometryH CPL_DLL OGR_G_GetGeometryRef( OGRGeometryH, int );
    00248 OGRErr CPL_DLL OGR_G_AddGeometry( OGRGeometryH, OGRGeometryH );
    00249 OGRErr CPL_DLL OGR_G_AddGeometryDirectly( OGRGeometryH, OGRGeometryH );
    00250 OGRErr CPL_DLL OGR_G_RemoveGeometry( OGRGeometryH, int, int );
    00251
    00252 OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges( OGRGeometryH hLinesAsCollection,
    00253                                        int bBestEffort,
    00254                                        int bAutoClose,
    00255                                        double dfTolerance,
    00256                                        OGRErr * peErr );
    00257
    00258 OGRErr CPL_DLL OGRSetGenerate_DB2_V72_BYTE_ORDER(
    00259     int bGenerate_DB2_V72_BYTE_ORDER );
    00260
    00261 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(void);
    00262
    00263 /* -------------------------------------------------------------------- */
    00264 /*      Feature related (ogr_feature.h)                                 */
    00265 /* -------------------------------------------------------------------- */
    00266
    00267 typedef void *OGRFieldDefnH;
    00268 typedef void *OGRFeatureDefnH;
    00269 typedef void *OGRFeatureH;
    00270
    00271 /* OGRFieldDefn */
    00272
    00273 OGRFieldDefnH CPL_DLL OGR_Fld_Create( const char *, OGRFieldType );
    00274 void   CPL_DLL OGR_Fld_Destroy( OGRFieldDefnH );
    00275
    00276 void   CPL_DLL OGR_Fld_SetName( OGRFieldDefnH, const char * );
    00277 const char CPL_DLL *OGR_Fld_GetNameRef( OGRFieldDefnH );
    00278 OGRFieldType CPL_DLL OGR_Fld_GetType( OGRFieldDefnH );
    00279 void   CPL_DLL OGR_Fld_SetType( OGRFieldDefnH, OGRFieldType );
    00280 OGRJustification CPL_DLL OGR_Fld_GetJustify( OGRFieldDefnH );
    00281 void   CPL_DLL OGR_Fld_SetJustify( OGRFieldDefnH, OGRJustification );
    00282 int    CPL_DLL OGR_Fld_GetWidth( OGRFieldDefnH );
    00283 void   CPL_DLL OGR_Fld_SetWidth( OGRFieldDefnH, int );
    00284 int    CPL_DLL OGR_Fld_GetPrecision( OGRFieldDefnH );
    00285 void   CPL_DLL OGR_Fld_SetPrecision( OGRFieldDefnH, int );
    00286 void   CPL_DLL OGR_Fld_Set( OGRFieldDefnH, const char *, OGRFieldType,
    00287                             int, int, OGRJustification );
    00288
    00289 const char CPL_DLL *OGR_GetFieldTypeName( OGRFieldType );
    00290
    00291 /* OGRFeatureDefn */
    00292
    00293 OGRFeatureDefnH CPL_DLL OGR_FD_Create( const char * );
    00294 void   CPL_DLL OGR_FD_Destroy( OGRFeatureDefnH );
    00295 void   CPL_DLL OGR_FD_Release( OGRFeatureDefnH );
    00296 const char CPL_DLL *OGR_FD_GetName( OGRFeatureDefnH );
    00297 int    CPL_DLL OGR_FD_GetFieldCount( OGRFeatureDefnH );
    00298 OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn( OGRFeatureDefnH, int );
    00299 int    CPL_DLL OGR_FD_GetFieldIndex( OGRFeatureDefnH, const char * );
    00300 void   CPL_DLL OGR_FD_AddFieldDefn( OGRFeatureDefnH, OGRFieldDefnH );
    00301 OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType( OGRFeatureDefnH );
    00302 void   CPL_DLL OGR_FD_SetGeomType( OGRFeatureDefnH, OGRwkbGeometryType );
    00303 int    CPL_DLL OGR_FD_Reference( OGRFeatureDefnH );
    00304 int    CPL_DLL OGR_FD_Dereference( OGRFeatureDefnH );
    00305 int    CPL_DLL OGR_FD_GetReferenceCount( OGRFeatureDefnH );
    00306
    00307 /* OGRFeature */
    00308
    00309 OGRFeatureH CPL_DLL OGR_F_Create( OGRFeatureDefnH );
    00310 void   CPL_DLL OGR_F_Destroy( OGRFeatureH );
    00311 OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef( OGRFeatureH );
    00312
    00313 OGRErr CPL_DLL OGR_F_SetGeometryDirectly( OGRFeatureH, OGRGeometryH );
    00314 OGRErr CPL_DLL OGR_F_SetGeometry( OGRFeatureH, OGRGeometryH );
    00315 OGRGeometryH CPL_DLL OGR_F_GetGeometryRef( OGRFeatureH );
    00316 OGRFeatureH CPL_DLL OGR_F_Clone( OGRFeatureH );
    00317 int    CPL_DLL OGR_F_Equal( OGRFeatureH, OGRFeatureH );
    00318
    00319 int    CPL_DLL OGR_F_GetFieldCount( OGRFeatureH );
    00320 OGRFieldDefnH CPL_DLL OGR_F_GetFieldDefnRef( OGRFeatureH, int );
    00321 int    CPL_DLL OGR_F_GetFieldIndex( OGRFeatureH, const char * );
    00322
    00323 int    CPL_DLL OGR_F_IsFieldSet( OGRFeatureH, int );
    00324 void   CPL_DLL OGR_F_UnsetField( OGRFeatureH, int );
    00325 OGRField CPL_DLL *OGR_F_GetRawFieldRef( OGRFeatureH, int );
    00326
    00327 int    CPL_DLL OGR_F_GetFieldAsInteger( OGRFeatureH, int );
    00328 double CPL_DLL OGR_F_GetFieldAsDouble( OGRFeatureH, int );
    00329 const char CPL_DLL *OGR_F_GetFieldAsString( OGRFeatureH, int );
    00330 const int CPL_DLL *OGR_F_GetFieldAsIntegerList( OGRFeatureH, int, int * );
    00331 const double CPL_DLL *OGR_F_GetFieldAsDoubleList( OGRFeatureH, int, int * );
    00332 char  CPL_DLL **OGR_F_GetFieldAsStringList( OGRFeatureH, int );
    00333 GByte CPL_DLL *OGR_F_GetFieldAsBinary( OGRFeatureH, int, int * );
    00334 int   CPL_DLL  OGR_F_GetFieldAsDateTime( OGRFeatureH, int, int *, int *, int *,
    00335                                          int *, int *, int *, int * );
    00336
    00337 void   CPL_DLL OGR_F_SetFieldInteger( OGRFeatureH, int, int );
    00338 void   CPL_DLL OGR_F_SetFieldDouble( OGRFeatureH, int, double );
    00339 void   CPL_DLL OGR_F_SetFieldString( OGRFeatureH, int, const char * );
    00340 void   CPL_DLL OGR_F_SetFieldIntegerList( OGRFeatureH, int, int, int * );
    00341 void   CPL_DLL OGR_F_SetFieldDoubleList( OGRFeatureH, int, int, double * );
    00342 void   CPL_DLL OGR_F_SetFieldStringList( OGRFeatureH, int, char ** );
    00343 void   CPL_DLL OGR_F_SetFieldRaw( OGRFeatureH, int, OGRField * );
    00344 void   CPL_DLL OGR_F_SetFieldBinary( OGRFeatureH, int, int, GByte * );
    00345 void   CPL_DLL OGR_F_SetFieldDateTime( OGRFeatureH, int,
    00346                                        int, int, int, int, int, int, int );
    00347
    00348 long   CPL_DLL OGR_F_GetFID( OGRFeatureH );
    00349 OGRErr CPL_DLL OGR_F_SetFID( OGRFeatureH, long );
    00350 void   CPL_DLL OGR_F_DumpReadable( OGRFeatureH, FILE * );
    00351 OGRErr CPL_DLL OGR_F_SetFrom( OGRFeatureH, OGRFeatureH, int );
    00352
    00353 const char CPL_DLL *OGR_F_GetStyleString( OGRFeatureH );
    00354 void   CPL_DLL OGR_F_SetStyleString( OGRFeatureH, const char * );
    00355
    00356 /* -------------------------------------------------------------------- */
    00357 /*      ogrsf_frmts.h                                                   */
    00358 /* -------------------------------------------------------------------- */
    00359
    00360 typedef void *OGRLayerH;
    00361 typedef void *OGRDataSourceH;
    00362 typedef void *OGRSFDriverH;
    00363
    00364 /* OGRLayer */
    00365
    00366 OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter( OGRLayerH );
    00367 void   CPL_DLL OGR_L_SetSpatialFilter( OGRLayerH, OGRGeometryH );
    00368 void   CPL_DLL OGR_L_SetSpatialFilterRect( OGRLayerH,
    00369                                            double, double, double, double );
    00370 OGRErr CPL_DLL OGR_L_SetAttributeFilter( OGRLayerH, const char * );
    00371 void   CPL_DLL OGR_L_ResetReading( OGRLayerH );
    00372 OGRFeatureH CPL_DLL OGR_L_GetNextFeature( OGRLayerH );
    00373 OGRErr CPL_DLL OGR_L_SetNextByIndex( OGRLayerH, long );
    00374 OGRFeatureH CPL_DLL OGR_L_GetFeature( OGRLayerH, long );
    00375 OGRErr CPL_DLL OGR_L_SetFeature( OGRLayerH, OGRFeatureH );
    00376 OGRErr CPL_DLL OGR_L_CreateFeature( OGRLayerH, OGRFeatureH );
    00377 OGRErr CPL_DLL OGR_L_DeleteFeature( OGRLayerH, long );
    00378 OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn( OGRLayerH );
    00379 OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef( OGRLayerH );
    00380 int    CPL_DLL OGR_L_GetFeatureCount( OGRLayerH, int );
    00381 OGRErr CPL_DLL OGR_L_GetExtent( OGRLayerH, OGREnvelope *, int );
    00382 int    CPL_DLL OGR_L_TestCapability( OGRLayerH, const char * );
    00383 OGRErr CPL_DLL OGR_L_CreateField( OGRLayerH, OGRFieldDefnH, int );
    00384 OGRErr CPL_DLL OGR_L_StartTransaction( OGRLayerH );
    00385 OGRErr CPL_DLL OGR_L_CommitTransaction( OGRLayerH );
    00386 OGRErr CPL_DLL OGR_L_RollbackTransaction( OGRLayerH );
    00387 int    CPL_DLL OGR_L_Reference( OGRLayerH );
    00388 int    CPL_DLL OGR_L_Dereference( OGRLayerH );
    00389 int    CPL_DLL OGR_L_GetRefCount( OGRLayerH );
    00390 OGRErr CPL_DLL OGR_L_SyncToDisk( OGRLayerH );
    00391 GIntBig CPL_DLL OGR_L_GetFeaturesRead( OGRLayerH );
    00392 const char CPL_DLL *OGR_L_GetFIDColumn( OGRLayerH );
    00393 const char CPL_DLL *OGR_L_GetGeometryColumn( OGRLayerH );
    00394 /* OGRDataSource */
    00395
    00396 void   CPL_DLL OGR_DS_Destroy( OGRDataSourceH );
    00397 const char CPL_DLL *OGR_DS_GetName( OGRDataSourceH );
    00398 int    CPL_DLL OGR_DS_GetLayerCount( OGRDataSourceH );
    00399 OGRLayerH CPL_DLL OGR_DS_GetLayer( OGRDataSourceH, int );
    00400 OGRLayerH CPL_DLL OGR_DS_GetLayerByName( OGRDataSourceH, const char * );
    00401 OGRErr    CPL_DLL OGR_DS_DeleteLayer( OGRDataSourceH, int );
    00402 OGRSFDriverH CPL_DLL OGR_DS_GetDriver( OGRDataSourceH );
    00403 OGRLayerH CPL_DLL OGR_DS_CreateLayer( OGRDataSourceH, const char *,
    00404                                       OGRSpatialReferenceH, OGRwkbGeometryType,
    00405                                       char ** );
    00406 OGRLayerH CPL_DLL OGR_DS_CopyLayer( OGRDataSourceH, OGRLayerH, const char *,
    00407                                     char ** );
    00408 int    CPL_DLL OGR_DS_TestCapability( OGRDataSourceH, const char * );
    00409 OGRLayerH CPL_DLL OGR_DS_ExecuteSQL( OGRDataSourceH, const char *,
    00410                                      OGRGeometryH, const char * );
    00411 void   CPL_DLL OGR_DS_ReleaseResultSet( OGRDataSourceH, OGRLayerH );
    00412 int    CPL_DLL OGR_DS_Reference( OGRDataSourceH );
    00413 int    CPL_DLL OGR_DS_Dereference( OGRDataSourceH );
    00414 int    CPL_DLL OGR_DS_GetRefCount( OGRDataSourceH );
    00415 int    CPL_DLL OGR_DS_GetSummaryRefCount( OGRDataSourceH );
    00416 OGRErr CPL_DLL OGR_DS_SyncToDisk( OGRDataSourceH );
    00417
    00418 /* OGRSFDriver */
    00419
    00420 const char CPL_DLL *OGR_Dr_GetName( OGRSFDriverH );
    00421 OGRDataSourceH CPL_DLL OGR_Dr_Open( OGRSFDriverH, const char *, int );
    00422 int CPL_DLL OGR_Dr_TestCapability( OGRSFDriverH, const char * );
    00423 OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource( OGRSFDriverH, const char *,
    00424                                                 char ** );
    00425 OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource( OGRSFDriverH,  OGRDataSourceH,
    00426                                               const char *, char ** );
    00427 OGRErr CPL_DLL OGR_Dr_DeleteDataSource( OGRSFDriverH, const char * );
    00428
    00429 /* OGRSFDriverRegistrar */
    00430
    00431 OGRDataSourceH CPL_DLL OGROpen( const char *, int, OGRSFDriverH * );
    00432 OGRDataSourceH CPL_DLL OGROpenShared( const char *, int, OGRSFDriverH * );
    00433 OGRErr  CPL_DLL OGRReleaseDataSource( OGRDataSourceH );
    00434 void    CPL_DLL OGRRegisterDriver( OGRSFDriverH );
    00435 int     CPL_DLL OGRGetDriverCount(void);
    00436 OGRSFDriverH CPL_DLL OGRGetDriver( int );
    00437 OGRSFDriverH CPL_DLL OGRGetDriverByName( const char * );
    00438 int     CPL_DLL OGRGetOpenDSCount(void);
    00439 OGRDataSourceH CPL_DLL OGRGetOpenDS( int iDS );
    00440
    00441
    00442 /* note: this is also declared in ogrsf_frmts.h */
    00443 void CPL_DLL OGRRegisterAll(void);
    00444 void CPL_DLL OGRCleanupAll(void);
    00445
    00446 CPL_C_END
    00447
    00448 #endif /* ndef _OGR_API_H_INCLUDED */
    00449
    00450

Generated for GDAL by 1.4.5.