OGR
ogr_api.h
Go to the documentation of this file.
1 /******************************************************************************
2  * $Id: ogr_api.h 25545 2013-01-25 17:55:47Z warmerdam $
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 #ifndef OGR_API_H_INCLUDED
31 #define OGR_API_H_INCLUDED
32 
42 #include "cpl_progress.h"
43 #include "ogr_core.h"
44 
45 CPL_C_START
46 
47 /* -------------------------------------------------------------------- */
48 /* Geometry related functions (ogr_geometry.h) */
49 /* -------------------------------------------------------------------- */
50 #ifdef DEBUG
51 typedef struct OGRGeometryHS *OGRGeometryH;
52 #else
53 typedef void *OGRGeometryH;
54 #endif
55 
56 #ifndef _DEFINED_OGRSpatialReferenceH
57 #define _DEFINED_OGRSpatialReferenceH
58 
59 #ifdef DEBUG
60 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
61 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
62 #else
63 typedef void *OGRSpatialReferenceH;
64 typedef void *OGRCoordinateTransformationH;
65 #endif
66 
67 #endif
68 
69 struct _CPLXMLNode;
70 
71 /* From base OGRGeometry class */
72 
73 OGRErr CPL_DLL OGR_G_CreateFromWkb( unsigned char *, OGRSpatialReferenceH,
74  OGRGeometryH *, int );
75 OGRErr CPL_DLL OGR_G_CreateFromWkt( char **, OGRSpatialReferenceH,
76  OGRGeometryH * );
77 OGRErr CPL_DLL OGR_G_CreateFromFgf( unsigned char *, OGRSpatialReferenceH,
78  OGRGeometryH *, int, int * );
79 void CPL_DLL OGR_G_DestroyGeometry( OGRGeometryH );
80 OGRGeometryH CPL_DLL OGR_G_CreateGeometry( OGRwkbGeometryType );
81 OGRGeometryH CPL_DLL
83  double dfCenterX, double dfCenterY, double dfZ,
84  double dfPrimaryRadius, double dfSecondaryAxis, double dfRotation,
85  double dfStartAngle, double dfEndAngle,
86  double dfMaxAngleStepSizeDegrees );
87 
88 OGRGeometryH CPL_DLL OGR_G_ForceToPolygon( OGRGeometryH );
89 OGRGeometryH CPL_DLL OGR_G_ForceToLineString( OGRGeometryH );
90 OGRGeometryH CPL_DLL OGR_G_ForceToMultiPolygon( OGRGeometryH );
91 OGRGeometryH CPL_DLL OGR_G_ForceToMultiPoint( OGRGeometryH );
92 OGRGeometryH CPL_DLL OGR_G_ForceToMultiLineString( OGRGeometryH );
93 
94 int CPL_DLL OGR_G_GetDimension( OGRGeometryH );
95 int CPL_DLL OGR_G_GetCoordinateDimension( OGRGeometryH );
96 void CPL_DLL OGR_G_SetCoordinateDimension( OGRGeometryH, int );
97 OGRGeometryH CPL_DLL OGR_G_Clone( OGRGeometryH );
98 void CPL_DLL OGR_G_GetEnvelope( OGRGeometryH, OGREnvelope * );
99 void CPL_DLL OGR_G_GetEnvelope3D( OGRGeometryH, OGREnvelope3D * );
100 OGRErr CPL_DLL OGR_G_ImportFromWkb( OGRGeometryH, unsigned char *, int );
101 OGRErr CPL_DLL OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder, unsigned char*);
102 int CPL_DLL OGR_G_WkbSize( OGRGeometryH hGeom );
103 OGRErr CPL_DLL OGR_G_ImportFromWkt( OGRGeometryH, char ** );
104 OGRErr CPL_DLL OGR_G_ExportToWkt( OGRGeometryH, char ** );
105 OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType( OGRGeometryH );
106 const char CPL_DLL *OGR_G_GetGeometryName( OGRGeometryH );
107 void CPL_DLL OGR_G_DumpReadable( OGRGeometryH, FILE *, const char * );
108 void CPL_DLL OGR_G_FlattenTo2D( OGRGeometryH );
109 void CPL_DLL OGR_G_CloseRings( OGRGeometryH );
110 
111 OGRGeometryH CPL_DLL OGR_G_CreateFromGML( const char * );
112 char CPL_DLL *OGR_G_ExportToGML( OGRGeometryH );
113 char CPL_DLL *OGR_G_ExportToGMLEx( OGRGeometryH, char** papszOptions );
114 
115 #if defined(_CPL_MINIXML_H_INCLUDED)
116 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree( const CPLXMLNode * );
117 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree( OGRGeometryH );
118 CPLXMLNode CPL_DLL *OGR_G_ExportEnvelopeToGMLTree( OGRGeometryH );
119 #endif
120 
121 char CPL_DLL *OGR_G_ExportToKML( OGRGeometryH, const char* pszAltitudeMode );
122 
123 char CPL_DLL *OGR_G_ExportToJson( OGRGeometryH );
124 char CPL_DLL *OGR_G_ExportToJsonEx( OGRGeometryH, char** papszOptions );
125 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromJson( const char* );
126 
127 void CPL_DLL OGR_G_AssignSpatialReference( OGRGeometryH,
128  OGRSpatialReferenceH );
129 OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference( OGRGeometryH );
130 OGRErr CPL_DLL OGR_G_Transform( OGRGeometryH, OGRCoordinateTransformationH );
131 OGRErr CPL_DLL OGR_G_TransformTo( OGRGeometryH, OGRSpatialReferenceH );
132 
133 OGRGeometryH CPL_DLL OGR_G_Simplify( OGRGeometryH hThis, double tolerance );
134 OGRGeometryH CPL_DLL OGR_G_SimplifyPreserveTopology( OGRGeometryH hThis, double tolerance );
135 
136 void CPL_DLL OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength );
137 int CPL_DLL OGR_G_Intersects( OGRGeometryH, OGRGeometryH );
138 int CPL_DLL OGR_G_Equals( OGRGeometryH, OGRGeometryH );
139 /*int CPL_DLL OGR_G_EqualsExact( OGRGeometryH, OGRGeometryH, double );*/
140 int CPL_DLL OGR_G_Disjoint( OGRGeometryH, OGRGeometryH );
141 int CPL_DLL OGR_G_Touches( OGRGeometryH, OGRGeometryH );
142 int CPL_DLL OGR_G_Crosses( OGRGeometryH, OGRGeometryH );
143 int CPL_DLL OGR_G_Within( OGRGeometryH, OGRGeometryH );
144 int CPL_DLL OGR_G_Contains( OGRGeometryH, OGRGeometryH );
145 int CPL_DLL OGR_G_Overlaps( OGRGeometryH, OGRGeometryH );
146 
147 OGRGeometryH CPL_DLL OGR_G_Boundary( OGRGeometryH );
148 OGRGeometryH CPL_DLL OGR_G_ConvexHull( OGRGeometryH );
149 OGRGeometryH CPL_DLL OGR_G_Buffer( OGRGeometryH, double, int );
150 OGRGeometryH CPL_DLL OGR_G_Intersection( OGRGeometryH, OGRGeometryH );
151 OGRGeometryH CPL_DLL OGR_G_Union( OGRGeometryH, OGRGeometryH );
152 OGRGeometryH CPL_DLL OGR_G_UnionCascaded( OGRGeometryH );
153 OGRGeometryH CPL_DLL OGR_G_PointOnSurface( OGRGeometryH );
154 /*OGRGeometryH CPL_DLL OGR_G_Polygonize( OGRGeometryH *, int);*/
155 /*OGRGeometryH CPL_DLL OGR_G_Polygonizer_getCutEdges( OGRGeometryH *, int);*/
156 /*OGRGeometryH CPL_DLL OGR_G_LineMerge( OGRGeometryH );*/
157 
158 OGRGeometryH CPL_DLL OGR_G_Difference( OGRGeometryH, OGRGeometryH );
159 OGRGeometryH CPL_DLL OGR_G_SymDifference( OGRGeometryH, OGRGeometryH );
160 double CPL_DLL OGR_G_Distance( OGRGeometryH, OGRGeometryH );
161 double CPL_DLL OGR_G_Length( OGRGeometryH );
162 double CPL_DLL OGR_G_Area( OGRGeometryH );
163 int CPL_DLL OGR_G_Centroid( OGRGeometryH, OGRGeometryH );
164 
165 void CPL_DLL OGR_G_Empty( OGRGeometryH );
166 int CPL_DLL OGR_G_IsEmpty( OGRGeometryH );
167 int CPL_DLL OGR_G_IsValid( OGRGeometryH );
168 /*char CPL_DLL *OGR_G_IsValidReason( OGRGeometryH );*/
169 int CPL_DLL OGR_G_IsSimple( OGRGeometryH );
170 int CPL_DLL OGR_G_IsRing( OGRGeometryH );
171 
172 OGRGeometryH CPL_DLL OGR_G_Polygonize( OGRGeometryH );
173 
174 /* backward compatibility (non-standard methods) */
175 int CPL_DLL OGR_G_Intersect( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Intersects() instead");
176 int CPL_DLL OGR_G_Equal( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Equals() instead");
177 OGRGeometryH CPL_DLL OGR_G_SymmetricDifference( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_SymDifference() instead");
178 double CPL_DLL OGR_G_GetArea( OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead");
179 OGRGeometryH CPL_DLL OGR_G_GetBoundary( OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead");
180 
181 /* Methods for getting/setting vertices in points, line strings and rings */
182 int CPL_DLL OGR_G_GetPointCount( OGRGeometryH );
183 int CPL_DLL OGR_G_GetPoints( OGRGeometryH hGeom,
184  void* pabyX, int nXStride,
185  void* pabyY, int nYStride,
186  void* pabyZ, int nZStride);
187 double CPL_DLL OGR_G_GetX( OGRGeometryH, int );
188 double CPL_DLL OGR_G_GetY( OGRGeometryH, int );
189 double CPL_DLL OGR_G_GetZ( OGRGeometryH, int );
190 void CPL_DLL OGR_G_GetPoint( OGRGeometryH, int iPoint,
191  double *, double *, double * );
192 void CPL_DLL OGR_G_SetPoint( OGRGeometryH, int iPoint,
193  double, double, double );
194 void CPL_DLL OGR_G_SetPoint_2D( OGRGeometryH, int iPoint,
195  double, double );
196 void CPL_DLL OGR_G_AddPoint( OGRGeometryH, double, double, double );
197 void CPL_DLL OGR_G_AddPoint_2D( OGRGeometryH, double, double );
198 
199 /* Methods for getting/setting rings and members collections */
200 
201 int CPL_DLL OGR_G_GetGeometryCount( OGRGeometryH );
202 OGRGeometryH CPL_DLL OGR_G_GetGeometryRef( OGRGeometryH, int );
203 OGRErr CPL_DLL OGR_G_AddGeometry( OGRGeometryH, OGRGeometryH );
204 OGRErr CPL_DLL OGR_G_AddGeometryDirectly( OGRGeometryH, OGRGeometryH );
205 OGRErr CPL_DLL OGR_G_RemoveGeometry( OGRGeometryH, int, int );
206 
207 OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges( OGRGeometryH hLinesAsCollection,
208  int bBestEffort,
209  int bAutoClose,
210  double dfTolerance,
211  OGRErr * peErr );
212 
213 OGRErr CPL_DLL OGRSetGenerate_DB2_V72_BYTE_ORDER(
214  int bGenerate_DB2_V72_BYTE_ORDER );
215 
216 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(void);
217 
218 /* -------------------------------------------------------------------- */
219 /* Feature related (ogr_feature.h) */
220 /* -------------------------------------------------------------------- */
221 
222 #ifdef DEBUG
223 typedef struct OGRFieldDefnHS *OGRFieldDefnH;
224 typedef struct OGRFeatureDefnHS *OGRFeatureDefnH;
225 typedef struct OGRFeatureHS *OGRFeatureH;
226 typedef struct OGRStyleTableHS *OGRStyleTableH;
227 #else
228 typedef void *OGRFieldDefnH;
229 typedef void *OGRFeatureDefnH;
230 typedef void *OGRFeatureH;
231 typedef void *OGRStyleTableH;
232 #endif
233 
234 /* OGRFieldDefn */
235 
236 OGRFieldDefnH CPL_DLL OGR_Fld_Create( const char *, OGRFieldType ) CPL_WARN_UNUSED_RESULT;
237 void CPL_DLL OGR_Fld_Destroy( OGRFieldDefnH );
238 
239 void CPL_DLL OGR_Fld_SetName( OGRFieldDefnH, const char * );
240 const char CPL_DLL *OGR_Fld_GetNameRef( OGRFieldDefnH );
241 OGRFieldType CPL_DLL OGR_Fld_GetType( OGRFieldDefnH );
242 void CPL_DLL OGR_Fld_SetType( OGRFieldDefnH, OGRFieldType );
243 OGRJustification CPL_DLL OGR_Fld_GetJustify( OGRFieldDefnH );
244 void CPL_DLL OGR_Fld_SetJustify( OGRFieldDefnH, OGRJustification );
245 int CPL_DLL OGR_Fld_GetWidth( OGRFieldDefnH );
246 void CPL_DLL OGR_Fld_SetWidth( OGRFieldDefnH, int );
247 int CPL_DLL OGR_Fld_GetPrecision( OGRFieldDefnH );
248 void CPL_DLL OGR_Fld_SetPrecision( OGRFieldDefnH, int );
249 void CPL_DLL OGR_Fld_Set( OGRFieldDefnH, const char *, OGRFieldType,
250  int, int, OGRJustification );
251 int CPL_DLL OGR_Fld_IsIgnored( OGRFieldDefnH hDefn );
252 void CPL_DLL OGR_Fld_SetIgnored( OGRFieldDefnH hDefn, int );
253 
254 const char CPL_DLL *OGR_GetFieldTypeName( OGRFieldType );
255 
256 /* OGRFeatureDefn */
257 
258 OGRFeatureDefnH CPL_DLL OGR_FD_Create( const char * ) CPL_WARN_UNUSED_RESULT;
259 void CPL_DLL OGR_FD_Destroy( OGRFeatureDefnH );
260 void CPL_DLL OGR_FD_Release( OGRFeatureDefnH );
261 const char CPL_DLL *OGR_FD_GetName( OGRFeatureDefnH );
262 int CPL_DLL OGR_FD_GetFieldCount( OGRFeatureDefnH );
263 OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn( OGRFeatureDefnH, int );
264 int CPL_DLL OGR_FD_GetFieldIndex( OGRFeatureDefnH, const char * );
265 void CPL_DLL OGR_FD_AddFieldDefn( OGRFeatureDefnH, OGRFieldDefnH );
266 OGRErr CPL_DLL OGR_FD_DeleteFieldDefn( OGRFeatureDefnH hDefn, int iField );
267 OGRErr CPL_DLL OGR_FD_ReorderFieldDefns( OGRFeatureDefnH hDefn, int* panMap );
268 OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType( OGRFeatureDefnH );
269 void CPL_DLL OGR_FD_SetGeomType( OGRFeatureDefnH, OGRwkbGeometryType );
270 int CPL_DLL OGR_FD_IsGeometryIgnored( OGRFeatureDefnH );
271 void CPL_DLL OGR_FD_SetGeometryIgnored( OGRFeatureDefnH, int );
272 int CPL_DLL OGR_FD_IsStyleIgnored( OGRFeatureDefnH );
273 void CPL_DLL OGR_FD_SetStyleIgnored( OGRFeatureDefnH, int );
274 int CPL_DLL OGR_FD_Reference( OGRFeatureDefnH );
275 int CPL_DLL OGR_FD_Dereference( OGRFeatureDefnH );
276 int CPL_DLL OGR_FD_GetReferenceCount( OGRFeatureDefnH );
277 
278 /* OGRFeature */
279 
280 OGRFeatureH CPL_DLL OGR_F_Create( OGRFeatureDefnH ) CPL_WARN_UNUSED_RESULT;
281 void CPL_DLL OGR_F_Destroy( OGRFeatureH );
282 OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef( OGRFeatureH );
283 
284 OGRErr CPL_DLL OGR_F_SetGeometryDirectly( OGRFeatureH, OGRGeometryH );
285 OGRErr CPL_DLL OGR_F_SetGeometry( OGRFeatureH, OGRGeometryH );
286 OGRGeometryH CPL_DLL OGR_F_GetGeometryRef( OGRFeatureH );
287 OGRGeometryH CPL_DLL OGR_F_StealGeometry( 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 GByte CPL_DLL *OGR_F_GetFieldAsBinary( OGRFeatureH, int, int * );
306 int CPL_DLL OGR_F_GetFieldAsDateTime( OGRFeatureH, int, int *, int *, int *,
307  int *, int *, int *, 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 void CPL_DLL OGR_F_SetFieldBinary( OGRFeatureH, int, int, GByte * );
317 void CPL_DLL OGR_F_SetFieldDateTime( OGRFeatureH, int,
318  int, int, int, int, int, int, int );
319 
320 long CPL_DLL OGR_F_GetFID( OGRFeatureH );
321 OGRErr CPL_DLL OGR_F_SetFID( OGRFeatureH, long );
322 void CPL_DLL OGR_F_DumpReadable( OGRFeatureH, FILE * );
323 OGRErr CPL_DLL OGR_F_SetFrom( OGRFeatureH, OGRFeatureH, int );
324 OGRErr CPL_DLL OGR_F_SetFromWithMap( OGRFeatureH, OGRFeatureH, int , int * );
325 
326 const char CPL_DLL *OGR_F_GetStyleString( OGRFeatureH );
327 void CPL_DLL OGR_F_SetStyleString( OGRFeatureH, const char * );
328 void CPL_DLL OGR_F_SetStyleStringDirectly( OGRFeatureH, char * );
329 OGRStyleTableH CPL_DLL OGR_F_GetStyleTable( OGRFeatureH );
330 void CPL_DLL OGR_F_SetStyleTableDirectly( OGRFeatureH, OGRStyleTableH );
331 void CPL_DLL OGR_F_SetStyleTable( OGRFeatureH, OGRStyleTableH );
332 
333 /* -------------------------------------------------------------------- */
334 /* ogrsf_frmts.h */
335 /* -------------------------------------------------------------------- */
336 
337 #ifdef DEBUG
338 typedef struct OGRLayerHS *OGRLayerH;
339 typedef struct OGRDataSourceHS *OGRDataSourceH;
340 typedef struct OGRDriverHS *OGRSFDriverH;
341 #else
342 typedef void *OGRLayerH;
343 typedef void *OGRDataSourceH;
344 typedef void *OGRSFDriverH;
345 #endif
346 
347 /* OGRLayer */
348 
349 const char CPL_DLL* OGR_L_GetName( OGRLayerH );
350 OGRwkbGeometryType CPL_DLL OGR_L_GetGeomType( OGRLayerH );
351 OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter( OGRLayerH );
352 void CPL_DLL OGR_L_SetSpatialFilter( OGRLayerH, OGRGeometryH );
353 void CPL_DLL OGR_L_SetSpatialFilterRect( OGRLayerH,
354  double, double, double, double );
355 OGRErr CPL_DLL OGR_L_SetAttributeFilter( OGRLayerH, const char * );
356 void CPL_DLL OGR_L_ResetReading( OGRLayerH );
357 OGRFeatureH CPL_DLL OGR_L_GetNextFeature( OGRLayerH );
358 OGRErr CPL_DLL OGR_L_SetNextByIndex( OGRLayerH, long );
359 OGRFeatureH CPL_DLL OGR_L_GetFeature( OGRLayerH, long );
360 OGRErr CPL_DLL OGR_L_SetFeature( OGRLayerH, OGRFeatureH );
361 OGRErr CPL_DLL OGR_L_CreateFeature( OGRLayerH, OGRFeatureH );
362 OGRErr CPL_DLL OGR_L_DeleteFeature( OGRLayerH, long );
363 OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn( OGRLayerH );
364 OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef( OGRLayerH );
365 int CPL_DLL OGR_L_GetFeatureCount( OGRLayerH, int );
366 OGRErr CPL_DLL OGR_L_GetExtent( OGRLayerH, OGREnvelope *, int );
367 int CPL_DLL OGR_L_TestCapability( OGRLayerH, const char * );
368 OGRErr CPL_DLL OGR_L_CreateField( OGRLayerH, OGRFieldDefnH, int );
369 OGRErr CPL_DLL OGR_L_DeleteField( OGRLayerH, int iField );
370 OGRErr CPL_DLL OGR_L_ReorderFields( OGRLayerH, int* panMap );
371 OGRErr CPL_DLL OGR_L_ReorderField( OGRLayerH, int iOldFieldPos, int iNewFieldPos );
372 OGRErr CPL_DLL OGR_L_AlterFieldDefn( OGRLayerH, int iField, OGRFieldDefnH hNewFieldDefn, int nFlags );
373 OGRErr CPL_DLL OGR_L_StartTransaction( OGRLayerH );
374 OGRErr CPL_DLL OGR_L_CommitTransaction( OGRLayerH );
375 OGRErr CPL_DLL OGR_L_RollbackTransaction( OGRLayerH );
376 int CPL_DLL OGR_L_Reference( OGRLayerH );
377 int CPL_DLL OGR_L_Dereference( OGRLayerH );
378 int CPL_DLL OGR_L_GetRefCount( OGRLayerH );
379 OGRErr CPL_DLL OGR_L_SyncToDisk( OGRLayerH );
380 GIntBig CPL_DLL OGR_L_GetFeaturesRead( OGRLayerH );
381 const char CPL_DLL *OGR_L_GetFIDColumn( OGRLayerH );
382 const char CPL_DLL *OGR_L_GetGeometryColumn( OGRLayerH );
383 OGRStyleTableH CPL_DLL OGR_L_GetStyleTable( OGRLayerH );
384 void CPL_DLL OGR_L_SetStyleTableDirectly( OGRLayerH, OGRStyleTableH );
385 void CPL_DLL OGR_L_SetStyleTable( OGRLayerH, OGRStyleTableH );
386 OGRErr CPL_DLL OGR_L_SetIgnoredFields( OGRLayerH, const char** );
387 OGRErr CPL_DLL OGR_L_Intersection( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
388 OGRErr CPL_DLL OGR_L_Union( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
389 OGRErr CPL_DLL OGR_L_SymDifference( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
390 OGRErr CPL_DLL OGR_L_Identity( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
391 OGRErr CPL_DLL OGR_L_Update( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
392 OGRErr CPL_DLL OGR_L_Clip( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
393 OGRErr CPL_DLL OGR_L_Erase( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
394 
395 /* OGRDataSource */
396 
397 void CPL_DLL OGR_DS_Destroy( OGRDataSourceH );
398 const char CPL_DLL *OGR_DS_GetName( OGRDataSourceH );
399 int CPL_DLL OGR_DS_GetLayerCount( OGRDataSourceH );
400 OGRLayerH CPL_DLL OGR_DS_GetLayer( OGRDataSourceH, int );
401 OGRLayerH CPL_DLL OGR_DS_GetLayerByName( OGRDataSourceH, const char * );
402 OGRErr CPL_DLL OGR_DS_DeleteLayer( OGRDataSourceH, int );
403 OGRSFDriverH CPL_DLL OGR_DS_GetDriver( OGRDataSourceH );
404 OGRLayerH CPL_DLL OGR_DS_CreateLayer( OGRDataSourceH, const char *,
405  OGRSpatialReferenceH, OGRwkbGeometryType,
406  char ** );
407 OGRLayerH CPL_DLL OGR_DS_CopyLayer( OGRDataSourceH, OGRLayerH, const char *,
408  char ** );
409 int CPL_DLL OGR_DS_TestCapability( OGRDataSourceH, const char * );
410 OGRLayerH CPL_DLL OGR_DS_ExecuteSQL( OGRDataSourceH, const char *,
411  OGRGeometryH, const char * );
412 void CPL_DLL OGR_DS_ReleaseResultSet( OGRDataSourceH, OGRLayerH );
413 int CPL_DLL OGR_DS_Reference( OGRDataSourceH );
414 int CPL_DLL OGR_DS_Dereference( OGRDataSourceH );
415 int CPL_DLL OGR_DS_GetRefCount( OGRDataSourceH );
416 int CPL_DLL OGR_DS_GetSummaryRefCount( OGRDataSourceH );
417 OGRErr CPL_DLL OGR_DS_SyncToDisk( OGRDataSourceH );
418 OGRStyleTableH CPL_DLL OGR_DS_GetStyleTable( OGRDataSourceH );
419 void CPL_DLL OGR_DS_SetStyleTableDirectly( OGRDataSourceH, OGRStyleTableH );
420 void CPL_DLL OGR_DS_SetStyleTable( OGRDataSourceH, OGRStyleTableH );
421 
422 /* OGRSFDriver */
423 
424 const char CPL_DLL *OGR_Dr_GetName( OGRSFDriverH );
425 OGRDataSourceH CPL_DLL OGR_Dr_Open( OGRSFDriverH, const char *, int ) CPL_WARN_UNUSED_RESULT;
426 int CPL_DLL OGR_Dr_TestCapability( OGRSFDriverH, const char * );
427 OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource( OGRSFDriverH, const char *,
428  char ** ) CPL_WARN_UNUSED_RESULT;
429 OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource( OGRSFDriverH, OGRDataSourceH,
430  const char *, char ** ) CPL_WARN_UNUSED_RESULT;
431 OGRErr CPL_DLL OGR_Dr_DeleteDataSource( OGRSFDriverH, const char * );
432 
433 /* OGRSFDriverRegistrar */
434 
435 OGRDataSourceH CPL_DLL OGROpen( const char *, int, OGRSFDriverH * ) CPL_WARN_UNUSED_RESULT;
436 OGRDataSourceH CPL_DLL OGROpenShared( const char *, int, OGRSFDriverH * ) CPL_WARN_UNUSED_RESULT;
437 OGRErr CPL_DLL OGRReleaseDataSource( OGRDataSourceH );
438 void CPL_DLL OGRRegisterDriver( OGRSFDriverH );
439 void CPL_DLL OGRDeregisterDriver( OGRSFDriverH );
440 int CPL_DLL OGRGetDriverCount(void);
441 OGRSFDriverH CPL_DLL OGRGetDriver( int );
442 OGRSFDriverH CPL_DLL OGRGetDriverByName( const char * );
443 int CPL_DLL OGRGetOpenDSCount(void);
444 OGRDataSourceH CPL_DLL OGRGetOpenDS( int iDS );
445 
446 
447 /* note: this is also declared in ogrsf_frmts.h */
448 void CPL_DLL OGRRegisterAll(void);
449 void CPL_DLL OGRCleanupAll(void);
450 
451 /* -------------------------------------------------------------------- */
452 /* ogrsf_featurestyle.h */
453 /* -------------------------------------------------------------------- */
454 
455 #ifdef DEBUG
456 typedef struct OGRStyleMgrHS *OGRStyleMgrH;
457 typedef struct OGRStyleToolHS *OGRStyleToolH;
458 #else
459 typedef void *OGRStyleMgrH;
460 typedef void *OGRStyleToolH;
461 #endif
462 
463 /* OGRStyleMgr */
464 
465 OGRStyleMgrH CPL_DLL OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT;
466 void CPL_DLL OGR_SM_Destroy(OGRStyleMgrH hSM);
467 
468 const char CPL_DLL *OGR_SM_InitFromFeature(OGRStyleMgrH hSM,
469  OGRFeatureH hFeat);
470 int CPL_DLL OGR_SM_InitStyleString(OGRStyleMgrH hSM,
471  const char *pszStyleString);
472 int CPL_DLL OGR_SM_GetPartCount(OGRStyleMgrH hSM,
473  const char *pszStyleString);
474 OGRStyleToolH CPL_DLL OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId,
475  const char *pszStyleString);
476 int CPL_DLL OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST);
477 int CPL_DLL OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName,
478  const char *pszStyleString);
479 
480 /* OGRStyleTool */
481 
482 OGRStyleToolH CPL_DLL OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT;
483 void CPL_DLL OGR_ST_Destroy(OGRStyleToolH hST);
484 
485 OGRSTClassId CPL_DLL OGR_ST_GetType(OGRStyleToolH hST);
486 
487 OGRSTUnitId CPL_DLL OGR_ST_GetUnit(OGRStyleToolH hST);
488 void CPL_DLL OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit,
489  double dfGroundPaperScale);
490 
491 const char CPL_DLL *OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull);
492 int CPL_DLL OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull);
493 double CPL_DLL OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull);
494 void CPL_DLL OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue);
495 void CPL_DLL OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue);
496 void CPL_DLL OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue);
497 const char CPL_DLL *OGR_ST_GetStyleString(OGRStyleToolH hST);
498 
499 int CPL_DLL OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor,
500  int *pnRed, int *pnGreen, int *pnBlue,
501  int *pnAlpha);
502 
503 /* OGRStyleTable */
504 
505 OGRStyleTableH CPL_DLL OGR_STBL_Create( void ) CPL_WARN_UNUSED_RESULT;
506 void CPL_DLL OGR_STBL_Destroy( OGRStyleTableH hSTBL );
507 int CPL_DLL OGR_STBL_SaveStyleTable( OGRStyleTableH hStyleTable,
508  const char *pszFilename );
509 int CPL_DLL OGR_STBL_LoadStyleTable( OGRStyleTableH hStyleTable,
510  const char *pszFilename );
511 const char CPL_DLL *OGR_STBL_Find( OGRStyleTableH hStyleTable, const char *pszName );
512 void CPL_DLL OGR_STBL_ResetStyleStringReading( OGRStyleTableH hStyleTable );
513 const char CPL_DLL *OGR_STBL_GetNextStyle( OGRStyleTableH hStyleTable);
514 const char CPL_DLL *OGR_STBL_GetLastStyleName( OGRStyleTableH hStyleTable);
515 
516 CPL_C_END
517 
518 #endif /* ndef OGR_API_H_INCLUDED */
OGRSpatialReferenceH OGR_G_GetSpatialReference(OGRGeometryH)
Returns spatial reference system for geometry.
Definition: ogrgeometry.cpp:1244
OGRFieldDefnH OGR_Fld_Create(const char *, OGRFieldType) CPL_WARN_UNUSED_RESULT
Create a new field definition.
Definition: ogrfielddefn.cpp:89
char * OGR_G_ExportToGMLEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:976
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:1341
OGRErr OGR_L_ReorderFields(OGRLayerH, int *panMap)
Reorder all the fields of a layer.
Definition: ogrlayer.cpp:589
OGRErr OGRSetGenerate_DB2_V72_BYTE_ORDER(int bGenerate_DB2_V72_BYTE_ORDER)
Special entry point to enable the hack for generating DB2 V7.2 style WKB.
Definition: ogrgeometry.cpp:1888
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:125
OGRErr OGR_L_ReorderField(OGRLayerH, int iOldFieldPos, int iNewFieldPos)
Reorder an existing field on a layer.
Definition: ogrlayer.cpp:659
int OGR_G_GetCoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:683
OGRErr OGR_G_ImportFromWkb(OGRGeometryH, unsigned char *, int)
Assign geometry from well known binary data.
Definition: ogrgeometry.cpp:954
OGRDataSourceH OGRGetOpenDS(int iDS)
Return the iDS th datasource opened.
Definition: ogrsfdriverregistrar.cpp:551
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:370
OGRErr OGR_G_ImportFromWkt(OGRGeometryH, char **)
Assign geometry from well known text data.
Definition: ogrgeometry.cpp:1056
OGRGeometryH OGR_L_GetSpatialFilter(OGRLayerH)
This function returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:816
double OGR_G_Distance(OGRGeometryH, OGRGeometryH)
Compute distance between two geometries.
Definition: ogrgeometry.cpp:2052
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
Fetch geometry type.
Definition: ogrgeometry.cpp:1136
Definition: cpl_minixml.h:65
void OGR_G_CloseRings(OGRGeometryH)
Force rings to be closed.
Definition: ogrgeometry.cpp:3402
OGRGeometryH OGR_G_ApproximateArcAngles(double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius, double dfSecondaryAxis, double dfRotation, double dfStartAngle, double dfEndAngle, double dfMaxAngleStepSizeDegrees)
Definition: ogrgeometryfactory.cpp:2521
OGRErr OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int)
Create a new field on a layer.
Definition: ogrlayer.cpp:532
OGRErr OGR_G_ExportToWkt(OGRGeometryH, char **)
Convert a geometry into well known text format.
Definition: ogrgeometry.cpp:1098
OGRFeatureH OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT
Feature factory.
Definition: ogrfeature.cpp:99
double OGR_G_GetArea(OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead")
Compute geometry area (deprecated)
Definition: ogr_api.cpp:914
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition: ogrfeaturestyle.cpp:2434
void OGR_F_SetFieldStringList(OGRFeatureH, int, char **)
Set field to list of strings value.
Definition: ogrfeature.cpp:2243
OGRGeometryH OGR_G_SimplifyPreserveTopology(OGRGeometryH hThis, double tolerance)
Simplify the geometry while preserving topology.
Definition: ogrgeometry.cpp:3797
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition: ogrfeature.cpp:1815
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:132
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:257
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:314
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition: ogrdatasource.cpp:89
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:388
OGRErr OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int)
Fetch the extent of this layer.
Definition: ogrlayer.cpp:267
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition: ogrfeature.cpp:1901
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:799
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:764
int OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:1022
OGRErr OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH)
Add a geometry to a geometry container.
Definition: ogr_api.cpp:652
OGRDataSourceH OGR_Dr_Open(OGRSFDriverH, const char *, int) CPL_WARN_UNUSED_RESULT
Attempt to open file with this driver.
Definition: ogrsfdriver.cpp:133
OGRErr OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH)
Transform geometry to new spatial reference system.
Definition: ogrgeometry.cpp:484
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:322
OGRErr OGR_L_AlterFieldDefn(OGRLayerH, int iField, OGRFieldDefnH hNewFieldDefn, int nFlags)
Alter the definition of an existing field on a layer.
Definition: ogrlayer.cpp:689
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:2662
int OGR_G_Centroid(OGRGeometryH, OGRGeometryH)
Compute the geometry centroid.
Definition: ogrgeometry.cpp:3532
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:443
void OGR_G_AddPoint_2D(OGRGeometryH, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:501
OGRErr OGR_L_StartTransaction(OGRLayerH)
For datasources which support transactions, StartTransaction creates a transaction.
Definition: ogrlayer.cpp:713
OGRGeometryH OGR_G_UnionCascaded(OGRGeometryH)
Compute union using cascading.
Definition: ogrgeometry.cpp:2646
OGRErr OGR_L_SetFeature(OGRLayerH, OGRFeatureH)
Rewrite an existing feature.
Definition: ogrlayer.cpp:469
void OGR_G_GetEnvelope3D(OGRGeometryH, OGREnvelope3D *)
Computes and returns the bounding envelope (3D) for this geometry in the passed psEnvelope structure...
Definition: ogrgeometry.cpp:902
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:704
OGRGeometryH OGR_G_Boundary(OGRGeometryH)
Compute boundary.
Definition: ogrgeometry.cpp:2239
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
Definition: ogrsfdriverregistrar.cpp:679
OGRErr OGR_F_SetFID(OGRFeatureH, long)
Set the feature identifier.
Definition: ogrfeature.cpp:2753
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:332
int OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor, int *pnRed, int *pnGreen, int *pnBlue, int *pnAlpha)
Return the r,g,b,a components of a color encoded in #RRGGBB[AA] format.
Definition: ogrfeaturestyle.cpp:2522
int OGR_G_Overlaps(OGRGeometryH, OGRGeometryH)
Test for overlap.
Definition: ogrgeometry.cpp:3363
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:2947
int OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:578
OGRErr OGR_G_CreateFromWkb(unsigned char *, OGRSpatialReferenceH, OGRGeometryH *, int)
Create a geometry object of the appropriate type from it's well known binary representation.
Definition: ogrgeometryfactory.cpp:187
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:2032
OGRErr OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Symmetrical difference of two layers.
Definition: ogrlayer.cpp:2385
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:225
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1076
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH)
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:781
void OGR_G_Empty(OGRGeometryH)
Clear geometry information. This restores the geometry to it's initial state after construction...
Definition: ogrgeometry.cpp:1280
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:867
OGRSTClassId OGR_ST_GetType(OGRStyleToolH hST)
Determine type of Style Tool.
Definition: ogrfeaturestyle.cpp:1599
void OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH)
Set a new spatial filter.
Definition: ogrlayer.cpp:839
void OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit, double dfGroundPaperScale)
Set Style Tool units.
Definition: ogrfeaturestyle.cpp:1649
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1618
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
Definition: ogrsfdriverregistrar.cpp:738
const char * OGR_L_GetName(OGRLayerH)
Return the layer name.
Definition: ogrlayer.cpp:1329
void OGRDeregisterDriver(OGRSFDriverH)
Remove the passed driver from the list of registered drivers.
Definition: ogrsfdriverregistrar.cpp:656
void OGR_G_AddPoint(OGRGeometryH, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:461
OGRDataSourceH OGR_Dr_CreateDataSource(OGRSFDriverH, const char *, char **) CPL_WARN_UNUSED_RESULT
This function attempts to create a new data source based on the passed driver.
Definition: ogrsfdriver.cpp:62
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:672
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH)
Convert to multipolygon.
Definition: ogrgeometryfactory.cpp:653
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:162
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:808
OGRFeatureDefnH OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:82
int OGR_G_IsEmpty(OGRGeometryH)
Test if the geometry is empty.
Definition: ogrgeometry.cpp:1316
const char * OGR_L_GetFIDColumn(OGRLayerH)
This method returns the name of the underlying database column being used as the FID column...
Definition: ogrlayer.cpp:1214
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH)
Take away ownership of geometry.
Definition: ogrfeature.cpp:438
const char * OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable)
Definition: ogrfeaturestyle.cpp:1333
OGRErr OGR_DS_SyncToDisk(OGRDataSourceH)
Flush pending changes to disk.
Definition: ogrdatasource.cpp:1766
double OGR_G_GetZ(OGRGeometryH, int)
Fetch the z coordinate of a point from a geometry.
Definition: ogr_api.cpp:174
void OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength)
Modify the geometry such it has no segment longer then the given distance.
Definition: ogrgeometry.cpp:605
const char * OGR_G_GetGeometryName(OGRGeometryH)
Fetch WKT name for geometry type.
Definition: ogrgeometry.cpp:1172
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:676
void OGR_F_SetFieldRaw(OGRFeatureH, int, OGRField *)
Set field.
Definition: ogrfeature.cpp:2561
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:475
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch an handle to the internal field value given the index.
Definition: ogrfeature.cpp:849
void OGRRegisterDriver(OGRSFDriverH)
Add a driver to the list of registered drivers.
Definition: ogrsfdriverregistrar.cpp:616
OGRGeometryH OGR_G_SymDifference(OGRGeometryH, OGRGeometryH)
Compute symmetric difference.
Definition: ogrgeometry.cpp:2862
OGRErr OGR_L_SyncToDisk(OGRLayerH)
Flush pending changes to disk.
Definition: ogrlayer.cpp:1148
OGRGeometryH OGR_G_PointOnSurface(OGRGeometryH)
Returns a point guaranteed to lie on the surface.
Definition: ogrgeometry.cpp:3577
void OGR_G_GetEnvelope(OGRGeometryH, OGREnvelope *)
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure...
Definition: ogrgeometry.cpp:868
OGRErr OGR_L_SetIgnoredFields(OGRLayerH, const char **)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrlayer.cpp:1404
enum ogr_style_tool_class_id OGRSTClassId
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition: ogrdatasource.cpp:1704
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:2183
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition: ogrdatasource.cpp:459
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:657
OGRGeometryH OGR_G_GetBoundary(OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead")
Compute boundary (deprecated)
Definition: ogrgeometry.cpp:2254
int OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName, const char *pszStyleString)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:450
int OGR_L_GetFeatureCount(OGRLayerH, int)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:189
void OGR_G_SetCoordinateDimension(OGRGeometryH, int)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:729
void OGR_G_SetPoint(OGRGeometryH, int iPoint, double, double, double)
Set the location of a vertex in a point or linestring geometry.
Definition: ogr_api.cpp:350
int OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:648
OGRGeometryH OGR_G_ConvexHull(OGRGeometryH)
Compute convex hull.
Definition: ogrgeometry.cpp:2137
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition: ogrfeaturestyle.cpp:2243
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string. This method operate exactly as OGR_F_SetStyleStringDirectly() except that i...
Definition: ogrfeature.cpp:3391
int OGR_Fld_GetPrecision(OGRFieldDefnH)
Get the formatting precision for this field. This should normally be zero for fields of types other t...
Definition: ogrfielddefn.cpp:543
OGRGeometryH OGR_G_Simplify(OGRGeometryH hThis, double tolerance)
Compute a simplified geometry.
Definition: ogrgeometry.cpp:3708
OGRErr OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry into well known binary format.
Definition: ogrgeometry.cpp:1003
OGRErr OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Union of two layers.
Definition: ogrlayer.cpp:2084
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition: ogrfeaturestyle.cpp:2295
int OGR_Dr_TestCapability(OGRSFDriverH, const char *)
Test if capability is available.
Definition: ogrsfdriver.cpp:151
OGRDataSourceH OGROpen(const char *, int, OGRSFDriverH *) CPL_WARN_UNUSED_RESULT
Open a file / data source with one of the registered drivers.
Definition: ogrsfdriverregistrar.cpp:276
OGRErr OGR_L_Clip(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Clip off areas that are not covered by the method layer.
Definition: ogrlayer.cpp:3143
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
Definition: ogrsfdriver.cpp:107
enum ogr_style_tool_units_id OGRSTUnitId
OGRwkbGeometryType
Definition: ogr_core.h:297
int OGR_G_Crosses(OGRGeometryH, OGRGeometryH)
Test for crossing.
Definition: ogrgeometry.cpp:3121
OGRGeometryH OGR_G_CreateFromGML(const char *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:2304
void OGR_L_ResetReading(OGRLayerH)
Reset feature reading to start on the first feature.
Definition: ogrlayer.cpp:1098
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition: ogrfeaturestyle.cpp:2191
int OGR_G_IsSimple(OGRGeometryH)
Returns TRUE if the geometry is simple.
Definition: ogrgeometry.cpp:1458
OGRGeometryH OGR_G_Difference(OGRGeometryH, OGRGeometryH)
Compute difference.
Definition: ogrgeometry.cpp:2744
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition: ogrdatasource.cpp:1679
OGRGeometryH OGR_G_ForceToMultiPoint(OGRGeometryH)
Convert to multipoint.
Definition: ogrgeometryfactory.cpp:752
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:175
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH)
Fetch the next available feature from this layer.
Definition: ogrlayer.cpp:447
int OGR_F_GetFieldCount(OGRFeatureH)
Fetch number of fields on this feature This will always be the same as the field count for the OGRFea...
Definition: ogrfeature.cpp:573
void OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:277
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:438
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition: ogrfeaturestyle.cpp:2475
OGRGeometryH OGR_G_Buffer(OGRGeometryH, double, int)
Compute buffer of geometry.
Definition: ogrgeometry.cpp:2364
int OGR_G_Touches(OGRGeometryH, OGRGeometryH)
Test for touching.
Definition: ogrgeometry.cpp:3040
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition: ogrdatasource.cpp:1691
char * OGR_G_ExportToJson(OGRGeometryH)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:500
void OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int, OGRJustification)
Set defining parameters for a field in one call.
Definition: ogrfielddefn.cpp:635
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:939
long OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:2698
const char * OGR_Dr_GetName(OGRSFDriverH)
Fetch name of driver (file format). This name should be relatively short (10-40 characters), and should reflect the underlying file format. For instance "ESRI Shapefile".
Definition: ogrsfdriver.cpp:121
OGRErr OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH)
Apply arbitrary coordinate transformation to geometry.
Definition: ogrgeometry.cpp:542
OGRErr OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH)
Add a geometry directly to an existing geometry container.
Definition: ogr_api.cpp:712
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2391
OGRwkbGeometryType OGR_L_GetGeomType(OGRLayerH)
Return the layer geometry type.
Definition: ogrlayer.cpp:1349
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:866
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:732
OGRErr OGR_L_CommitTransaction(OGRLayerH)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: ogrlayer.cpp:735
int OGR_G_Contains(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:3281
OGRErr OGR_L_Erase(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Remove areas that are covered by the method layer.
Definition: ogrlayer.cpp:3374
OGRErr OGR_G_RemoveGeometry(OGRGeometryH, int, int)
Remove a geometry from an exiting geometry container.
Definition: ogr_api.cpp:775
int OGR_L_TestCapability(OGRLayerH, const char *)
Test if this layer supported the named capability.
Definition: ogrlayer.cpp:793
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:554
OGRStyleMgrH OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT
OGRStyleMgr factory.
Definition: ogrfeaturestyle.cpp:148
OGRErr OGR_L_SetAttributeFilter(OGRLayerH, const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:365
OGRSFDriverH OGR_DS_GetDriver(OGRDataSourceH)
Returns the driver that the dataset was opened with.
Definition: ogrdatasource.cpp:1788
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition: ogrdatasource.cpp:1716
int OGR_G_GetGeometryCount(OGRGeometryH)
Fetch the number of elements in a geometry or number of geometries in container.
Definition: ogr_api.cpp:543
int OGR_G_GetPoints(OGRGeometryH hGeom, void *pabyX, int nXStride, void *pabyY, int nYStride, void *pabyZ, int nZStride)
Returns all points of line string.
Definition: ogr_api.cpp:234
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition: ogrdatasource.cpp:538
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:411
OGRErr OGR_L_Identity(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Identify the features of this layer with the ones from the identity layer.
Definition: ogrlayer.cpp:2643
char * OGR_G_ExportToGML(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:936
OGRErr OGR_L_Update(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Update this layer with features from the update layer.
Definition: ogrlayer.cpp:2913
OGRGeometryH OGR_G_Intersection(OGRGeometryH, OGRGeometryH)
Compute intersection.
Definition: ogrgeometry.cpp:2463
OGRJustification
Definition: ogr_core.h:385
OGRStyleTableH OGR_STBL_Create(void) CPL_WARN_UNUSED_RESULT
OGRStyleTable factory.
Definition: ogrfeaturestyle.cpp:802
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:169
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:579
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:2107
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition: ogrfeature.cpp:259
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:1029
OGRFeatureH OGR_F_Clone(OGRFeatureH)
Duplicate feature.
Definition: ogrfeature.cpp:534
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:642
const double * OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:1482
char * OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
Convert a geometry into KML format.
Definition: ogr2kmlgeometry.cpp:470
OGRGeometryH OGR_G_CreateGeometry(OGRwkbGeometryType)
Create an empty geometry of desired type.
Definition: ogrgeometryfactory.cpp:427
OGRFieldType
Definition: ogr_core.h:364
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:1554
Definition: ogr_core.h:151
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition: ogrdatasource.cpp:1728
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:1624
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:711
void OGRRegisterAll(void)
Register all drivers.
Definition: ogrregisterall.cpp:38
OGRErr OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Intersection of two layers.
Definition: ogrlayer.cpp:1761
OGRGeometryH OGR_G_Polygonize(OGRGeometryH)
Polygonizes a set of sparse edges.
Definition: ogrgeometry.cpp:3927
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1250
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, GByte *)
Set field to binary data.
Definition: ogrfeature.cpp:2305
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:1411
void OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *, double *)
Fetch a point in line string or a point geometry.
Definition: ogr_api.cpp:282
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1406
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:379
OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH)
Compute union.
Definition: ogrgeometry.cpp:2559
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH)
Convert to multilinestring.
Definition: ogrgeometryfactory.cpp:942
double OGR_G_Length(OGRGeometryH)
Compute length of a geometry.
Definition: ogr_api.cpp:818
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
Definition: ogrsfdriverregistrar.cpp:707
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH)
Convert to line string.
Definition: ogrgeometryfactory.cpp:2657
void OGR_STBL_Destroy(OGRStyleTableH hSTBL)
Destroy Style Table.
Definition: ogrfeaturestyle.cpp:844
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition: ogrfeature.cpp:3042
void OGRCleanupAll(void)
Cleanup all OGR related resources.
Definition: ogrsfdriverregistrar.cpp:138
OGRLayerH OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: ogrdatasource.cpp:1651
void OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double, double)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:873
Definition: ogr_core.h:47
Definition: ogr_core.h:403
OGRErr OGR_L_SetNextByIndex(OGRLayerH, long)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:435
OGRGeometryH OGR_G_ForceToPolygon(OGRGeometryH)
Convert to polygon.
Definition: ogrgeometryfactory.cpp:550
int OGR_G_WkbSize(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:838
OGRErr OGR_G_CreateFromWkt(char **, OGRSpatialReferenceH, OGRGeometryH *)
Create a geometry object of the appropriate type from it's well known text representation.
Definition: ogrgeometryfactory.cpp:344
int OGR_G_Within(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:3201
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:524
OGRStyleToolH OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId, const char *pszStyleString)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:732
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:3341
OGRGeometryH OGRBuildPolygonFromEdges(OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose, double dfTolerance, OGRErr *peErr)
Definition: ograssemblepolygon.cpp:133
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH)
Fetch the schema information for this layer.
Definition: ogrlayer.cpp:769
OGRErr OGRReleaseDataSource(OGRDataSourceH)
Drop a reference to this datasource, and if the reference count drops to zero close (destroy) the dat...
Definition: ogrsfdriverregistrar.cpp:512
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:833
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:2388
OGRLayerH OGR_DS_CreateLayer(OGRDataSourceH, const char *, OGRSpatialReferenceH, OGRwkbGeometryType, char **)
This function attempts to create a new layer on the data source with the indicated name...
Definition: ogrdatasource.cpp:227
const char * OGR_L_GetGeometryColumn(OGRLayerH)
This method returns the name of the underlying database column being used as the geometry column...
Definition: ogrlayer.cpp:1236
OGRErr OGR_L_RollbackTransaction(OGRLayerH)
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: ogrlayer.cpp:757
void OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue)
Set Style Tool parameter value from a string.
Definition: ogrfeaturestyle.cpp:2346
void OGR_SM_Destroy(OGRStyleMgrH hSM)
Destroy Style Manager.
Definition: ogrfeaturestyle.cpp:181
OGRErr OGR_L_CreateFeature(OGRLayerH, OGRFeatureH)
Create and write a new feature within a layer.
Definition: ogrlayer.cpp:492
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, int *)
Set one feature from another.
Definition: ogrfeature.cpp:3149
double OGR_G_GetY(OGRGeometryH, int)
Fetch the x coordinate of a point from a geometry.
Definition: ogr_api.cpp:128
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1370
OGRFeatureH OGR_L_GetFeature(OGRLayerH, long)
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:398
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:475
int OGRGetOpenDSCount(void)
Return the number of opened datasources.
Definition: ogrsfdriverregistrar.cpp:525
void OGR_G_SetPoint_2D(OGRGeometryH, int iPoint, double, double)
Set the location of a vertex in a point or linestring geometry.
Definition: ogr_api.cpp:407
int OGR_G_Equals(OGRGeometryH, OGRGeometryH)
Returns TRUE if two geometries are equivalent.
Definition: ogrgeometry.cpp:769
OGRGeometryH OGR_G_SymmetricDifference(OGRGeometryH, OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_SymDifference() instead")
Compute symmetric difference (deprecated)
Definition: ogrgeometry.cpp:2878
void OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType)
Set the type of this field. This should never be done to an OGRFieldDefn that is already part of an O...
Definition: ogrfielddefn.cpp:271
const char * OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat)
Initialize style manager from the style string of a feature.
Definition: ogrfeaturestyle.cpp:275
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:901
int OGR_G_IsRing(OGRGeometryH)
Test if the geometry is a ring.
Definition: ogrgeometry.cpp:1529
void OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *)
Dump geometry in well known text format to indicated output file.
Definition: ogrgeometry.cpp:214
void OGR_G_DestroyGeometry(OGRGeometryH)
Destroy geometry object.
Definition: ogrgeometryfactory.cpp:471
int OGR_G_Disjoint(OGRGeometryH, OGRGeometryH)
Test for disjointness.
Definition: ogrgeometry.cpp:2959
OGRErr OGR_L_DeleteField(OGRLayerH, int iField)
Create a new field on a layer.
Definition: ogrlayer.cpp:562
void OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType)
Assign the base geometry type for the passed layer (the same as the feature definition).
Definition: ogrfeaturedefn.cpp:602
const char * OGR_STBL_Find(OGRStyleTableH hStyleTable, const char *pszName)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1134
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1302
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:507
OGRErr OGR_L_DeleteFeature(OGRLayerH, long)
Delete feature from layer.
Definition: ogrlayer.cpp:1170
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:235
OGRGeometryH OGR_G_Clone(OGRGeometryH)
Make a copy of this object.
Definition: ogrgeometry.cpp:1208
int OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *, int *, int *, int *, int *)
Fetch field value as date and time.
Definition: ogrfeature.cpp:1723
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:203
OGRDataSourceH OGR_Dr_CopyDataSource(OGRSFDriverH, OGRDataSourceH, const char *, char **) CPL_WARN_UNUSED_RESULT
This function creates a new datasource by copying all the layers from the source datasource.
Definition: ogrsfdriver.cpp:211
OGRGeometryH OGR_G_GetGeometryRef(OGRGeometryH, int)
Fetch geometry from a geometry container.
Definition: ogr_api.cpp:597
int OGR_G_Intersects(OGRGeometryH, OGRGeometryH)
Do these features intersect?
Definition: ogrgeometry.cpp:382
int OGR_G_GetDimension(OGRGeometryH)
Get the dimension of this geometry.
Definition: ogrgeometry.cpp:636
int OGR_G_IsValid(OGRGeometryH)
Test if the geometry is valid.
Definition: ogrgeometry.cpp:1387
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string. This method operate exactly as OGR_F_SetStyleString() except that it assume...
Definition: ogrfeature.cpp:3438
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:614
double OGR_G_GetX(OGRGeometryH, int)
Fetch the x coordinate of a point from a geometry.
Definition: ogr_api.cpp:82
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition: ogrdatasource.cpp:491
int OGR_G_GetPointCount(OGRGeometryH)
Fetch number of points from a geometry.
Definition: ogr_api.cpp:48
void OGR_G_FlattenTo2D(OGRGeometryH)
Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0.
Definition: ogrgeometry.cpp:1768

Generated for GDAL by doxygen 1.8.5.