- 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 13332 2007-12-12 17:32:26Z dmorissette $
    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 #ifndef OGR_API_H_INCLUDED
    00031 #define OGR_API_H_INCLUDED
    00032
    00042 #include "ogr_core.h"
    00043
    00044 CPL_C_START
    00045
    00046 /* -------------------------------------------------------------------- */
    00047 /*      Geometry related functions (ogr_geometry.h)                     */
    00048 /* -------------------------------------------------------------------- */
    00049 typedef void *OGRGeometryH;
    00050
    00051 #ifndef _DEFINED_OGRSpatialReferenceH
    00052 #define _DEFINED_OGRSpatialReferenceH
    00053
    00054 typedef void *OGRSpatialReferenceH;
    00055 typedef void *OGRCoordinateTransformationH;
    00056
    00057 #endif
    00058
    00059 struct _CPLXMLNode;
    00060
    00061 /* From base OGRGeometry class */
    00062
    00063 OGRErr CPL_DLL OGR_G_CreateFromWkb( unsigned char *, OGRSpatialReferenceH,
    00064                                     OGRGeometryH *, int );
    00065 OGRErr CPL_DLL OGR_G_CreateFromWkt( char **, OGRSpatialReferenceH,
    00066                                     OGRGeometryH * );
    00067 void   CPL_DLL OGR_G_DestroyGeometry( OGRGeometryH );
    00068 OGRGeometryH CPL_DLL OGR_G_CreateGeometry( OGRwkbGeometryType );
    00069
    00070 int    CPL_DLL OGR_G_GetDimension( OGRGeometryH );
    00071 int    CPL_DLL OGR_G_GetCoordinateDimension( OGRGeometryH );
    00072 void   CPL_DLL OGR_G_SetCoordinateDimension( OGRGeometryH, int );
    00073 OGRGeometryH CPL_DLL OGR_G_Clone( OGRGeometryH );
    00074 void   CPL_DLL OGR_G_GetEnvelope( OGRGeometryH, OGREnvelope * );
    00075 OGRErr CPL_DLL OGR_G_ImportFromWkb( OGRGeometryH, unsigned char *, int );
    00076 OGRErr CPL_DLL OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder, unsigned char*);
    00077 int    CPL_DLL OGR_G_WkbSize( OGRGeometryH hGeom );
    00078 OGRErr CPL_DLL OGR_G_ImportFromWkt( OGRGeometryH, char ** );
    00079 OGRErr CPL_DLL OGR_G_ExportToWkt( OGRGeometryH, char ** );
    00080 OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType( OGRGeometryH );
    00081 const char CPL_DLL *OGR_G_GetGeometryName( OGRGeometryH );
    00082 void   CPL_DLL OGR_G_DumpReadable( OGRGeometryH, FILE *, const char * );
    00083 void   CPL_DLL OGR_G_FlattenTo2D( OGRGeometryH );
    00084 void   CPL_DLL OGR_G_CloseRings( OGRGeometryH );
    00085
    00086 OGRGeometryH CPL_DLL OGR_G_CreateFromGML( const char * );
    00087 char   CPL_DLL *OGR_G_ExportToGML( OGRGeometryH );
    00088
    00089 #if defined(_CPL_MINIXML_H_INCLUDED)
    00090 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree( const CPLXMLNode * );
    00091 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree( OGRGeometryH );
    00092 CPLXMLNode CPL_DLL *OGR_G_ExportEnvelopeToGMLTree( OGRGeometryH );
    00093 #endif
    00094
    00095 char   CPL_DLL *OGR_G_ExportToKML( OGRGeometryH, const char* pszAltitudeMode );
    00096
    00097 char   CPL_DLL *OGR_G_ExportToJson( OGRGeometryH );
    00098 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromJson( const char* );
    00099
    00100 void   CPL_DLL OGR_G_AssignSpatialReference( OGRGeometryH,
    00101                                              OGRSpatialReferenceH );
    00102 OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference( OGRGeometryH );
    00103 OGRErr CPL_DLL OGR_G_Transform( OGRGeometryH, OGRCoordinateTransformationH );
    00104 OGRErr CPL_DLL OGR_G_TransformTo( OGRGeometryH, OGRSpatialReferenceH );
    00105
    00106 int    CPL_DLL OGR_G_Intersects( OGRGeometryH, OGRGeometryH );
    00107 int    CPL_DLL OGR_G_Equals( OGRGeometryH, OGRGeometryH );
    00108 int    CPL_DLL OGR_G_Disjoint( OGRGeometryH, OGRGeometryH );
    00109 int    CPL_DLL OGR_G_Touches( OGRGeometryH, OGRGeometryH );
    00110 int    CPL_DLL OGR_G_Crosses( OGRGeometryH, OGRGeometryH );
    00111 int    CPL_DLL OGR_G_Within( OGRGeometryH, OGRGeometryH );
    00112 int    CPL_DLL OGR_G_Contains( OGRGeometryH, OGRGeometryH );
    00113 int    CPL_DLL OGR_G_Overlaps( OGRGeometryH, OGRGeometryH );
    00114
    00115 OGRGeometryH CPL_DLL OGR_G_GetBoundary( OGRGeometryH );
    00116 OGRGeometryH CPL_DLL OGR_G_ConvexHull( OGRGeometryH );
    00117 OGRGeometryH CPL_DLL OGR_G_Buffer( OGRGeometryH, double, int );
    00118 OGRGeometryH CPL_DLL OGR_G_Intersection( OGRGeometryH, OGRGeometryH );
    00119 OGRGeometryH CPL_DLL OGR_G_Union( OGRGeometryH, OGRGeometryH );
    00120 OGRGeometryH CPL_DLL OGR_G_Difference( OGRGeometryH, OGRGeometryH );
    00121 OGRGeometryH CPL_DLL OGR_G_SymmetricDifference( OGRGeometryH, OGRGeometryH );
    00122 double CPL_DLL OGR_G_Distance( OGRGeometryH, OGRGeometryH );
    00123
    00124 double CPL_DLL OGR_G_GetArea( OGRGeometryH );
    00125 int    CPL_DLL OGR_G_Centroid( OGRGeometryH, OGRGeometryH );
    00126
    00127 void   CPL_DLL OGR_G_Empty( OGRGeometryH );
    00128 int    CPL_DLL OGR_G_IsEmpty (OGRGeometryH );
    00129 int    CPL_DLL OGR_G_IsValid (OGRGeometryH );
    00130 int    CPL_DLL OGR_G_IsSimple (OGRGeometryH );
    00131 int    CPL_DLL OGR_G_IsRing (OGRGeometryH );
    00132
    00133 /* backward compatibility */
    00134 int    CPL_DLL OGR_G_Intersect( OGRGeometryH, OGRGeometryH );
    00135 int    CPL_DLL OGR_G_Equal( OGRGeometryH, OGRGeometryH );
    00136
    00137 /* Methods for getting/setting vertices in points, line strings and rings */
    00138 int    CPL_DLL OGR_G_GetPointCount( OGRGeometryH );
    00139 double CPL_DLL OGR_G_GetX( OGRGeometryH, int );
    00140 double CPL_DLL OGR_G_GetY( OGRGeometryH, int );
    00141 double CPL_DLL OGR_G_GetZ( OGRGeometryH, int );
    00142 void   CPL_DLL OGR_G_GetPoint( OGRGeometryH, int iPoint,
    00143                                double *, double *, double * );
    00144 void   CPL_DLL OGR_G_SetPoint( OGRGeometryH, int iPoint,
    00145                                double, double, double );
    00146 void   CPL_DLL OGR_G_SetPoint_2D( OGRGeometryH, int iPoint,
    00147                                   double, double );
    00148 void   CPL_DLL OGR_G_AddPoint( OGRGeometryH, double, double, double );
    00149 void   CPL_DLL OGR_G_AddPoint_2D( OGRGeometryH, double, double );
    00150
    00151 /* Methods for getting/setting rings and members collections */
    00152
    00153 int    CPL_DLL OGR_G_GetGeometryCount( OGRGeometryH );
    00154 OGRGeometryH CPL_DLL OGR_G_GetGeometryRef( OGRGeometryH, int );
    00155 OGRErr CPL_DLL OGR_G_AddGeometry( OGRGeometryH, OGRGeometryH );
    00156 OGRErr CPL_DLL OGR_G_AddGeometryDirectly( OGRGeometryH, OGRGeometryH );
    00157 OGRErr CPL_DLL OGR_G_RemoveGeometry( OGRGeometryH, int, int );
    00158
    00159 OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges( OGRGeometryH hLinesAsCollection,
    00160                                        int bBestEffort,
    00161                                        int bAutoClose,
    00162                                        double dfTolerance,
    00163                                        OGRErr * peErr );
    00164
    00165 OGRErr CPL_DLL OGRSetGenerate_DB2_V72_BYTE_ORDER(
    00166     int bGenerate_DB2_V72_BYTE_ORDER );
    00167
    00168 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(void);
    00169
    00170 /* -------------------------------------------------------------------- */
    00171 /*      Feature related (ogr_feature.h)                                 */
    00172 /* -------------------------------------------------------------------- */
    00173
    00174 typedef void *OGRFieldDefnH;
    00175 typedef void *OGRFeatureDefnH;
    00176 typedef void *OGRFeatureH;
    00177
    00178 /* OGRFieldDefn */
    00179
    00180 OGRFieldDefnH CPL_DLL OGR_Fld_Create( const char *, OGRFieldType );
    00181 void   CPL_DLL OGR_Fld_Destroy( OGRFieldDefnH );
    00182
    00183 void   CPL_DLL OGR_Fld_SetName( OGRFieldDefnH, const char * );
    00184 const char CPL_DLL *OGR_Fld_GetNameRef( OGRFieldDefnH );
    00185 OGRFieldType CPL_DLL OGR_Fld_GetType( OGRFieldDefnH );
    00186 void   CPL_DLL OGR_Fld_SetType( OGRFieldDefnH, OGRFieldType );
    00187 OGRJustification CPL_DLL OGR_Fld_GetJustify( OGRFieldDefnH );
    00188 void   CPL_DLL OGR_Fld_SetJustify( OGRFieldDefnH, OGRJustification );
    00189 int    CPL_DLL OGR_Fld_GetWidth( OGRFieldDefnH );
    00190 void   CPL_DLL OGR_Fld_SetWidth( OGRFieldDefnH, int );
    00191 int    CPL_DLL OGR_Fld_GetPrecision( OGRFieldDefnH );
    00192 void   CPL_DLL OGR_Fld_SetPrecision( OGRFieldDefnH, int );
    00193 void   CPL_DLL OGR_Fld_Set( OGRFieldDefnH, const char *, OGRFieldType,
    00194                             int, int, OGRJustification );
    00195
    00196 const char CPL_DLL *OGR_GetFieldTypeName( OGRFieldType );
    00197
    00198 /* OGRFeatureDefn */
    00199
    00200 OGRFeatureDefnH CPL_DLL OGR_FD_Create( const char * );
    00201 void   CPL_DLL OGR_FD_Destroy( OGRFeatureDefnH );
    00202 void   CPL_DLL OGR_FD_Release( OGRFeatureDefnH );
    00203 const char CPL_DLL *OGR_FD_GetName( OGRFeatureDefnH );
    00204 int    CPL_DLL OGR_FD_GetFieldCount( OGRFeatureDefnH );
    00205 OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn( OGRFeatureDefnH, int );
    00206 int    CPL_DLL OGR_FD_GetFieldIndex( OGRFeatureDefnH, const char * );
    00207 void   CPL_DLL OGR_FD_AddFieldDefn( OGRFeatureDefnH, OGRFieldDefnH );
    00208 OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType( OGRFeatureDefnH );
    00209 void   CPL_DLL OGR_FD_SetGeomType( OGRFeatureDefnH, OGRwkbGeometryType );
    00210 int    CPL_DLL OGR_FD_Reference( OGRFeatureDefnH );
    00211 int    CPL_DLL OGR_FD_Dereference( OGRFeatureDefnH );
    00212 int    CPL_DLL OGR_FD_GetReferenceCount( OGRFeatureDefnH );
    00213
    00214 /* OGRFeature */
    00215
    00216 OGRFeatureH CPL_DLL OGR_F_Create( OGRFeatureDefnH );
    00217 void   CPL_DLL OGR_F_Destroy( OGRFeatureH );
    00218 OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef( OGRFeatureH );
    00219
    00220 OGRErr CPL_DLL OGR_F_SetGeometryDirectly( OGRFeatureH, OGRGeometryH );
    00221 OGRErr CPL_DLL OGR_F_SetGeometry( OGRFeatureH, OGRGeometryH );
    00222 OGRGeometryH CPL_DLL OGR_F_GetGeometryRef( OGRFeatureH );
    00223 OGRFeatureH CPL_DLL OGR_F_Clone( OGRFeatureH );
    00224 int    CPL_DLL OGR_F_Equal( OGRFeatureH, OGRFeatureH );
    00225
    00226 int    CPL_DLL OGR_F_GetFieldCount( OGRFeatureH );
    00227 OGRFieldDefnH CPL_DLL OGR_F_GetFieldDefnRef( OGRFeatureH, int );
    00228 int    CPL_DLL OGR_F_GetFieldIndex( OGRFeatureH, const char * );
    00229
    00230 int    CPL_DLL OGR_F_IsFieldSet( OGRFeatureH, int );
    00231 void   CPL_DLL OGR_F_UnsetField( OGRFeatureH, int );
    00232 OGRField CPL_DLL *OGR_F_GetRawFieldRef( OGRFeatureH, int );
    00233
    00234 int    CPL_DLL OGR_F_GetFieldAsInteger( OGRFeatureH, int );
    00235 double CPL_DLL OGR_F_GetFieldAsDouble( OGRFeatureH, int );
    00236 const char CPL_DLL *OGR_F_GetFieldAsString( OGRFeatureH, int );
    00237 const int CPL_DLL *OGR_F_GetFieldAsIntegerList( OGRFeatureH, int, int * );
    00238 const double CPL_DLL *OGR_F_GetFieldAsDoubleList( OGRFeatureH, int, int * );
    00239 char  CPL_DLL **OGR_F_GetFieldAsStringList( OGRFeatureH, int );
    00240 GByte CPL_DLL *OGR_F_GetFieldAsBinary( OGRFeatureH, int, int * );
    00241 int   CPL_DLL  OGR_F_GetFieldAsDateTime( OGRFeatureH, int, int *, int *, int *,
    00242                                          int *, int *, int *, int * );
    00243
    00244 void   CPL_DLL OGR_F_SetFieldInteger( OGRFeatureH, int, int );
    00245 void   CPL_DLL OGR_F_SetFieldDouble( OGRFeatureH, int, double );
    00246 void   CPL_DLL OGR_F_SetFieldString( OGRFeatureH, int, const char * );
    00247 void   CPL_DLL OGR_F_SetFieldIntegerList( OGRFeatureH, int, int, int * );
    00248 void   CPL_DLL OGR_F_SetFieldDoubleList( OGRFeatureH, int, int, double * );
    00249 void   CPL_DLL OGR_F_SetFieldStringList( OGRFeatureH, int, char ** );
    00250 void   CPL_DLL OGR_F_SetFieldRaw( OGRFeatureH, int, OGRField * );
    00251 void   CPL_DLL OGR_F_SetFieldBinary( OGRFeatureH, int, int, GByte * );
    00252 void   CPL_DLL OGR_F_SetFieldDateTime( OGRFeatureH, int,
    00253                                        int, int, int, int, int, int, int );
    00254
    00255 long   CPL_DLL OGR_F_GetFID( OGRFeatureH );
    00256 OGRErr CPL_DLL OGR_F_SetFID( OGRFeatureH, long );
    00257 void   CPL_DLL OGR_F_DumpReadable( OGRFeatureH, FILE * );
    00258 OGRErr CPL_DLL OGR_F_SetFrom( OGRFeatureH, OGRFeatureH, int );
    00259
    00260 const char CPL_DLL *OGR_F_GetStyleString( OGRFeatureH );
    00261 void   CPL_DLL OGR_F_SetStyleString( OGRFeatureH, const char * );
    00262 void   CPL_DLL OGR_F_SetStyleStringDirectly( OGRFeatureH, char * );
    00263
    00264 /* -------------------------------------------------------------------- */
    00265 /*      ogrsf_frmts.h                                                   */
    00266 /* -------------------------------------------------------------------- */
    00267
    00268 typedef void *OGRLayerH;
    00269 typedef void *OGRDataSourceH;
    00270 typedef void *OGRSFDriverH;
    00271
    00272 /* OGRLayer */
    00273
    00274 OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter( OGRLayerH );
    00275 void   CPL_DLL OGR_L_SetSpatialFilter( OGRLayerH, OGRGeometryH );
    00276 void   CPL_DLL OGR_L_SetSpatialFilterRect( OGRLayerH,
    00277                                            double, double, double, double );
    00278 OGRErr CPL_DLL OGR_L_SetAttributeFilter( OGRLayerH, const char * );
    00279 void   CPL_DLL OGR_L_ResetReading( OGRLayerH );
    00280 OGRFeatureH CPL_DLL OGR_L_GetNextFeature( OGRLayerH );
    00281 OGRErr CPL_DLL OGR_L_SetNextByIndex( OGRLayerH, long );
    00282 OGRFeatureH CPL_DLL OGR_L_GetFeature( OGRLayerH, long );
    00283 OGRErr CPL_DLL OGR_L_SetFeature( OGRLayerH, OGRFeatureH );
    00284 OGRErr CPL_DLL OGR_L_CreateFeature( OGRLayerH, OGRFeatureH );
    00285 OGRErr CPL_DLL OGR_L_DeleteFeature( OGRLayerH, long );
    00286 OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn( OGRLayerH );
    00287 OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef( OGRLayerH );
    00288 int    CPL_DLL OGR_L_GetFeatureCount( OGRLayerH, int );
    00289 OGRErr CPL_DLL OGR_L_GetExtent( OGRLayerH, OGREnvelope *, int );
    00290 int    CPL_DLL OGR_L_TestCapability( OGRLayerH, const char * );
    00291 OGRErr CPL_DLL OGR_L_CreateField( OGRLayerH, OGRFieldDefnH, int );
    00292 OGRErr CPL_DLL OGR_L_StartTransaction( OGRLayerH );
    00293 OGRErr CPL_DLL OGR_L_CommitTransaction( OGRLayerH );
    00294 OGRErr CPL_DLL OGR_L_RollbackTransaction( OGRLayerH );
    00295 int    CPL_DLL OGR_L_Reference( OGRLayerH );
    00296 int    CPL_DLL OGR_L_Dereference( OGRLayerH );
    00297 int    CPL_DLL OGR_L_GetRefCount( OGRLayerH );
    00298 OGRErr CPL_DLL OGR_L_SyncToDisk( OGRLayerH );
    00299 GIntBig CPL_DLL OGR_L_GetFeaturesRead( OGRLayerH );
    00300 const char CPL_DLL *OGR_L_GetFIDColumn( OGRLayerH );
    00301 const char CPL_DLL *OGR_L_GetGeometryColumn( OGRLayerH );
    00302 /* OGRDataSource */
    00303
    00304 void   CPL_DLL OGR_DS_Destroy( OGRDataSourceH );
    00305 const char CPL_DLL *OGR_DS_GetName( OGRDataSourceH );
    00306 int    CPL_DLL OGR_DS_GetLayerCount( OGRDataSourceH );
    00307 OGRLayerH CPL_DLL OGR_DS_GetLayer( OGRDataSourceH, int );
    00308 OGRLayerH CPL_DLL OGR_DS_GetLayerByName( OGRDataSourceH, const char * );
    00309 OGRErr    CPL_DLL OGR_DS_DeleteLayer( OGRDataSourceH, int );
    00310 OGRSFDriverH CPL_DLL OGR_DS_GetDriver( OGRDataSourceH );
    00311 OGRLayerH CPL_DLL OGR_DS_CreateLayer( OGRDataSourceH, const char *,
    00312                                       OGRSpatialReferenceH, OGRwkbGeometryType,
    00313                                       char ** );
    00314 OGRLayerH CPL_DLL OGR_DS_CopyLayer( OGRDataSourceH, OGRLayerH, const char *,
    00315                                     char ** );
    00316 int    CPL_DLL OGR_DS_TestCapability( OGRDataSourceH, const char * );
    00317 OGRLayerH CPL_DLL OGR_DS_ExecuteSQL( OGRDataSourceH, const char *,
    00318                                      OGRGeometryH, const char * );
    00319 void   CPL_DLL OGR_DS_ReleaseResultSet( OGRDataSourceH, OGRLayerH );
    00320 int    CPL_DLL OGR_DS_Reference( OGRDataSourceH );
    00321 int    CPL_DLL OGR_DS_Dereference( OGRDataSourceH );
    00322 int    CPL_DLL OGR_DS_GetRefCount( OGRDataSourceH );
    00323 int    CPL_DLL OGR_DS_GetSummaryRefCount( OGRDataSourceH );
    00324 OGRErr CPL_DLL OGR_DS_SyncToDisk( OGRDataSourceH );
    00325
    00326 /* OGRSFDriver */
    00327
    00328 const char CPL_DLL *OGR_Dr_GetName( OGRSFDriverH );
    00329 OGRDataSourceH CPL_DLL OGR_Dr_Open( OGRSFDriverH, const char *, int );
    00330 int CPL_DLL OGR_Dr_TestCapability( OGRSFDriverH, const char * );
    00331 OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource( OGRSFDriverH, const char *,
    00332                                                 char ** );
    00333 OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource( OGRSFDriverH,  OGRDataSourceH,
    00334                                               const char *, char ** );
    00335 OGRErr CPL_DLL OGR_Dr_DeleteDataSource( OGRSFDriverH, const char * );
    00336
    00337 /* OGRSFDriverRegistrar */
    00338
    00339 OGRDataSourceH CPL_DLL OGROpen( const char *, int, OGRSFDriverH * );
    00340 OGRDataSourceH CPL_DLL OGROpenShared( const char *, int, OGRSFDriverH * );
    00341 OGRErr  CPL_DLL OGRReleaseDataSource( OGRDataSourceH );
    00342 void    CPL_DLL OGRRegisterDriver( OGRSFDriverH );
    00343 int     CPL_DLL OGRGetDriverCount(void);
    00344 OGRSFDriverH CPL_DLL OGRGetDriver( int );
    00345 OGRSFDriverH CPL_DLL OGRGetDriverByName( const char * );
    00346 int     CPL_DLL OGRGetOpenDSCount(void);
    00347 OGRDataSourceH CPL_DLL OGRGetOpenDS( int iDS );
    00348
    00349
    00350 /* note: this is also declared in ogrsf_frmts.h */
    00351 void CPL_DLL OGRRegisterAll(void);
    00352 void CPL_DLL OGRCleanupAll(void);
    00353
    00354 /* -------------------------------------------------------------------- */
    00355 /*      ogrsf_featurestyle.h                                            */
    00356 /* -------------------------------------------------------------------- */
    00357
    00358 typedef void *OGRStyleMgrH;
    00359 typedef void *OGRStyleToolH;
    00360
    00361
    00362 /* OGRStyleMgr */
    00363
    00364 OGRStyleMgrH CPL_DLL OGR_SM_Create(void *hStyleTable);
    00365 void    CPL_DLL OGR_SM_Destroy(OGRStyleMgrH hSM);
    00366
    00367 const char CPL_DLL *OGR_SM_InitFromFeature(OGRStyleMgrH hSM,
    00368                                            OGRFeatureH hFeat);
    00369 int     CPL_DLL OGR_SM_InitStyleString(OGRStyleMgrH hSM,
    00370                                        const char *pszStyleString);
    00371 int     CPL_DLL OGR_SM_GetPartCount(OGRStyleMgrH hSM,
    00372                                     const char *pszStyleString);
    00373 OGRStyleToolH CPL_DLL OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId,
    00374                                      const char *pszStyleString);
    00375 int     CPL_DLL OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST);
    00376
    00377
    00378 /* OGRStyleTool */
    00379
    00380 OGRStyleToolH CPL_DLL OGR_ST_Create(OGRSTClassId eClassId);
    00381 void    CPL_DLL OGR_ST_Destroy(OGRStyleToolH hST);
    00382
    00383 OGRSTClassId CPL_DLL OGR_ST_GetType(OGRStyleToolH hST);
    00384
    00385 OGRSTUnitId CPL_DLL OGR_ST_GetUnit(OGRStyleToolH hST);
    00386 void    CPL_DLL OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit,
    00387                                double dfGroundPaperScale);
    00388
    00389 const char CPL_DLL *OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull);
    00390 int     CPL_DLL OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull);
    00391 double  CPL_DLL OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull);
    00392 void    CPL_DLL OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue);
    00393 void    CPL_DLL OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue);
    00394 void    CPL_DLL OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue);
    00395 const char CPL_DLL *OGR_ST_GetStyleString(OGRStyleToolH hST);
    00396
    00397 int CPL_DLL OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor,
    00398                                     int *pnRed, int *pnGreen, int *pnBlue,
    00399                                     int *pnAlpha);
    00400
    00401 CPL_C_END
    00402
    00403 #endif /* ndef OGR_API_H_INCLUDED */

Generated for GDAL by 1.5.1.