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