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 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);
@ wkbTINM
Definition: ogr_core.h:378
@ wkbSurfaceM
Definition: ogr_core.h:376
static OGRFeatureDefn * FromHandle(OGRFeatureDefnH hFeatureDefn)
Definition: ogr_feature.h:339
@ wkbPointZM
Definition: ogr_core.h:381
@ wkbCurvePolygonZM
Definition: ogr_core.h:390
@ OFTWideString
Definition: ogr_core.h:602
@ wkbMultiCurveZM
Definition: ogr_core.h:391
void Release()
Drop a reference to this object, and destroy if no longer referenced.
Definition: ogrfeaturedefn.cpp:162
@ wkbMultiLineStringZM
Definition: ogr_core.h:385
@ OFTBinary
Definition: ogr_core.h:604
@ wkbPoint
Definition: ogr_core.h:321
@ wkbCurvePolygonZ
Definition: ogr_core.h:354
@ wkbMultiSurfaceZM
Definition: ogr_core.h:392
@ wkbTriangleZ
Definition: ogr_core.h:361
@ wkbCompoundCurveZM
Definition: ogr_core.h:389
@ wkbMultiSurfaceM
Definition: ogr_core.h:374
@ wkbMultiPolygon
Definition: ogr_core.h:329
int CPLCopyFile(const char *pszNewPath, const char *pszOldPath)
Definition: cpl_conv.cpp:2644
@ wkbMultiPoint25D
Definition: ogr_core.h:402
static OGRGeometry * FromHandle(OGRGeometryH hGeom)
Definition: ogr_geometry.h:517
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:127
@ wkbCompoundCurve
Definition: ogr_core.h:335
@ wkbPolygon25D
Definition: ogr_core.h:401
@ OFTWideStringList
Definition: ogr_core.h:603
@ wkbPolygonZM
Definition: ogr_core.h:383
const char * GetFieldAsString(int i) const
Fetch field value as a string.
Definition: ogrfeature.cpp:2297
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:600
@ OFTDateTime
Definition: ogr_core.h:607
@ wkbPolygonM
Definition: ogr_core.h:365
Definition: ogr_geometry.h:287
@ wkbTriangleM
Definition: ogr_core.h:379
void * OGRSFDriverH
Definition: ogr_api.h:513
@ wkbCircularString
Definition: ogr_core.h:333
int VSIMkdir(const char *pszPathname, long mode)
Create a directory.
Definition: cpl_vsil.cpp:423
static OGRSpatialReference * FromHandle(OGRSpatialReferenceH hSRS)
Definition: ogr_spatialref.h:663
Definition: ogrsf_frmts.h:71
Convenient string class based on std::string.
Definition: cpl_string.h:330
@ wkbMultiPolygonZM
Definition: ogr_core.h:386
static OGRSpatialReferenceH ToHandle(OGRSpatialReference *poSRS)
Definition: ogr_spatialref.h:657
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:130
@ wkbCurveM
Definition: ogr_core.h:375
@ wkbPolyhedralSurfaceZM
Definition: ogr_core.h:395
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:203
@ wkbPoint25D
Definition: ogr_core.h:399
@ wkbSurfaceZM
Definition: ogr_core.h:394
@ wkbCircularStringZM
Definition: ogr_core.h:388
void * OGRFeatureH
Definition: ogr_api.h:302
#define CPL_FRMT_GIB
Definition: cpl_port.h:316
#define EQUAL(a, b)
Definition: cpl_port.h:569
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:113
@ wkbCircularStringZ
Definition: ogr_core.h:352
@ wkbCurve
Definition: ogr_core.h:341
void * OGRFeatureDefnH
Definition: ogr_api.h:300
virtual OGRFeatureDefn * GetLayerDefn()=0
Fetch the schema information for this layer.
@ wkbMultiPointZM
Definition: ogr_core.h:384
@ wkbTINZM
Definition: ogr_core.h:396
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Definition: ogr_api.h:307
@ wkbLineStringZM
Definition: ogr_core.h:382
#define CPL_C_START
Definition: cpl_port.h:337
const char * GetDefault() const
Get default field value.
Definition: ogrfielddefn.cpp:518
void * OGRSpatialReferenceH
Definition: ogr_api.h:74
virtual OGRSpatialReference * GetSpatialRef() const
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:438
@ wkbCurvePolygon
Definition: ogr_core.h:336
virtual const char * GetStyleString() const
Fetch style string for this feature.
Definition: ogrfeature.cpp:6117
@ wkbLineStringM
Definition: ogr_core.h:364
@ OFTString
Definition: ogr_core.h:600
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:580
@ wkbMultiPolygon25D
Definition: ogr_core.h:404
@ wkbCircularStringM
Definition: ogr_core.h:370
@ OFTIntegerList
Definition: ogr_core.h:597
@ wkbMultiSurface
Definition: ogr_core.h:340
@ wkbPolyhedralSurface
Definition: ogr_core.h:343
@ wkbCurvePolygonM
Definition: ogr_core.h:372
static OGRFieldDefn * FromHandle(OGRFieldDefnH hFieldDefn)
Definition: ogr_feature.h:158
#define CPL_C_END
Definition: cpl_port.h:339
@ wkbMultiPointM
Definition: ogr_core.h:366
@ wkbGeometryCollectionM
Definition: ogr_core.h:369
void * OGRDataSourceH
Definition: ogr_api.h:511
Definition: ogr_feature.h:93
const char * CPLFormFilename(const char *pszPath, const char *pszBasename, const char *pszExtension)
Definition: cpl_path.cpp:537
@ OFTInteger
Definition: ogr_core.h:596
int VSIStatL(const char *, VSIStatBufL *)
Get filesystem object info.
Definition: cpl_vsil.cpp:737
double GetFieldAsDouble(int i) const
Fetch field value as a double.
Definition: ogrfeature.cpp:2116
int IsNullable() const
Return whether this geometry field can receive null values.
Definition: ogr_feature.h:214
#define STARTS_WITH(a, b)
Definition: cpl_port.h:578
@ wkbNone
Definition: ogr_core.h:349
@ OFTInteger64List
Definition: ogr_core.h:609
@ wkbPolygon
Definition: ogr_core.h:324
@ wkbMultiCurveM
Definition: ogr_core.h:373
@ wkbMultiLineString25D
Definition: ogr_core.h:403
@ wkbCompoundCurveM
Definition: ogr_core.h:371
@ wkbPolyhedralSurfaceM
Definition: ogr_core.h:377
const char * CPLSPrintf(const char *fmt,...)
Definition: cpl_string.cpp:977
@ OFTStringList
Definition: ogr_core.h:601
@ wkbSurface
Definition: ogr_core.h:342
void * OGRFieldDefnH
Definition: ogr_api.h:298
void * OGRGeometryH
Definition: ogr_api.h:60
Definition: ogr_feature.h:183
static OGRFeature * FromHandle(OGRFeatureH hFeature)
Definition: ogr_feature.h:763
static OGRLayer * FromHandle(OGRLayerH hLayer)
Definition: ogrsf_frmts.h:260
@ wkbLinearRing
Definition: ogr_core.h:350
@ OFTTime
Definition: ogr_core.h:606
OGRFieldType GetType() const
Fetch type of this field.
Definition: ogr_feature.h:115
@ wkbCompoundCurveZ
Definition: ogr_core.h:353
int IsFieldSet(int iField) const
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1366
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
long long GIntBig
Definition: cpl_port.h:248
const OGRFieldDefn * GetFieldDefnRef(int iField) const
Fetch definition for this field.
Definition: ogr_feature.h:602
@ wkbCurveZ
Definition: ogr_core.h:357
OGRwkbGeometryType
Definition: ogr_core.h:318
@ wkbTINZ
Definition: ogr_core.h:360
int Reference()
Increments the reference count by one.
Definition: ogr_feature.h:307
@ OFTDate
Definition: ogr_core.h:605
Definition: ogr_feature.h:355
struct stat64 VSIStatBufL
Definition: cpl_vsi.h:194
OGRwkbGeometryType GetType() const
Fetch geometry type of this field.
Definition: ogr_feature.h:205
@ wkbTriangleZM
Definition: ogr_core.h:397
@ OFTRealList
Definition: ogr_core.h:599
@ wkbGeometryCollection25D
Definition: ogr_core.h:405
static OGRGeomFieldDefn * FromHandle(OGRGeomFieldDefnH hGeomFieldDefn)
Definition: ogr_feature.h:229
@ wkbGeometryCollection
Definition: ogr_core.h:330
static OGRFeatureDefnH ToHandle(OGRFeatureDefn *poFeatureDefn)
Definition: ogr_feature.h:333
int IsNullable() const
Return whether this field can receive null values.
Definition: ogr_feature.h:144
OGRFieldType
Definition: ogr_core.h:595
@ wkbMultiCurveZ
Definition: ogr_core.h:355
@ wkbPolyhedralSurfaceZ
Definition: ogr_core.h:359
@ wkbMultiCurve
Definition: ogr_core.h:339
@ wkbMultiPolygonM
Definition: ogr_core.h:368
@ wkbLineString25D
Definition: ogr_core.h:400
@ OFTInteger64
Definition: ogr_core.h:608
@ wkbGeometryCollectionZM
Definition: ogr_core.h:387
int GetFieldAsInteger(int i) const
Fetch field value as integer.
Definition: ogrfeature.cpp:1859
@ wkbMultiSurfaceZ
Definition: ogr_core.h:356
@ wkbTriangle
Definition: ogr_core.h:347
@ wkbLineString
Definition: ogr_core.h:322
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:666
@ wkbMultiLineString
Definition: ogr_core.h:328
OGRErr exportToWkt(char **) const
Convert this SRS into WKT 1 format.
Definition: ogrspatialreference.cpp:1330
@ wkbCurveZM
Definition: ogr_core.h:393
@ OFTReal
Definition: ogr_core.h:598
virtual OGRErr exportToWkt(char **ppszDstText, OGRwkbVariant=wkbVariantOldOgc) const =0
Convert a geometry into well known text format.
void * OGRLayerH
Definition: ogr_api.h:509
@ wkbMultiLineStringM
Definition: ogr_core.h:367
#define CPLFree
Definition: cpl_conv.h:81
@ wkbUnknown
Definition: ogr_core.h:319
@ wkbTIN
Definition: ogr_core.h:345
const char * CPLGetFilename(const char *)
Definition: cpl_path.cpp:260
bool IsFieldNull(int iField) const
Test if a field is null.
Definition: ogrfeature.cpp:1520
GIntBig GetFID() const
Get feature identifier.
Definition: ogr_feature.h:712
@ wkbPointM
Definition: ogr_core.h:363
@ wkbMultiPoint
Definition: ogr_core.h:327
@ wkbSurfaceZ
Definition: ogr_core.h:358
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1692
static OGRGeometryH ToHandle(OGRGeometry *poGeom)
Definition: ogr_geometry.h:511
Generated for GDAL by
1.8.20.