Go to the documentation of this file.
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);
@ wkbTINM
Definition: ogr_core.h:373
@ wkbSurfaceM
Definition: ogr_core.h:371
@ wkbPointZM
Definition: ogr_core.h:376
@ wkbCurvePolygonZM
Definition: ogr_core.h:385
@ OFTWideString
Definition: ogr_core.h:592
int GetFieldAsInteger(int i)
Fetch field value as integer.
Definition: ogrfeature.cpp:1661
@ wkbMultiCurveZM
Definition: ogr_core.h:386
@ wkbMultiLineStringZM
Definition: ogr_core.h:380
@ OFTBinary
Definition: ogr_core.h:594
@ wkbPoint
Definition: ogr_core.h:316
virtual const char * GetStyleString()
Fetch style string for this feature.
Definition: ogrfeature.cpp:5907
@ wkbCurvePolygonZ
Definition: ogr_core.h:349
@ wkbMultiSurfaceZM
Definition: ogr_core.h:387
@ wkbTriangleZ
Definition: ogr_core.h:356
@ wkbCompoundCurveZM
Definition: ogr_core.h:384
@ wkbMultiSurfaceM
Definition: ogr_core.h:369
@ wkbMultiPolygon
Definition: ogr_core.h:324
int CPLCopyFile(const char *pszNewPath, const char *pszOldPath)
Definition: cpl_conv.cpp:2568
@ wkbMultiPoint25D
Definition: ogr_core.h:397
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:97
Definition: ogr_spatialref.h:132
@ wkbCompoundCurve
Definition: ogr_core.h:330
@ wkbPolygon25D
Definition: ogr_core.h:396
@ OFTWideStringList
Definition: ogr_core.h:593
@ wkbPolygonZM
Definition: ogr_core.h:378
int GetFieldCount() const
Fetch number of fields on this feature. This will always be the same as the field count for the OGRFe...
Definition: ogr_feature.h:326
@ OFTDateTime
Definition: ogr_core.h:597
@ wkbPolygonM
Definition: ogr_core.h:360
Definition: ogr_geometry.h:118
@ wkbTriangleM
Definition: ogr_core.h:374
void * OGRSFDriverH
Definition: ogr_api.h:501
@ wkbCircularString
Definition: ogr_core.h:328
Definition: ogrsf_frmts.h:68
Convenient string class based on std::string.
Definition: cpl_string.h:338
@ wkbMultiPolygonZM
Definition: ogr_core.h:381
int GetPrecision() const
Get the formatting precision for this field. This should normally be zero for fields of types other t...
Definition: ogr_feature.h:100
@ wkbCurveM
Definition: ogr_core.h:370
@ wkbPolyhedralSurfaceZM
Definition: ogr_core.h:390
@ wkbPoint25D
Definition: ogr_core.h:394
@ wkbSurfaceZM
Definition: ogr_core.h:389
@ wkbCircularStringZM
Definition: ogr_core.h:383
void * OGRFeatureH
Definition: ogr_api.h:291
#define CPL_FRMT_GIB
Definition: cpl_port.h:326
#define EQUAL(a, b)
Definition: cpl_port.h:622
@ wkbCircularStringZ
Definition: ogr_core.h:347
@ wkbCurve
Definition: ogr_core.h:336
void * OGRFeatureDefnH
Definition: ogr_api.h:289
virtual OGRFeatureDefn * GetLayerDefn()=0
Fetch the schema information for this layer.
@ wkbMultiPointZM
Definition: ogr_core.h:379
@ wkbTINZM
Definition: ogr_core.h:391
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Definition: ogr_api.h:296
@ wkbLineStringZM
Definition: ogr_core.h:377
#define CPL_C_START
Definition: cpl_port.h:352
const char * GetDefault() const
Get default field value.
Definition: ogrfielddefn.cpp:518
void * OGRSpatialReferenceH
Definition: ogr_api.h:69
OGRFieldDefn * GetFieldDefnRef(int iField) const
Fetch definition for this field.
Definition: ogr_feature.h:328
@ wkbCurvePolygon
Definition: ogr_core.h:331
@ wkbLineStringM
Definition: ogr_core.h:359
@ OFTString
Definition: ogr_core.h:590
int GetGeomFieldCount() const
Fetch number of geometry fields on this feature. This will always be the same as the geometry field c...
Definition: ogr_feature.h:310
@ wkbMultiPolygon25D
Definition: ogr_core.h:399
@ wkbCircularStringM
Definition: ogr_core.h:365
@ OFTIntegerList
Definition: ogr_core.h:587
@ wkbMultiSurface
Definition: ogr_core.h:335
@ wkbPolyhedralSurface
Definition: ogr_core.h:338
@ wkbCurvePolygonM
Definition: ogr_core.h:367
#define CPL_C_END
Definition: cpl_port.h:354
@ wkbMultiPointM
Definition: ogr_core.h:361
@ wkbGeometryCollectionM
Definition: ogr_core.h:364
void * OGRDataSourceH
Definition: ogr_api.h:499
Definition: ogr_feature.h:62
const char * CPLFormFilename(const char *pszPath, const char *pszBasename, const char *pszExtension)
Definition: cpl_path.cpp:501
@ OFTInteger
Definition: ogr_core.h:586
int VSIStatL(const char *, VSIStatBufL *)
Get filesystem object info.
Definition: cpl_vsil.cpp:451
int IsNullable() const
Return whether this geometry field can receive null values.
Definition: ogr_feature.h:173
@ wkbNone
Definition: ogr_core.h:344
int IsFieldSet(int iField)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1245
@ OFTInteger64List
Definition: ogr_core.h:599
@ wkbPolygon
Definition: ogr_core.h:319
@ wkbMultiCurveM
Definition: ogr_core.h:368
@ wkbMultiLineString25D
Definition: ogr_core.h:398
@ wkbCompoundCurveM
Definition: ogr_core.h:366
@ wkbPolyhedralSurfaceM
Definition: ogr_core.h:372
const char * CPLSPrintf(const char *fmt,...)
Definition: cpl_string.cpp:975
@ OFTStringList
Definition: ogr_core.h:591
@ wkbSurface
Definition: ogr_core.h:337
void * OGRFieldDefnH
Definition: ogr_api.h:287
void * OGRGeometryH
Definition: ogr_api.h:56
Definition: ogr_feature.h:141
const char * GetNameRef()
Fetch name of this field.
Definition: ogr_feature.h:83
@ wkbLinearRing
Definition: ogr_core.h:345
@ OFTTime
Definition: ogr_core.h:596
OGRFieldType GetType() const
Fetch type of this field.
Definition: ogr_feature.h:85
const char * GetNameRef()
Fetch name of this field.
Definition: ogr_feature.h:162
@ wkbCompoundCurveZ
Definition: ogr_core.h:348
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
long long GIntBig
Definition: cpl_port.h:250
@ wkbCurveZ
Definition: ogr_core.h:352
bool IsFieldNull(int iField)
Test if a field is null.
Definition: ogrfeature.cpp:1400
OGRwkbGeometryType
Definition: ogr_core.h:312
@ wkbTINZ
Definition: ogr_core.h:355
@ OFTDate
Definition: ogr_core.h:595
Definition: ogr_feature.h:279
struct stat64 VSIStatBufL
Definition: cpl_vsi.h:190
OGRwkbGeometryType GetType() const
Fetch geometry type of this field.
Definition: ogr_feature.h:164
@ wkbTriangleZM
Definition: ogr_core.h:392
@ OFTRealList
Definition: ogr_core.h:589
@ wkbGeometryCollection25D
Definition: ogr_core.h:400
int VSIMkdir(const char *pathname, long mode)
Create a directory.
Definition: cpl_vsil.cpp:329
@ wkbGeometryCollection
Definition: ogr_core.h:325
int IsNullable() const
Return whether this field can receive null values.
Definition: ogr_feature.h:114
OGRFieldType
Definition: ogr_core.h:584
@ wkbMultiCurveZ
Definition: ogr_core.h:350
double GetFieldAsDouble(int i)
Fetch field value as a double.
Definition: ogrfeature.cpp:1918
@ wkbPolyhedralSurfaceZ
Definition: ogr_core.h:354
@ wkbMultiCurve
Definition: ogr_core.h:334
@ wkbMultiPolygonM
Definition: ogr_core.h:363
@ wkbLineString25D
Definition: ogr_core.h:395
@ OFTInteger64
Definition: ogr_core.h:598
@ wkbGeometryCollectionZM
Definition: ogr_core.h:382
virtual OGRSpatialReference * GetSpatialRef()
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:435
Definition: ogr_feature.h:207
@ wkbMultiSurfaceZ
Definition: ogr_core.h:351
@ wkbTriangle
Definition: ogr_core.h:342
@ wkbLineString
Definition: ogr_core.h:317
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:630
@ wkbMultiLineString
Definition: ogr_core.h:323
const char * GetFieldAsString(int i)
Fetch field value as a string.
Definition: ogrfeature.cpp:2090
@ wkbCurveZM
Definition: ogr_core.h:388
@ OFTReal
Definition: ogr_core.h:588
void * OGRLayerH
Definition: ogr_api.h:497
@ wkbMultiLineStringM
Definition: ogr_core.h:362
#define CPLFree
Definition: cpl_conv.h:81
@ wkbUnknown
Definition: ogr_core.h:314
@ wkbTIN
Definition: ogr_core.h:340
const char * CPLGetFilename(const char *)
Definition: cpl_path.cpp:260
GIntBig GetFID() const
Get feature identifier.
Definition: ogr_feature.h:435
@ wkbPointM
Definition: ogr_core.h:358
@ wkbMultiPoint
Definition: ogr_core.h:322
@ wkbSurfaceZ
Definition: ogr_core.h:353
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1625
Generated for GDAL by
1.8.17.