GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- File List
- File Members

ograpispy.h
Go to the documentation of this file.
1 /******************************************************************************
2 * $Id: ograpispy.h 35912 2016-10-24 16:41:45Z goatbar $
3 *
4 * Project: OpenGIS Simple Features Reference Implementation
5 * Purpose: OGR C API "Spy"
6 * Author: Even Rouault, even.rouault at spatialys.com
7 *
8 ******************************************************************************
9 * Copyright (c) 2014, Even Rouault <even.rouault at spatialys.com>
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
28 ****************************************************************************/
29
30 #ifndef OGRAPISPY_H_INCLUDED
31 #define OGRAPISPY_H_INCLUDED
32
33 #include "gdal.h"
34
64 #ifdef DEBUG
65 #define OGRAPISPY_ENABLED
66 #endif
67
68 #ifdef OGRAPISPY_ENABLED
69
70 CPL_C_START
71
72 extern int bOGRAPISpyEnabled;
73
74 int OGRAPISpyOpenTakeSnapshot(const char* pszName, int bUpdate);
75 void OGRAPISpyOpen(const char* pszName, int bUpdate, int iSnapshot,
76 GDALDatasetH* phDS);
77 void OGRAPISpyPreClose(OGRDataSourceH hDS);
78 void OGRAPISpyPostClose();
79 void OGRAPISpyCreateDataSource(OGRSFDriverH hDriver, const char* pszName,
80 char** papszOptions, OGRDataSourceH hDS);
81 void OGRAPISpyDeleteDataSource(OGRSFDriverH hDriver, const char* pszName);
82
83 void OGRAPISpy_DS_GetLayerCount( OGRDataSourceH hDS );
84 void OGRAPISpy_DS_GetLayer( OGRDataSourceH hDS, int iLayer, OGRLayerH hLayer );
85 void OGRAPISpy_DS_GetLayerByName( OGRDataSourceH hDS, const char* pszLayerName,
86 OGRLayerH hLayer );
87 void OGRAPISpy_DS_ExecuteSQL( OGRDataSourceH hDS,
88 const char *pszStatement,
89 OGRGeometryH hSpatialFilter,
90 const char *pszDialect,
91 OGRLayerH hLayer);
92 void OGRAPISpy_DS_ReleaseResultSet( OGRDataSourceH hDS, OGRLayerH hLayer);
93
94 void OGRAPISpy_DS_CreateLayer( OGRDataSourceH hDS,
95 const char * pszName,
96 OGRSpatialReferenceH hSpatialRef,
97 OGRwkbGeometryType eType,
98 char ** papszOptions,
99 OGRLayerH hLayer);
100 void OGRAPISpy_DS_DeleteLayer( OGRDataSourceH hDS, int iLayer );
101
102 void OGRAPISpy_Dataset_StartTransaction( GDALDatasetH hDS, int bForce );
103 void OGRAPISpy_Dataset_CommitTransaction( GDALDatasetH hDS );
104 void OGRAPISpy_Dataset_RollbackTransaction( GDALDatasetH hDS );
105
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 );
110 void OGRAPISpy_L_GetFeature( OGRLayerH hLayer, GIntBig nFeatureId );
111 void OGRAPISpy_L_SetNextByIndex( OGRLayerH hLayer, GIntBig nIndex );
112 void OGRAPISpy_L_GetNextFeature( OGRLayerH hLayer );
113 void OGRAPISpy_L_SetFeature( OGRLayerH hLayer, OGRFeatureH hFeat );
114 void OGRAPISpy_L_CreateFeature( OGRLayerH hLayer, OGRFeatureH hFeat );
115 void OGRAPISpy_L_CreateField( OGRLayerH hLayer, OGRFieldDefnH hField,
116 int bApproxOK );
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,
120 int iNewFieldPos );
121 void OGRAPISpy_L_AlterFieldDefn( OGRLayerH hLayer, int iField,
122 OGRFieldDefnH hNewFieldDefn,
123 int nFlags );
124 void OGRAPISpy_L_CreateGeomField( OGRLayerH hLayer, OGRGeomFieldDefnH hField,
125 int bApproxOK );
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,
131 int bExactMatch );
132 void OGRAPISpy_L_GetSpatialRef( OGRLayerH hLayer );
133 void OGRAPISpy_L_TestCapability( OGRLayerH hLayer, const char* pszCap );
134 void OGRAPISpy_L_GetSpatialFilter( OGRLayerH hLayer );
135 void OGRAPISpy_L_SetSpatialFilter( OGRLayerH hLayer, OGRGeometryH hGeom );
136 void OGRAPISpy_L_SetSpatialFilterEx( OGRLayerH hLayer, int iGeomField,
137 OGRGeometryH hGeom );
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 );
146 void OGRAPISpy_L_DeleteFeature( OGRLayerH hLayer, GIntBig nFID );
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 );
153
154 void OGRAPISpy_FD_GetGeomType(OGRFeatureDefnH hDefn);
155 void OGRAPISpy_FD_GetFieldCount(OGRFeatureDefnH hDefn);
156 void OGRAPISpy_FD_GetFieldDefn(OGRFeatureDefnH hDefn, int iField,
157 OGRFieldDefnH hGeomField);
158 void OGRAPISpy_FD_GetFieldIndex(OGRFeatureDefnH hDefn, const char* pszFieldName);
159
160 void OGRAPISpy_Fld_GetXXXX(OGRFieldDefnH hField, const char* pszOp);
161
162 void OGRAPISpy_FD_GetGeomFieldCount(OGRFeatureDefnH hDefn);
163 void OGRAPISpy_FD_GetGeomFieldDefn(OGRFeatureDefnH hDefn, int iGeomField,
164 OGRGeomFieldDefnH hGeomField);
165 void OGRAPISpy_FD_GetGeomFieldIndex(OGRFeatureDefnH hDefn, const char* pszFieldName);
166 void OGRAPISpy_GFld_GetXXXX(OGRGeomFieldDefnH hGeomField, const char* pszOp);
167
168 CPL_C_END
169
170 #endif /* OGRAPISPY_ENABLED */
171
172 #endif /* OGRAPISPY_H_INCLUDED */
OGRSFDriverH
void * OGRSFDriverH
Opaque type for a OGR driver (OGRSFDriver)
Definition: ogr_api.h:501
OGRLayerH
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition: ogr_api.h:497
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:352
GDALDatasetH
void * GDALDatasetH
Opaque type used for the C bindings of the C++ GDALDataset class.
Definition: gdal.h:241
OGRFieldDefnH
void * OGRFieldDefnH
Opaque type for a field definition (OGRFieldDefn)
Definition: ogr_api.h:287
OGRGeomFieldDefnH
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn)
Definition: ogr_api.h:296
OGRwkbGeometryType
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:312
gdal.h
Public (C callable) GDAL entry points.
OGRDataSourceH
void * OGRDataSourceH
Opaque type for a OGR datasource (OGRDataSource)
Definition: ogr_api.h:499
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:69
OGRGeometryH
void * OGRGeometryH
Opaque type for a geometyr.
Definition: ogr_api.h:56
OGRFeatureH
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition: ogr_api.h:291
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:354
GIntBig
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:250
OGRFeatureDefnH
void * OGRFeatureDefnH
Opaque type for a feature definition (OGRFeatureDefn)
Definition: ogr_api.h:289

Generated for GDAL by 1.8.9.1.