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