30 #ifndef OGRAPISPY_H_INCLUDED 31 #define OGRAPISPY_H_INCLUDED 65 #define OGRAPISPY_ENABLED 68 #ifdef OGRAPISPY_ENABLED 72 extern int bOGRAPISpyEnabled;
74 void OGRAPISpyDestroyMutex();
76 int OGRAPISpyOpenTakeSnapshot(
const char* pszName,
int bUpdate);
77 void OGRAPISpyOpen(
const char* pszName,
int bUpdate,
int iSnapshot,
80 void OGRAPISpyPostClose();
81 void OGRAPISpyCreateDataSource(
OGRSFDriverH hDriver,
const char* pszName,
83 void OGRAPISpyDeleteDataSource(
OGRSFDriverH hDriver,
const char* pszName);
87 void OGRAPISpy_DS_GetLayerByName(
OGRDataSourceH hDS,
const char* pszLayerName,
90 const char *pszStatement,
92 const char *pszDialect,
100 char ** papszOptions,
104 void OGRAPISpy_Dataset_StartTransaction(
GDALDatasetH hDS,
int bForce );
105 void OGRAPISpy_Dataset_CommitTransaction(
GDALDatasetH hDS );
106 void OGRAPISpy_Dataset_RollbackTransaction(
GDALDatasetH hDS );
108 void OGRAPISpy_L_GetFeatureCount(
OGRLayerH hLayer,
int bForce );
109 void OGRAPISpy_L_GetExtent(
OGRLayerH hLayer,
int bForce );
110 void OGRAPISpy_L_GetExtentEx(
OGRLayerH hLayer,
int iGeomField,
int bForce );
111 void OGRAPISpy_L_SetAttributeFilter(
OGRLayerH hLayer,
const char* pszFilter );
114 void OGRAPISpy_L_GetNextFeature(
OGRLayerH hLayer );
119 void OGRAPISpy_L_DeleteField(
OGRLayerH hLayer,
int iField );
120 void OGRAPISpy_L_ReorderFields(
OGRLayerH hLayer,
int* panMap );
121 void OGRAPISpy_L_ReorderField(
OGRLayerH hLayer,
int iOldFieldPos,
123 void OGRAPISpy_L_AlterFieldDefn(
OGRLayerH hLayer,
int iField,
128 void OGRAPISpy_L_StartTransaction(
OGRLayerH hLayer );
129 void OGRAPISpy_L_CommitTransaction(
OGRLayerH hLayer );
130 void OGRAPISpy_L_RollbackTransaction(
OGRLayerH hLayer );
131 void OGRAPISpy_L_GetLayerDefn(
OGRLayerH hLayer );
132 void OGRAPISpy_L_FindFieldIndex(
OGRLayerH hLayer,
const char *pszFieldName,
134 void OGRAPISpy_L_GetSpatialRef(
OGRLayerH hLayer );
135 void OGRAPISpy_L_TestCapability(
OGRLayerH hLayer,
const char* pszCap );
136 void OGRAPISpy_L_GetSpatialFilter(
OGRLayerH hLayer );
138 void OGRAPISpy_L_SetSpatialFilterEx(
OGRLayerH hLayer,
int iGeomField,
140 void OGRAPISpy_L_SetSpatialFilterRect(
OGRLayerH hLayer,
141 double dfMinX,
double dfMinY,
142 double dfMaxX,
double dfMaxY);
143 void OGRAPISpy_L_SetSpatialFilterRectEx(
OGRLayerH hLayer,
int iGeomField,
144 double dfMinX,
double dfMinY,
145 double dfMaxX,
double dfMaxY);
146 void OGRAPISpy_L_ResetReading(
OGRLayerH hLayer );
147 void OGRAPISpy_L_SyncToDisk(
OGRLayerH hLayer );
149 void OGRAPISpy_L_GetFIDColumn(
OGRLayerH hLayer );
150 void OGRAPISpy_L_GetGeometryColumn(
OGRLayerH hLayer );
151 void OGRAPISpy_L_GetName(
OGRLayerH hLayer );
152 void OGRAPISpy_L_GetGeomType(
OGRLayerH hLayer );
153 void OGRAPISpy_L_SetIgnoredFields(
OGRLayerH hLayer,
154 const char** papszIgnoredFields );
160 void OGRAPISpy_FD_GetFieldIndex(
OGRFeatureDefnH hDefn,
const char* pszFieldName);
162 void OGRAPISpy_Fld_GetXXXX(
OGRFieldDefnH hField,
const char* pszOp);
165 void OGRAPISpy_FD_GetGeomFieldDefn(
OGRFeatureDefnH hDefn,
int iGeomField,
167 void OGRAPISpy_FD_GetGeomFieldIndex(
OGRFeatureDefnH hDefn,
const char* pszFieldName);
void * OGRSFDriverH
Opaque type for a OGR driver (OGRSFDriver)
Definition: ogr_api.h:512
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition: ogr_api.h:508
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:337
void * GDALDatasetH
Opaque type used for the C bindings of the C++ GDALDataset class.
Definition: gdal.h:255
void * OGRFieldDefnH
Opaque type for a field definition (OGRFieldDefn)
Definition: ogr_api.h:297
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn)
Definition: ogr_api.h:306
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:317
Public (C callable) GDAL entry points.
void * OGRDataSourceH
Opaque type for a OGR datasource (OGRDataSource)
Definition: ogr_api.h:510
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:74
void * OGRGeometryH
Opaque type for a geometry.
Definition: ogr_api.h:60
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition: ogr_api.h:301
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:339
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:248
void * OGRFeatureDefnH
Opaque type for a feature definition (OGRFeatureDefn)
Definition: ogr_api.h:299