svn-gvsig-desktop / tags / v1_0_RELEASE / libraries / libjni-gdal / include / ogr_api.h @ 9167
History | View | Annotate | Download (16.8 KB)
1 |
/******************************************************************************
|
---|---|
2 |
* $Id: ogr_api.h 9167 2006-12-04 16:01:24Z $
|
3 |
*
|
4 |
* Project: OpenGIS Simple Features Reference Implementation
|
5 |
* Purpose: C API for OGR Geometry, Feature, Layers, DataSource and drivers.
|
6 |
* Author: Frank Warmerdam, warmerdam@pobox.com
|
7 |
*
|
8 |
******************************************************************************
|
9 |
* Copyright (c) 2002, Frank Warmerdam
|
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 |
* $Log$
|
31 |
* Revision 1.2.10.2 2006-11-15 00:08:29 jjdelcerro
|
32 |
* *** empty log message ***
|
33 |
*
|
34 |
* Revision 1.3 2006/10/03 07:05:18 nacho
|
35 |
* *** empty log message ***
|
36 |
*
|
37 |
* Revision 1.1 2006/07/18 16:21:00 nacho
|
38 |
* *** empty log message ***
|
39 |
*
|
40 |
* Revision 1.1 2006/06/29 16:23:27 nacho
|
41 |
* *** empty log message ***
|
42 |
*
|
43 |
* Revision 1.2 2006/01/09 12:50:13 nacho
|
44 |
* *** empty log message ***
|
45 |
*
|
46 |
* Revision 1.1 2005/07/27 08:22:55 igbrotru
|
47 |
* *** empty log message ***
|
48 |
*
|
49 |
* Revision 1.1 2004/12/28 14:06:59 igbrotru
|
50 |
* *** empty log message ***
|
51 |
*
|
52 |
* Revision 1.1 2004/12/28 13:32:25 igbrotru
|
53 |
* *** empty log message ***
|
54 |
*
|
55 |
* Revision 1.20 2004/09/17 15:05:36 fwarmerdam
|
56 |
* added get_Area() support
|
57 |
*
|
58 |
* Revision 1.19 2004/07/10 06:57:54 warmerda
|
59 |
* Added C entry points and docs for GEOS geometry functions
|
60 |
*
|
61 |
* Revision 1.18 2004/07/10 04:52:44 warmerda
|
62 |
* added OGR_G_CloseRings
|
63 |
*
|
64 |
* Revision 1.17 2003/10/09 15:27:41 warmerda
|
65 |
* added OGRLayer::DeleteFeature() support
|
66 |
*
|
67 |
* Revision 1.16 2003/09/04 14:01:44 warmerda
|
68 |
* added OGRGetGenerate_DB2_V72_BYTE_ORDER
|
69 |
*
|
70 |
* Revision 1.15 2003/08/27 15:40:37 warmerda
|
71 |
* added support for generating DB2 V7.2 compatible WKB
|
72 |
*
|
73 |
* Revision 1.14 2003/04/22 19:33:26 warmerda
|
74 |
* Added synctodisk
|
75 |
*
|
76 |
* Revision 1.13 2003/04/08 21:21:13 warmerda
|
77 |
* added OGRGetDriverByName
|
78 |
*
|
79 |
* Revision 1.12 2003/04/08 19:30:56 warmerda
|
80 |
* added CopyLayer and CopyDataSource entry points
|
81 |
*
|
82 |
* Revision 1.11 2003/03/19 20:28:20 warmerda
|
83 |
* added shared access, and reference counting apis
|
84 |
*
|
85 |
* Revision 1.10 2003/03/12 20:52:07 warmerda
|
86 |
* implemented support for gml:Box
|
87 |
*
|
88 |
* Revision 1.9 2003/03/06 20:29:27 warmerda
|
89 |
* added GML import/export entry points
|
90 |
*
|
91 |
* Revision 1.8 2003/03/05 05:08:49 warmerda
|
92 |
* added GetLayerByName
|
93 |
*
|
94 |
* Revision 1.7 2003/03/03 05:05:54 warmerda
|
95 |
* added support for DeleteDataSource and DeleteLayer
|
96 |
*
|
97 |
* Revision 1.6 2003/01/07 16:44:27 warmerda
|
98 |
* added removeGeometry
|
99 |
*
|
100 |
* Revision 1.5 2003/01/06 21:37:00 warmerda
|
101 |
* added CPL_DLL attribute on OGRBuildPolygon...
|
102 |
*
|
103 |
* Revision 1.4 2003/01/02 21:45:23 warmerda
|
104 |
* move OGRBuildPolygonsFromEdges into C API
|
105 |
*
|
106 |
* Revision 1.3 2002/10/24 16:46:08 warmerda
|
107 |
* removed bogus OGR_G_GetWkbSize()
|
108 |
*
|
109 |
* Revision 1.2 2002/09/26 19:00:07 warmerda
|
110 |
* ensure all entry points CPL_DLL'ed
|
111 |
*
|
112 |
* Revision 1.1 2002/09/26 18:11:51 warmerda
|
113 |
* New
|
114 |
*
|
115 |
*/
|
116 |
|
117 |
#ifndef _OGR_API_H_INCLUDED
|
118 |
#define _OGR_API_H_INCLUDED
|
119 |
|
120 |
/**
|
121 |
* \file ogr_api.h
|
122 |
*
|
123 |
* C API and defines for OGRFeature, OGRGeometry, and OGRDataSource
|
124 |
* related classes.
|
125 |
*
|
126 |
* See also: ogr_geometry.h, ogr_feature.h, ogrsf_frmts.h
|
127 |
*/
|
128 |
|
129 |
#include "ogr_core.h" |
130 |
|
131 |
CPL_C_START |
132 |
|
133 |
/* -------------------------------------------------------------------- */
|
134 |
/* Geometry related functions (ogr_geometry.h) */
|
135 |
/* -------------------------------------------------------------------- */
|
136 |
typedef void *OGRGeometryH; |
137 |
|
138 |
#ifndef _DEFINED_OGRSpatialReferenceH
|
139 |
#define _DEFINED_OGRSpatialReferenceH
|
140 |
|
141 |
typedef void *OGRSpatialReferenceH; |
142 |
typedef void *OGRCoordinateTransformationH; |
143 |
|
144 |
#endif
|
145 |
|
146 |
struct _CPLXMLNode;
|
147 |
|
148 |
/* From base OGRGeometry class */
|
149 |
|
150 |
OGRErr CPL_DLL OGR_G_CreateFromWkb( unsigned char *, OGRSpatialReferenceH, |
151 |
OGRGeometryH * ); |
152 |
OGRErr CPL_DLL OGR_G_CreateFromWkt( char **, OGRSpatialReferenceH,
|
153 |
OGRGeometryH * ); |
154 |
void CPL_DLL OGR_G_DestroyGeometry( OGRGeometryH );
|
155 |
OGRGeometryH CPL_DLL OGR_G_CreateGeometry( OGRwkbGeometryType ); |
156 |
|
157 |
int CPL_DLL OGR_G_GetDimension( OGRGeometryH );
|
158 |
int CPL_DLL OGR_G_GetCoordinateDimension( OGRGeometryH );
|
159 |
OGRGeometryH CPL_DLL OGR_G_Clone( OGRGeometryH ); |
160 |
void CPL_DLL OGR_G_GetEnvelope( OGRGeometryH, OGREnvelope * );
|
161 |
OGRErr CPL_DLL OGR_G_ImportFromWkb( OGRGeometryH, unsigned char *, int ); |
162 |
OGRErr CPL_DLL OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder, unsigned char*); |
163 |
int CPL_DLL OGR_G_WkbSize( OGRGeometryH hGeom );
|
164 |
OGRErr CPL_DLL OGR_G_ImportFromWkt( OGRGeometryH, char ** );
|
165 |
OGRErr CPL_DLL OGR_G_ExportToWkt( OGRGeometryH, char ** );
|
166 |
OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType( OGRGeometryH ); |
167 |
const char CPL_DLL *OGR_G_GetGeometryName( OGRGeometryH ); |
168 |
void CPL_DLL OGR_G_DumpReadable( OGRGeometryH, FILE *, const char * ); |
169 |
void CPL_DLL OGR_G_FlattenTo2D( OGRGeometryH );
|
170 |
void CPL_DLL OGR_G_CloseRings( OGRGeometryH );
|
171 |
|
172 |
OGRGeometryH CPL_DLL OGR_G_CreateFromGML( const char * ); |
173 |
char CPL_DLL *OGR_G_ExportToGML( OGRGeometryH );
|
174 |
|
175 |
#if defined(_CPL_MINIXML_H_INCLUDED)
|
176 |
OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree( const CPLXMLNode * );
|
177 |
CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree( OGRGeometryH ); |
178 |
CPLXMLNode CPL_DLL *OGR_G_ExportEnvelopeToGMLTree( OGRGeometryH ); |
179 |
#endif
|
180 |
|
181 |
void CPL_DLL OGR_G_AssignSpatialReference( OGRGeometryH,
|
182 |
OGRSpatialReferenceH ); |
183 |
OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference( OGRGeometryH ); |
184 |
OGRErr CPL_DLL OGR_G_Transform( OGRGeometryH, OGRCoordinateTransformationH ); |
185 |
OGRErr CPL_DLL OGR_G_TransformTo( OGRGeometryH, OGRSpatialReferenceH ); |
186 |
|
187 |
int CPL_DLL OGR_G_Intersect( OGRGeometryH, OGRGeometryH );
|
188 |
int CPL_DLL OGR_G_Equal( OGRGeometryH, OGRGeometryH );
|
189 |
int CPL_DLL OGR_G_Disjoint( OGRGeometryH, OGRGeometryH );
|
190 |
int CPL_DLL OGR_G_Touches( OGRGeometryH, OGRGeometryH );
|
191 |
int CPL_DLL OGR_G_Crosses( OGRGeometryH, OGRGeometryH );
|
192 |
int CPL_DLL OGR_G_Within( OGRGeometryH, OGRGeometryH );
|
193 |
int CPL_DLL OGR_G_Contains( OGRGeometryH, OGRGeometryH );
|
194 |
int CPL_DLL OGR_G_Overlaps( OGRGeometryH, OGRGeometryH );
|
195 |
|
196 |
OGRGeometryH CPL_DLL OGR_G_GetBoundary( OGRGeometryH ); |
197 |
OGRGeometryH CPL_DLL OGR_G_ConvexHull( OGRGeometryH ); |
198 |
OGRGeometryH CPL_DLL OGR_G_Buffer( OGRGeometryH, double, int ); |
199 |
OGRGeometryH CPL_DLL OGR_G_Intersection( OGRGeometryH, OGRGeometryH ); |
200 |
OGRGeometryH CPL_DLL OGR_G_Union( OGRGeometryH, OGRGeometryH ); |
201 |
OGRGeometryH CPL_DLL OGR_G_Difference( OGRGeometryH, OGRGeometryH ); |
202 |
OGRGeometryH CPL_DLL OGR_G_SymmetricDifference( OGRGeometryH, OGRGeometryH ); |
203 |
double CPL_DLL OGR_G_Distance( OGRGeometryH, OGRGeometryH );
|
204 |
|
205 |
double CPL_DLL OGR_G_GetArea( OGRGeometryH );
|
206 |
|
207 |
void CPL_DLL OGR_G_Empty( OGRGeometryH );
|
208 |
|
209 |
/* Methods for getting/setting vertices in points, line strings and rings */
|
210 |
int CPL_DLL OGR_G_GetPointCount( OGRGeometryH );
|
211 |
double CPL_DLL OGR_G_GetX( OGRGeometryH, int ); |
212 |
double CPL_DLL OGR_G_GetY( OGRGeometryH, int ); |
213 |
double CPL_DLL OGR_G_GetZ( OGRGeometryH, int ); |
214 |
void CPL_DLL OGR_G_GetPoint( OGRGeometryH, int iPoint, |
215 |
double *, double *, double * ); |
216 |
void CPL_DLL OGR_G_SetPoint( OGRGeometryH, int iPoint, |
217 |
double, double, double ); |
218 |
void CPL_DLL OGR_G_AddPoint( OGRGeometryH, double, double, double ); |
219 |
|
220 |
/* Methods for getting/setting rings and members collections */
|
221 |
|
222 |
int CPL_DLL OGR_G_GetGeometryCount( OGRGeometryH );
|
223 |
OGRGeometryH CPL_DLL OGR_G_GetGeometryRef( OGRGeometryH, int );
|
224 |
OGRErr CPL_DLL OGR_G_AddGeometry( OGRGeometryH, OGRGeometryH ); |
225 |
OGRErr CPL_DLL OGR_G_AddGeometryDirectly( OGRGeometryH, OGRGeometryH ); |
226 |
OGRErr CPL_DLL OGR_G_RemoveGeometry( OGRGeometryH, int, int ); |
227 |
|
228 |
OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges( OGRGeometryH hLinesAsCollection, |
229 |
int bBestEffort,
|
230 |
int bAutoClose,
|
231 |
double dfTolerance,
|
232 |
OGRErr * peErr ); |
233 |
|
234 |
OGRErr CPL_DLL OGRSetGenerate_DB2_V72_BYTE_ORDER( |
235 |
int bGenerate_DB2_V72_BYTE_ORDER );
|
236 |
|
237 |
int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER();
|
238 |
|
239 |
/* -------------------------------------------------------------------- */
|
240 |
/* Feature related (ogr_feature.h) */
|
241 |
/* -------------------------------------------------------------------- */
|
242 |
|
243 |
typedef void *OGRFieldDefnH; |
244 |
typedef void *OGRFeatureDefnH; |
245 |
typedef void *OGRFeatureH; |
246 |
|
247 |
/* OGRFieldDefn */
|
248 |
|
249 |
OGRFieldDefnH CPL_DLL OGR_Fld_Create( const char *, OGRFieldType ); |
250 |
void CPL_DLL OGR_Fld_Destroy( OGRFieldDefnH );
|
251 |
|
252 |
void CPL_DLL OGR_Fld_SetName( OGRFieldDefnH, const char * ); |
253 |
const char CPL_DLL *OGR_Fld_GetNameRef( OGRFieldDefnH ); |
254 |
OGRFieldType CPL_DLL OGR_Fld_GetType( OGRFieldDefnH ); |
255 |
void CPL_DLL OGR_Fld_SetType( OGRFieldDefnH, OGRFieldType );
|
256 |
OGRJustification CPL_DLL OGR_Fld_GetJustify( OGRFieldDefnH ); |
257 |
void CPL_DLL OGR_Fld_SetJustify( OGRFieldDefnH, OGRJustification );
|
258 |
int CPL_DLL OGR_Fld_GetWidth( OGRFieldDefnH );
|
259 |
void CPL_DLL OGR_Fld_SetWidth( OGRFieldDefnH, int ); |
260 |
int CPL_DLL OGR_Fld_GetPrecision( OGRFieldDefnH );
|
261 |
void CPL_DLL OGR_Fld_SetPrecision( OGRFieldDefnH, int ); |
262 |
void CPL_DLL OGR_Fld_Set( OGRFieldDefnH, const char *, OGRFieldType, |
263 |
int, int, OGRJustification ); |
264 |
|
265 |
const char CPL_DLL *OGR_GetFieldTypeName( OGRFieldType ); |
266 |
|
267 |
/* OGRFeatureDefn */
|
268 |
|
269 |
OGRFeatureDefnH CPL_DLL OGR_FD_Create( const char * ); |
270 |
void CPL_DLL OGR_FD_Destroy( OGRFeatureDefnH );
|
271 |
const char CPL_DLL *OGR_FD_GetName( OGRFeatureDefnH ); |
272 |
int CPL_DLL OGR_FD_GetFieldCount( OGRFeatureDefnH );
|
273 |
OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn( OGRFeatureDefnH, int );
|
274 |
int CPL_DLL OGR_FD_GetFieldIndex( OGRFeatureDefnH, const char * ); |
275 |
void CPL_DLL OGR_FD_AddFieldDefn( OGRFeatureDefnH, OGRFieldDefnH );
|
276 |
OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType( OGRFeatureDefnH ); |
277 |
void CPL_DLL OGR_FD_SetGeomType( OGRFeatureDefnH, OGRwkbGeometryType );
|
278 |
int CPL_DLL OGR_FD_Reference( OGRFeatureDefnH );
|
279 |
int CPL_DLL OGR_FD_Dereference( OGRFeatureDefnH );
|
280 |
int CPL_DLL OGR_FD_GetReferenceCount( OGRFeatureDefnH );
|
281 |
|
282 |
/* OGRFeature */
|
283 |
|
284 |
OGRFeatureH CPL_DLL OGR_F_Create( OGRFeatureDefnH ); |
285 |
void CPL_DLL OGR_F_Destroy( OGRFeatureH );
|
286 |
OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef( OGRFeatureH ); |
287 |
|
288 |
OGRErr CPL_DLL OGR_F_SetGeometryDirectly( OGRFeatureH, OGRGeometryH ); |
289 |
OGRErr CPL_DLL OGR_F_SetGeometry( OGRFeatureH, OGRGeometryH ); |
290 |
OGRGeometryH CPL_DLL OGR_F_GetGeometryRef( OGRFeatureH ); |
291 |
OGRFeatureH CPL_DLL OGR_F_Clone( OGRFeatureH ); |
292 |
int CPL_DLL OGR_F_Equal( OGRFeatureH, OGRFeatureH );
|
293 |
|
294 |
int CPL_DLL OGR_F_GetFieldCount( OGRFeatureH );
|
295 |
OGRFieldDefnH CPL_DLL OGR_F_GetFieldDefnRef( OGRFeatureH, int );
|
296 |
int CPL_DLL OGR_F_GetFieldIndex( OGRFeatureH, const char * ); |
297 |
|
298 |
int CPL_DLL OGR_F_IsFieldSet( OGRFeatureH, int ); |
299 |
void CPL_DLL OGR_F_UnsetField( OGRFeatureH, int ); |
300 |
OGRField CPL_DLL *OGR_F_GetRawFieldRef( OGRFeatureH, int );
|
301 |
|
302 |
int CPL_DLL OGR_F_GetFieldAsInteger( OGRFeatureH, int ); |
303 |
double CPL_DLL OGR_F_GetFieldAsDouble( OGRFeatureH, int ); |
304 |
const char CPL_DLL *OGR_F_GetFieldAsString( OGRFeatureH, int ); |
305 |
const int CPL_DLL *OGR_F_GetFieldAsIntegerList( OGRFeatureH, int, int * ); |
306 |
const double CPL_DLL *OGR_F_GetFieldAsDoubleList( OGRFeatureH, int, int * ); |
307 |
char CPL_DLL **OGR_F_GetFieldAsStringList( OGRFeatureH, int ); |
308 |
|
309 |
void CPL_DLL OGR_F_SetFieldInteger( OGRFeatureH, int, int ); |
310 |
void CPL_DLL OGR_F_SetFieldDouble( OGRFeatureH, int, double ); |
311 |
void CPL_DLL OGR_F_SetFieldString( OGRFeatureH, int, const char * ); |
312 |
void CPL_DLL OGR_F_SetFieldIntegerList( OGRFeatureH, int, int, int * ); |
313 |
void CPL_DLL OGR_F_SetFieldDoubleList( OGRFeatureH, int, int, double * ); |
314 |
void CPL_DLL OGR_F_SetFieldStringList( OGRFeatureH, int, char ** ); |
315 |
void CPL_DLL OGR_F_SetFieldRaw( OGRFeatureH, int, OGRField * ); |
316 |
|
317 |
long CPL_DLL OGR_F_GetFID( OGRFeatureH );
|
318 |
OGRErr CPL_DLL OGR_F_SetFID( OGRFeatureH, long );
|
319 |
void CPL_DLL OGR_F_DumpReadable( OGRFeatureH, FILE * );
|
320 |
OGRErr CPL_DLL OGR_F_SetFrom( OGRFeatureH, OGRFeatureH, int );
|
321 |
|
322 |
const char CPL_DLL *OGR_F_GetStyleString( OGRFeatureH ); |
323 |
void CPL_DLL OGR_F_SetStyleString( OGRFeatureH, const char * ); |
324 |
|
325 |
/* -------------------------------------------------------------------- */
|
326 |
/* ogrsf_frmts.h */
|
327 |
/* -------------------------------------------------------------------- */
|
328 |
|
329 |
typedef void *OGRLayerH; |
330 |
typedef void *OGRDataSourceH; |
331 |
typedef void *OGRSFDriverH; |
332 |
|
333 |
/* OGRLayer */
|
334 |
|
335 |
OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter( OGRLayerH ); |
336 |
void CPL_DLL OGR_L_SetSpatialFilter( OGRLayerH, OGRGeometryH );
|
337 |
OGRErr CPL_DLL OGR_L_SetAttributeFilter( OGRLayerH, const char * ); |
338 |
void CPL_DLL OGR_L_ResetReading( OGRLayerH );
|
339 |
OGRFeatureH CPL_DLL OGR_L_GetNextFeature( OGRLayerH ); |
340 |
OGRFeatureH CPL_DLL OGR_L_GetFeature( OGRLayerH, long );
|
341 |
OGRErr CPL_DLL OGR_L_SetFeature( OGRLayerH, OGRFeatureH ); |
342 |
OGRErr CPL_DLL OGR_L_CreateFeature( OGRLayerH, OGRFeatureH ); |
343 |
OGRErr CPL_DLL OGR_L_DeleteFeature( OGRLayerH, long );
|
344 |
OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn( OGRLayerH ); |
345 |
OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef( OGRLayerH ); |
346 |
int CPL_DLL OGR_L_GetFeatureCount( OGRLayerH, int ); |
347 |
OGRErr CPL_DLL OGR_L_GetExtent( OGRLayerH, OGREnvelope *, int );
|
348 |
int CPL_DLL OGR_L_TestCapability( OGRLayerH, const char * ); |
349 |
OGRErr CPL_DLL OGR_L_CreateField( OGRLayerH, OGRFieldDefnH, int );
|
350 |
OGRErr CPL_DLL OGR_L_StartTransaction( OGRLayerH ); |
351 |
OGRErr CPL_DLL OGR_L_CommitTransaction( OGRLayerH ); |
352 |
OGRErr CPL_DLL OGR_L_RollbackTransaction( OGRLayerH ); |
353 |
int CPL_DLL OGR_L_Reference( OGRLayerH );
|
354 |
int CPL_DLL OGR_L_Dereference( OGRLayerH );
|
355 |
int CPL_DLL OGR_L_GetRefCount( OGRLayerH );
|
356 |
OGRErr CPL_DLL OGR_L_SyncToDisk( OGRLayerH ); |
357 |
|
358 |
/* OGRDataSource */
|
359 |
|
360 |
void CPL_DLL OGR_DS_Destroy( OGRDataSourceH );
|
361 |
const char CPL_DLL *OGR_DS_GetName( OGRDataSourceH ); |
362 |
int CPL_DLL OGR_DS_GetLayerCount( OGRDataSourceH );
|
363 |
OGRLayerH CPL_DLL OGR_DS_GetLayer( OGRDataSourceH, int );
|
364 |
OGRLayerH CPL_DLL OGR_DS_GetLayerByName( OGRDataSourceH, const char * ); |
365 |
OGRErr CPL_DLL OGR_DS_DeleteLayer( OGRDataSourceH, int );
|
366 |
OGRLayerH CPL_DLL OGR_DS_CreateLayer( OGRDataSourceH, const char *, |
367 |
OGRSpatialReferenceH, OGRwkbGeometryType, |
368 |
char ** );
|
369 |
OGRLayerH CPL_DLL OGR_DS_CopyLayer( OGRDataSourceH, OGRLayerH, const char *, |
370 |
char ** );
|
371 |
int CPL_DLL OGR_DS_TestCapability( OGRDataSourceH, const char * ); |
372 |
OGRLayerH CPL_DLL OGR_DS_ExecuteSQL( OGRDataSourceH, const char *, |
373 |
OGRGeometryH, const char * ); |
374 |
void CPL_DLL OGR_DS_ReleaseResultSet( OGRDataSourceH, OGRLayerH );
|
375 |
int CPL_DLL OGR_DS_Reference( OGRDataSourceH );
|
376 |
int CPL_DLL OGR_DS_Dereference( OGRDataSourceH );
|
377 |
int CPL_DLL OGR_DS_GetRefCount( OGRDataSourceH );
|
378 |
int CPL_DLL OGR_DS_GetSummaryRefCount( OGRDataSourceH );
|
379 |
OGRErr CPL_DLL OGR_DS_SyncToDisk( OGRDataSourceH ); |
380 |
|
381 |
/* OGRSFDriver */
|
382 |
|
383 |
const char CPL_DLL *OGR_Dr_GetName( OGRSFDriverH ); |
384 |
OGRDataSourceH CPL_DLL OGR_Dr_Open( OGRSFDriverH, const char *, int ); |
385 |
int CPL_DLL OGR_Dr_TestCapability( OGRSFDriverH, const char * ); |
386 |
OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource( OGRSFDriverH, const char *, |
387 |
char ** );
|
388 |
OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource( OGRSFDriverH, OGRDataSourceH, |
389 |
const char *, char ** ); |
390 |
OGRErr CPL_DLL OGR_Dr_DeleteDataSource( OGRSFDriverH, const char * ); |
391 |
|
392 |
/* OGRSFDriverRegistrar */
|
393 |
|
394 |
OGRDataSourceH CPL_DLL OGROpen( const char *, int, OGRSFDriverH * ); |
395 |
OGRDataSourceH CPL_DLL OGROpenShared( const char *, int, OGRSFDriverH * ); |
396 |
OGRErr CPL_DLL OGRReleaseDataSource( OGRDataSourceH ); |
397 |
void CPL_DLL OGRRegisterDriver( OGRSFDriverH );
|
398 |
int CPL_DLL OGRGetDriverCount();
|
399 |
OGRSFDriverH CPL_DLL OGRGetDriver( int );
|
400 |
OGRSFDriverH CPL_DLL OGRGetDriverByName( const char * ); |
401 |
int CPL_DLL OGRGetOpenDSCount();
|
402 |
OGRDataSourceH CPL_DLL OGRGetOpenDS( int iDS );
|
403 |
|
404 |
|
405 |
/* note: this is also declared in ogrsf_frmts.h */
|
406 |
void CPL_DLL OGRRegisterAll();
|
407 |
|
408 |
CPL_C_END |
409 |
|
410 |
#endif /* ndef _OGR_API_H_INCLUDED */ |
411 |
|
412 |
|