30 #ifndef OGRAPISPY_H_INCLUDED
31 #define OGRAPISPY_H_INCLUDED
65 #define OGRAPISPY_ENABLED
68 #ifdef OGRAPISPY_ENABLED
72 extern int bOGRAPISpyEnabled;
74 int OGRAPISpyOpenTakeSnapshot(
const char* pszName,
int bUpdate);
75 void OGRAPISpyOpen(
const char* pszName,
int bUpdate,
int iSnapshot,
78 void OGRAPISpyPostClose();
79 void OGRAPISpyCreateDataSource(
OGRSFDriverH hDriver,
const char* pszName,
81 void OGRAPISpyDeleteDataSource(
OGRSFDriverH hDriver,
const char* pszName);
85 void OGRAPISpy_DS_GetLayerByName(
OGRDataSourceH hDS,
const char* pszLayerName,
88 const char *pszStatement,
90 const char *pszDialect,
102 void OGRAPISpy_Dataset_StartTransaction( GDALDatasetH hDS,
int bForce );
103 void OGRAPISpy_Dataset_CommitTransaction( GDALDatasetH hDS );
104 void OGRAPISpy_Dataset_RollbackTransaction( GDALDatasetH hDS );
106 void OGRAPISpy_L_GetFeatureCount(
OGRLayerH hLayer,
int bForce );
107 void OGRAPISpy_L_GetExtent(
OGRLayerH hLayer,
int bForce );
108 void OGRAPISpy_L_GetExtentEx(
OGRLayerH hLayer,
int iGeomField,
int bForce );
109 void OGRAPISpy_L_SetAttributeFilter(
OGRLayerH hLayer,
const char* pszFilter );
112 void OGRAPISpy_L_GetNextFeature(
OGRLayerH hLayer );
117 void OGRAPISpy_L_DeleteField(
OGRLayerH hLayer,
int iField );
118 void OGRAPISpy_L_ReorderFields(
OGRLayerH hLayer,
int* panMap );
119 void OGRAPISpy_L_ReorderField(
OGRLayerH hLayer,
int iOldFieldPos,
121 void OGRAPISpy_L_AlterFieldDefn(
OGRLayerH hLayer,
int iField,
126 void OGRAPISpy_L_StartTransaction(
OGRLayerH hLayer );
127 void OGRAPISpy_L_CommitTransaction(
OGRLayerH hLayer );
128 void OGRAPISpy_L_RollbackTransaction(
OGRLayerH hLayer );
129 void OGRAPISpy_L_GetLayerDefn(
OGRLayerH hLayer );
130 void OGRAPISpy_L_FindFieldIndex(
OGRLayerH hLayer,
const char *pszFieldName,
132 void OGRAPISpy_L_GetSpatialRef(
OGRLayerH hLayer );
133 void OGRAPISpy_L_TestCapability(
OGRLayerH hLayer,
const char* pszCap );
134 void OGRAPISpy_L_GetSpatialFilter(
OGRLayerH hLayer );
136 void OGRAPISpy_L_SetSpatialFilterEx(
OGRLayerH hLayer,
int iGeomField,
138 void OGRAPISpy_L_SetSpatialFilterRect(
OGRLayerH hLayer,
139 double dfMinX,
double dfMinY,
140 double dfMaxX,
double dfMaxY);
141 void OGRAPISpy_L_SetSpatialFilterRectEx(
OGRLayerH hLayer,
int iGeomField,
142 double dfMinX,
double dfMinY,
143 double dfMaxX,
double dfMaxY);
144 void OGRAPISpy_L_ResetReading(
OGRLayerH hLayer );
145 void OGRAPISpy_L_SyncToDisk(
OGRLayerH hLayer );
147 void OGRAPISpy_L_GetFIDColumn(
OGRLayerH hLayer );
148 void OGRAPISpy_L_GetGeometryColumn(
OGRLayerH hLayer );
149 void OGRAPISpy_L_GetName(
OGRLayerH hLayer );
150 void OGRAPISpy_L_GetGeomType(
OGRLayerH hLayer );
151 void OGRAPISpy_L_SetIgnoredFields(
OGRLayerH hLayer,
152 const char** papszIgnoredFields );
158 void OGRAPISpy_FD_GetFieldIndex(
OGRFeatureDefnH hDefn,
const char* pszFieldName);
160 void OGRAPISpy_Fld_GetXXXX(
OGRFieldDefnH hField,
const char* pszOp);
163 void OGRAPISpy_FD_GetGeomFieldDefn(
OGRFeatureDefnH hDefn,
int iGeomField,
165 void OGRAPISpy_FD_GetGeomFieldIndex(
OGRFeatureDefnH hDefn,
const char* pszFieldName);
void * OGRSFDriverH
Definition: ogr_api.h:501
void * OGRLayerH
Definition: ogr_api.h:497
#define CPL_C_START
Definition: cpl_port.h:352
void * OGRFieldDefnH
Definition: ogr_api.h:287
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Definition: ogr_api.h:296
OGRwkbGeometryType
Definition: ogr_core.h:312
void * OGRDataSourceH
Definition: ogr_api.h:499
void * OGRSpatialReferenceH
Definition: ogr_api.h:69
void * OGRGeometryH
Definition: ogr_api.h:56
void * OGRFeatureH
Definition: ogr_api.h:291
#define CPL_C_END
Definition: cpl_port.h:354
long long GIntBig
Definition: cpl_port.h:250
void * OGRFeatureDefnH
Definition: ogr_api.h:289