GDAL

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

ogr_api.h
Go to the documentation of this file.
1 /******************************************************************************
2 * $Id: ogr_api.h 33631 2016-03-04 06:28:09Z goatbar $
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 * Copyright (c) 2008-2013, Even Rouault <even dot rouault at mines-paris dot org>
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included
20 * in all copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28 * DEALINGS IN THE SOFTWARE.
29 ****************************************************************************/
30
31 #ifndef OGR_API_H_INCLUDED
32 #define OGR_API_H_INCLUDED
33
43 #include "cpl_progress.h"
44 #include "cpl_minixml.h"
45 #include "ogr_core.h"
46
47 CPL_C_START
48
49 /* -------------------------------------------------------------------- */
50 /* Geometry related functions (ogr_geometry.h) */
51 /* -------------------------------------------------------------------- */
52 #ifdef DEBUG
53 typedef struct OGRGeometryHS *OGRGeometryH;
54 #else
55 typedef void *OGRGeometryH;
56 #endif
57
58 #ifndef DEFINED_OGRSpatialReferenceH
59 #define DEFINED_OGRSpatialReferenceH
60
61 #ifdef DEBUG
62 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
63 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
64 #else
65 typedef void *OGRSpatialReferenceH;
66 typedef void *OGRCoordinateTransformationH;
67 #endif
68
69 #endif
70
71 struct _CPLXMLNode;
72
73 /* From base OGRGeometry class */
74
75 OGRErr CPL_DLL OGR_G_CreateFromWkb( unsigned char *, OGRSpatialReferenceH,
76 OGRGeometryH *, int );
77 OGRErr CPL_DLL OGR_G_CreateFromWkt( char **, OGRSpatialReferenceH,
78 OGRGeometryH * );
79 OGRErr CPL_DLL OGR_G_CreateFromFgf( unsigned char *, OGRSpatialReferenceH,
80 OGRGeometryH *, int, int * );
81 void CPL_DLL OGR_G_DestroyGeometry( OGRGeometryH );
82 OGRGeometryH CPL_DLL OGR_G_CreateGeometry( OGRwkbGeometryType ) CPL_WARN_UNUSED_RESULT;
83 OGRGeometryH CPL_DLL
84 OGR_G_ApproximateArcAngles(
85 double dfCenterX, double dfCenterY, double dfZ,
86 double dfPrimaryRadius, double dfSecondaryAxis, double dfRotation,
87 double dfStartAngle, double dfEndAngle,
88 double dfMaxAngleStepSizeDegrees ) CPL_WARN_UNUSED_RESULT;
89
90 OGRGeometryH CPL_DLL OGR_G_ForceToPolygon( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
91 OGRGeometryH CPL_DLL OGR_G_ForceToLineString( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
92 OGRGeometryH CPL_DLL OGR_G_ForceToMultiPolygon( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
93 OGRGeometryH CPL_DLL OGR_G_ForceToMultiPoint( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
94 OGRGeometryH CPL_DLL OGR_G_ForceToMultiLineString( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
95 OGRGeometryH CPL_DLL OGR_G_ForceTo( OGRGeometryH hGeom,
96 OGRwkbGeometryType eTargetType,
97 char** papszOptions ) CPL_WARN_UNUSED_RESULT;
98
99 int CPL_DLL OGR_G_GetDimension( OGRGeometryH );
100 int CPL_DLL OGR_G_GetCoordinateDimension( OGRGeometryH );
101 int CPL_DLL OGR_G_CoordinateDimension( OGRGeometryH );
102 void CPL_DLL OGR_G_SetCoordinateDimension( OGRGeometryH, int );
103 int CPL_DLL OGR_G_Is3D( OGRGeometryH );
104 int CPL_DLL OGR_G_IsMeasured( OGRGeometryH );
105 void CPL_DLL OGR_G_Set3D( OGRGeometryH, int );
106 void CPL_DLL OGR_G_SetMeasured( OGRGeometryH, int );
107 OGRGeometryH CPL_DLL OGR_G_Clone( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
108 void CPL_DLL OGR_G_GetEnvelope( OGRGeometryH, OGREnvelope * );
109 void CPL_DLL OGR_G_GetEnvelope3D( OGRGeometryH, OGREnvelope3D * );
110 OGRErr CPL_DLL OGR_G_ImportFromWkb( OGRGeometryH, unsigned char *, int );
111 OGRErr CPL_DLL OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder, unsigned char*);
112 OGRErr CPL_DLL OGR_G_ExportToIsoWkb( OGRGeometryH, OGRwkbByteOrder, unsigned char*);
113 int CPL_DLL OGR_G_WkbSize( OGRGeometryH hGeom );
114 OGRErr CPL_DLL OGR_G_ImportFromWkt( OGRGeometryH, char ** );
115 OGRErr CPL_DLL OGR_G_ExportToWkt( OGRGeometryH, char ** );
116 OGRErr CPL_DLL OGR_G_ExportToIsoWkt( OGRGeometryH, char ** );
117 OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType( OGRGeometryH );
118 const char CPL_DLL *OGR_G_GetGeometryName( OGRGeometryH );
119 void CPL_DLL OGR_G_DumpReadable( OGRGeometryH, FILE *, const char * );
120 void CPL_DLL OGR_G_FlattenTo2D( OGRGeometryH );
121 void CPL_DLL OGR_G_CloseRings( OGRGeometryH );
122
123 OGRGeometryH CPL_DLL OGR_G_CreateFromGML( const char * ) CPL_WARN_UNUSED_RESULT;
124 char CPL_DLL *OGR_G_ExportToGML( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
125 char CPL_DLL *OGR_G_ExportToGMLEx( OGRGeometryH, char** papszOptions ) CPL_WARN_UNUSED_RESULT;
126
127 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree( const CPLXMLNode * ) CPL_WARN_UNUSED_RESULT;
128 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
129 CPLXMLNode CPL_DLL *OGR_G_ExportEnvelopeToGMLTree( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
130
131 char CPL_DLL *OGR_G_ExportToKML( OGRGeometryH, const char* pszAltitudeMode ) CPL_WARN_UNUSED_RESULT;
132
133 char CPL_DLL *OGR_G_ExportToJson( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
134 char CPL_DLL *OGR_G_ExportToJsonEx( OGRGeometryH, char** papszOptions ) CPL_WARN_UNUSED_RESULT;
135 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromJson( const char* ) CPL_WARN_UNUSED_RESULT;
136
137 void CPL_DLL OGR_G_AssignSpatialReference( OGRGeometryH,
138 OGRSpatialReferenceH );
139 OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference( OGRGeometryH );
140 OGRErr CPL_DLL OGR_G_Transform( OGRGeometryH, OGRCoordinateTransformationH );
141 OGRErr CPL_DLL OGR_G_TransformTo( OGRGeometryH, OGRSpatialReferenceH );
142
143 OGRGeometryH CPL_DLL OGR_G_Simplify( OGRGeometryH hThis, double tolerance ) CPL_WARN_UNUSED_RESULT;
144 OGRGeometryH CPL_DLL OGR_G_SimplifyPreserveTopology( OGRGeometryH hThis, double tolerance ) CPL_WARN_UNUSED_RESULT;
145 OGRGeometryH CPL_DLL OGR_G_DelaunayTriangulation( OGRGeometryH hThis, double dfTolerance, int bOnlyEdges ) CPL_WARN_UNUSED_RESULT;
146
147 void CPL_DLL OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength );
148 int CPL_DLL OGR_G_Intersects( OGRGeometryH, OGRGeometryH );
149 int CPL_DLL OGR_G_Equals( OGRGeometryH, OGRGeometryH );
150 /*int CPL_DLL OGR_G_EqualsExact( OGRGeometryH, OGRGeometryH, double );*/
151 int CPL_DLL OGR_G_Disjoint( OGRGeometryH, OGRGeometryH );
152 int CPL_DLL OGR_G_Touches( OGRGeometryH, OGRGeometryH );
153 int CPL_DLL OGR_G_Crosses( OGRGeometryH, OGRGeometryH );
154 int CPL_DLL OGR_G_Within( OGRGeometryH, OGRGeometryH );
155 int CPL_DLL OGR_G_Contains( OGRGeometryH, OGRGeometryH );
156 int CPL_DLL OGR_G_Overlaps( OGRGeometryH, OGRGeometryH );
157
158 OGRGeometryH CPL_DLL OGR_G_Boundary( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
159 OGRGeometryH CPL_DLL OGR_G_ConvexHull( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
160 OGRGeometryH CPL_DLL OGR_G_Buffer( OGRGeometryH, double, int ) CPL_WARN_UNUSED_RESULT;
161 OGRGeometryH CPL_DLL OGR_G_Intersection( OGRGeometryH, OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
162 OGRGeometryH CPL_DLL OGR_G_Union( OGRGeometryH, OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
163 OGRGeometryH CPL_DLL OGR_G_UnionCascaded( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
164 OGRGeometryH CPL_DLL OGR_G_PointOnSurface( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
165 /*OGRGeometryH CPL_DLL OGR_G_Polygonize( OGRGeometryH *, int);*/
166 /*OGRGeometryH CPL_DLL OGR_G_Polygonizer_getCutEdges( OGRGeometryH *, int);*/
167 /*OGRGeometryH CPL_DLL OGR_G_LineMerge( OGRGeometryH );*/
168
169 OGRGeometryH CPL_DLL OGR_G_Difference( OGRGeometryH, OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
170 OGRGeometryH CPL_DLL OGR_G_SymDifference( OGRGeometryH, OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
171 double CPL_DLL OGR_G_Distance( OGRGeometryH, OGRGeometryH );
172 double CPL_DLL OGR_G_Length( OGRGeometryH );
173 double CPL_DLL OGR_G_Area( OGRGeometryH );
174 int CPL_DLL OGR_G_Centroid( OGRGeometryH, OGRGeometryH );
175 OGRGeometryH CPL_DLL OGR_G_Value( OGRGeometryH, double dfDistance ) CPL_WARN_UNUSED_RESULT;
176
177 void CPL_DLL OGR_G_Empty( OGRGeometryH );
178 int CPL_DLL OGR_G_IsEmpty( OGRGeometryH );
179 int CPL_DLL OGR_G_IsValid( OGRGeometryH );
180 /*char CPL_DLL *OGR_G_IsValidReason( OGRGeometryH );*/
181 int CPL_DLL OGR_G_IsSimple( OGRGeometryH );
182 int CPL_DLL OGR_G_IsRing( OGRGeometryH );
183
184 OGRGeometryH CPL_DLL OGR_G_Polygonize( OGRGeometryH ) CPL_WARN_UNUSED_RESULT;
185
186 /* backward compatibility (non-standard methods) */
187 int CPL_DLL OGR_G_Intersect( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Intersects() instead");
188 int CPL_DLL OGR_G_Equal( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Equals() instead");
189 OGRGeometryH CPL_DLL OGR_G_SymmetricDifference( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_SymDifference() instead");
190 double CPL_DLL OGR_G_GetArea( OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead");
191 OGRGeometryH CPL_DLL OGR_G_GetBoundary( OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead");
192
193 /* Methods for getting/setting vertices in points, line strings and rings */
194 int CPL_DLL OGR_G_GetPointCount( OGRGeometryH );
195 int CPL_DLL OGR_G_GetPoints( OGRGeometryH hGeom,
196 void* pabyX, int nXStride,
197 void* pabyY, int nYStride,
198 void* pabyZ, int nZStride);
199 int CPL_DLL OGR_G_GetPointsZM( OGRGeometryH hGeom,
200 void* pabyX, int nXStride,
201 void* pabyY, int nYStride,
202 void* pabyZ, int nZStride,
203 void* pabyM, int nMStride);
204 double CPL_DLL OGR_G_GetX( OGRGeometryH, int );
205 double CPL_DLL OGR_G_GetY( OGRGeometryH, int );
206 double CPL_DLL OGR_G_GetZ( OGRGeometryH, int );
207 double CPL_DLL OGR_G_GetM( OGRGeometryH, int );
208 void CPL_DLL OGR_G_GetPoint( OGRGeometryH, int iPoint,
209 double *, double *, double * );
210 void CPL_DLL OGR_G_GetPointZM( OGRGeometryH, int iPoint,
211 double *, double *, double *, double * );
212 void CPL_DLL OGR_G_SetPointCount( OGRGeometryH hGeom, int nNewPointCount );
213 void CPL_DLL OGR_G_SetPoint( OGRGeometryH, int iPoint,
214 double, double, double );
215 void CPL_DLL OGR_G_SetPoint_2D( OGRGeometryH, int iPoint,
216 double, double );
217 void CPL_DLL OGR_G_SetPointM( OGRGeometryH, int iPoint,
218 double, double, double );
219 void CPL_DLL OGR_G_SetPointZM( OGRGeometryH, int iPoint,
220 double, double, double, double );
221 void CPL_DLL OGR_G_AddPoint( OGRGeometryH, double, double, double );
222 void CPL_DLL OGR_G_AddPoint_2D( OGRGeometryH, double, double );
223 void CPL_DLL OGR_G_AddPointM( OGRGeometryH, double, double, double );
224 void CPL_DLL OGR_G_AddPointZM( OGRGeometryH, double, double, double, double );
225 void CPL_DLL OGR_G_SetPoints( OGRGeometryH hGeom, int nPointsIn,
226 void* pabyX, int nXStride,
227 void* pabyY, int nYStride,
228 void* pabyZ, int nZStride );
229 void CPL_DLL OGR_G_SetPointsZM( OGRGeometryH hGeom, int nPointsIn,
230 void* pabyX, int nXStride,
231 void* pabyY, int nYStride,
232 void* pabyZ, int nZStride,
233 void* pabyM, int nMStride );
234
235 /* Methods for getting/setting rings and members collections */
236
237 int CPL_DLL OGR_G_GetGeometryCount( OGRGeometryH );
238 OGRGeometryH CPL_DLL OGR_G_GetGeometryRef( OGRGeometryH, int );
239 OGRErr CPL_DLL OGR_G_AddGeometry( OGRGeometryH, OGRGeometryH );
240 OGRErr CPL_DLL OGR_G_AddGeometryDirectly( OGRGeometryH, OGRGeometryH );
241 OGRErr CPL_DLL OGR_G_RemoveGeometry( OGRGeometryH, int, int );
242
243 int CPL_DLL OGR_G_HasCurveGeometry( OGRGeometryH, int bLookForNonLinear );
244 OGRGeometryH CPL_DLL OGR_G_GetLinearGeometry( OGRGeometryH hGeom,
245 double dfMaxAngleStepSizeDegrees,
246 char** papszOptions) CPL_WARN_UNUSED_RESULT;
247 OGRGeometryH CPL_DLL OGR_G_GetCurveGeometry( OGRGeometryH hGeom,
248 char** papszOptions ) CPL_WARN_UNUSED_RESULT;
249
250 OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges( OGRGeometryH hLinesAsCollection,
251 int bBestEffort,
252 int bAutoClose,
253 double dfTolerance,
254 OGRErr * peErr ) CPL_WARN_UNUSED_RESULT;
255
256 OGRErr CPL_DLL OGRSetGenerate_DB2_V72_BYTE_ORDER(
257 int bGenerate_DB2_V72_BYTE_ORDER );
258
259 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(void);
260
261 void CPL_DLL OGRSetNonLinearGeometriesEnabledFlag(int bFlag);
262 int CPL_DLL OGRGetNonLinearGeometriesEnabledFlag(void);
263
264 /* -------------------------------------------------------------------- */
265 /* Feature related (ogr_feature.h) */
266 /* -------------------------------------------------------------------- */
267
268 #ifdef DEBUG
269 typedef struct OGRFieldDefnHS *OGRFieldDefnH;
270 typedef struct OGRFeatureDefnHS *OGRFeatureDefnH;
271 typedef struct OGRFeatureHS *OGRFeatureH;
272 typedef struct OGRStyleTableHS *OGRStyleTableH;
273 #else
274 typedef void *OGRFieldDefnH;
275 typedef void *OGRFeatureDefnH;
276 typedef void *OGRFeatureH;
277 typedef void *OGRStyleTableH;
278 #endif
279 typedef struct OGRGeomFieldDefnHS *OGRGeomFieldDefnH;
280
281 /* OGRFieldDefn */
282
283 OGRFieldDefnH CPL_DLL OGR_Fld_Create( const char *, OGRFieldType ) CPL_WARN_UNUSED_RESULT;
284 void CPL_DLL OGR_Fld_Destroy( OGRFieldDefnH );
285
286 void CPL_DLL OGR_Fld_SetName( OGRFieldDefnH, const char * );
287 const char CPL_DLL *OGR_Fld_GetNameRef( OGRFieldDefnH );
288 OGRFieldType CPL_DLL OGR_Fld_GetType( OGRFieldDefnH );
289 void CPL_DLL OGR_Fld_SetType( OGRFieldDefnH, OGRFieldType );
290 OGRFieldSubType CPL_DLL OGR_Fld_GetSubType( OGRFieldDefnH );
291 void CPL_DLL OGR_Fld_SetSubType( OGRFieldDefnH, OGRFieldSubType );
292 OGRJustification CPL_DLL OGR_Fld_GetJustify( OGRFieldDefnH );
293 void CPL_DLL OGR_Fld_SetJustify( OGRFieldDefnH, OGRJustification );
294 int CPL_DLL OGR_Fld_GetWidth( OGRFieldDefnH );
295 void CPL_DLL OGR_Fld_SetWidth( OGRFieldDefnH, int );
296 int CPL_DLL OGR_Fld_GetPrecision( OGRFieldDefnH );
297 void CPL_DLL OGR_Fld_SetPrecision( OGRFieldDefnH, int );
298 void CPL_DLL OGR_Fld_Set( OGRFieldDefnH, const char *, OGRFieldType,
299 int, int, OGRJustification );
300 int CPL_DLL OGR_Fld_IsIgnored( OGRFieldDefnH hDefn );
301 void CPL_DLL OGR_Fld_SetIgnored( OGRFieldDefnH hDefn, int );
302 int CPL_DLL OGR_Fld_IsNullable( OGRFieldDefnH hDefn );
303 void CPL_DLL OGR_Fld_SetNullable( OGRFieldDefnH hDefn, int );
304 const char CPL_DLL *OGR_Fld_GetDefault( OGRFieldDefnH hDefn );
305 void CPL_DLL OGR_Fld_SetDefault( OGRFieldDefnH hDefn, const char* );
306 int CPL_DLL OGR_Fld_IsDefaultDriverSpecific( OGRFieldDefnH hDefn );
307
308 const char CPL_DLL *OGR_GetFieldTypeName( OGRFieldType );
309 const char CPL_DLL *OGR_GetFieldSubTypeName( OGRFieldSubType );
310 int CPL_DLL OGR_AreTypeSubTypeCompatible( OGRFieldType eType,
311 OGRFieldSubType eSubType );
312
313 /* OGRGeomFieldDefnH */
314
315 OGRGeomFieldDefnH CPL_DLL OGR_GFld_Create( const char *, OGRwkbGeometryType ) CPL_WARN_UNUSED_RESULT;
316 void CPL_DLL OGR_GFld_Destroy( OGRGeomFieldDefnH );
317
318 void CPL_DLL OGR_GFld_SetName( OGRGeomFieldDefnH, const char * );
319 const char CPL_DLL *OGR_GFld_GetNameRef( OGRGeomFieldDefnH );
320
321 OGRwkbGeometryType CPL_DLL OGR_GFld_GetType( OGRGeomFieldDefnH );
322 void CPL_DLL OGR_GFld_SetType( OGRGeomFieldDefnH, OGRwkbGeometryType );
323
324 OGRSpatialReferenceH CPL_DLL OGR_GFld_GetSpatialRef( OGRGeomFieldDefnH );
325 void CPL_DLL OGR_GFld_SetSpatialRef( OGRGeomFieldDefnH,
326 OGRSpatialReferenceH hSRS );
327
328 int CPL_DLL OGR_GFld_IsNullable( OGRGeomFieldDefnH hDefn );
329 void CPL_DLL OGR_GFld_SetNullable( OGRGeomFieldDefnH hDefn, int );
330
331 int CPL_DLL OGR_GFld_IsIgnored( OGRGeomFieldDefnH hDefn );
332 void CPL_DLL OGR_GFld_SetIgnored( OGRGeomFieldDefnH hDefn, int );
333
334 /* OGRFeatureDefn */
335
336 OGRFeatureDefnH CPL_DLL OGR_FD_Create( const char * ) CPL_WARN_UNUSED_RESULT;
337 void CPL_DLL OGR_FD_Destroy( OGRFeatureDefnH );
338 void CPL_DLL OGR_FD_Release( OGRFeatureDefnH );
339 const char CPL_DLL *OGR_FD_GetName( OGRFeatureDefnH );
340 int CPL_DLL OGR_FD_GetFieldCount( OGRFeatureDefnH );
341 OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn( OGRFeatureDefnH, int );
342 int CPL_DLL OGR_FD_GetFieldIndex( OGRFeatureDefnH, const char * );
343 void CPL_DLL OGR_FD_AddFieldDefn( OGRFeatureDefnH, OGRFieldDefnH );
344 OGRErr CPL_DLL OGR_FD_DeleteFieldDefn( OGRFeatureDefnH hDefn, int iField );
345 OGRErr CPL_DLL OGR_FD_ReorderFieldDefns( OGRFeatureDefnH hDefn, int* panMap );
346 OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType( OGRFeatureDefnH );
347 void CPL_DLL OGR_FD_SetGeomType( OGRFeatureDefnH, OGRwkbGeometryType );
348 int CPL_DLL OGR_FD_IsGeometryIgnored( OGRFeatureDefnH );
349 void CPL_DLL OGR_FD_SetGeometryIgnored( OGRFeatureDefnH, int );
350 int CPL_DLL OGR_FD_IsStyleIgnored( OGRFeatureDefnH );
351 void CPL_DLL OGR_FD_SetStyleIgnored( OGRFeatureDefnH, int );
352 int CPL_DLL OGR_FD_Reference( OGRFeatureDefnH );
353 int CPL_DLL OGR_FD_Dereference( OGRFeatureDefnH );
354 int CPL_DLL OGR_FD_GetReferenceCount( OGRFeatureDefnH );
355
356 int CPL_DLL OGR_FD_GetGeomFieldCount( OGRFeatureDefnH hFDefn );
357 OGRGeomFieldDefnH CPL_DLL OGR_FD_GetGeomFieldDefn( OGRFeatureDefnH hFDefn,
358 int i );
359 int CPL_DLL OGR_FD_GetGeomFieldIndex( OGRFeatureDefnH hFDefn,
360 const char *pszName);
361
362 void CPL_DLL OGR_FD_AddGeomFieldDefn( OGRFeatureDefnH hFDefn,
363 OGRGeomFieldDefnH hGFldDefn);
364 OGRErr CPL_DLL OGR_FD_DeleteGeomFieldDefn( OGRFeatureDefnH hFDefn,
365 int iGeomField );
366 int CPL_DLL OGR_FD_IsSame( OGRFeatureDefnH hFDefn,
367 OGRFeatureDefnH hOtherFDefn );
368 /* OGRFeature */
369
370 OGRFeatureH CPL_DLL OGR_F_Create( OGRFeatureDefnH ) CPL_WARN_UNUSED_RESULT;
371 void CPL_DLL OGR_F_Destroy( OGRFeatureH );
372 OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef( OGRFeatureH );
373
374 OGRErr CPL_DLL OGR_F_SetGeometryDirectly( OGRFeatureH, OGRGeometryH );
375 OGRErr CPL_DLL OGR_F_SetGeometry( OGRFeatureH, OGRGeometryH );
376 OGRGeometryH CPL_DLL OGR_F_GetGeometryRef( OGRFeatureH );
377 OGRGeometryH CPL_DLL OGR_F_StealGeometry( OGRFeatureH ) CPL_WARN_UNUSED_RESULT;
378 OGRFeatureH CPL_DLL OGR_F_Clone( OGRFeatureH ) CPL_WARN_UNUSED_RESULT;
379 int CPL_DLL OGR_F_Equal( OGRFeatureH, OGRFeatureH );
380
381 int CPL_DLL OGR_F_GetFieldCount( OGRFeatureH );
382 OGRFieldDefnH CPL_DLL OGR_F_GetFieldDefnRef( OGRFeatureH, int );
383 int CPL_DLL OGR_F_GetFieldIndex( OGRFeatureH, const char * );
384
385 int CPL_DLL OGR_F_IsFieldSet( OGRFeatureH, int );
386 void CPL_DLL OGR_F_UnsetField( OGRFeatureH, int );
387 OGRField CPL_DLL *OGR_F_GetRawFieldRef( OGRFeatureH, int );
388
389 int CPL_DLL OGR_F_GetFieldAsInteger( OGRFeatureH, int );
390 GIntBig CPL_DLL OGR_F_GetFieldAsInteger64( OGRFeatureH, int );
391 double CPL_DLL OGR_F_GetFieldAsDouble( OGRFeatureH, int );
392 const char CPL_DLL *OGR_F_GetFieldAsString( OGRFeatureH, int );
393 const int CPL_DLL *OGR_F_GetFieldAsIntegerList( OGRFeatureH, int, int * );
394 const GIntBig CPL_DLL *OGR_F_GetFieldAsInteger64List( OGRFeatureH, int, int * );
395 const double CPL_DLL *OGR_F_GetFieldAsDoubleList( OGRFeatureH, int, int * );
396 char CPL_DLL **OGR_F_GetFieldAsStringList( OGRFeatureH, int );
397 GByte CPL_DLL *OGR_F_GetFieldAsBinary( OGRFeatureH, int, int * );
398 int CPL_DLL OGR_F_GetFieldAsDateTime( OGRFeatureH, int, int *, int *, int *,
399 int *, int *, int *, int * );
400 int CPL_DLL OGR_F_GetFieldAsDateTimeEx( OGRFeatureH hFeat, int iField,
401 int *pnYear, int *pnMonth, int *pnDay,
402 int *pnHour, int *pnMinute, float *pfSecond,
403 int *pnTZFlag );
404
405 void CPL_DLL OGR_F_SetFieldInteger( OGRFeatureH, int, int );
406 void CPL_DLL OGR_F_SetFieldInteger64( OGRFeatureH, int, GIntBig );
407 void CPL_DLL OGR_F_SetFieldDouble( OGRFeatureH, int, double );
408 void CPL_DLL OGR_F_SetFieldString( OGRFeatureH, int, const char * );
409 void CPL_DLL OGR_F_SetFieldIntegerList( OGRFeatureH, int, int, int * );
410 void CPL_DLL OGR_F_SetFieldInteger64List( OGRFeatureH, int, int, const GIntBig * );
411 void CPL_DLL OGR_F_SetFieldDoubleList( OGRFeatureH, int, int, double * );
412 void CPL_DLL OGR_F_SetFieldStringList( OGRFeatureH, int, char ** );
413 void CPL_DLL OGR_F_SetFieldRaw( OGRFeatureH, int, OGRField * );
414 void CPL_DLL OGR_F_SetFieldBinary( OGRFeatureH, int, int, GByte * );
415 void CPL_DLL OGR_F_SetFieldDateTime( OGRFeatureH, int,
416 int, int, int, int, int, int, int );
417 void CPL_DLL OGR_F_SetFieldDateTimeEx( OGRFeatureH, int,
418 int, int, int, int, int, float, int );
419
420 int CPL_DLL OGR_F_GetGeomFieldCount( OGRFeatureH hFeat );
421 OGRGeomFieldDefnH CPL_DLL OGR_F_GetGeomFieldDefnRef( OGRFeatureH hFeat,
422 int iField );
423 int CPL_DLL OGR_F_GetGeomFieldIndex( OGRFeatureH hFeat,
424 const char *pszName);
425
426 OGRGeometryH CPL_DLL OGR_F_GetGeomFieldRef( OGRFeatureH hFeat,
427 int iField );
428 OGRErr CPL_DLL OGR_F_SetGeomFieldDirectly( OGRFeatureH hFeat,
429 int iField,
430 OGRGeometryH hGeom );
431 OGRErr CPL_DLL OGR_F_SetGeomField( OGRFeatureH hFeat,
432 int iField, OGRGeometryH hGeom );
433
434 GIntBig CPL_DLL OGR_F_GetFID( OGRFeatureH );
435 OGRErr CPL_DLL OGR_F_SetFID( OGRFeatureH, GIntBig );
436 void CPL_DLL OGR_F_DumpReadable( OGRFeatureH, FILE * );
437 OGRErr CPL_DLL OGR_F_SetFrom( OGRFeatureH, OGRFeatureH, int );
438 OGRErr CPL_DLL OGR_F_SetFromWithMap( OGRFeatureH, OGRFeatureH, int , int * );
439
440 const char CPL_DLL *OGR_F_GetStyleString( OGRFeatureH );
441 void CPL_DLL OGR_F_SetStyleString( OGRFeatureH, const char * );
442 void CPL_DLL OGR_F_SetStyleStringDirectly( OGRFeatureH, char * );
443 OGRStyleTableH CPL_DLL OGR_F_GetStyleTable( OGRFeatureH );
444 void CPL_DLL OGR_F_SetStyleTableDirectly( OGRFeatureH, OGRStyleTableH );
445 void CPL_DLL OGR_F_SetStyleTable( OGRFeatureH, OGRStyleTableH );
446
447 const char CPL_DLL *OGR_F_GetNativeData( OGRFeatureH );
448 void CPL_DLL OGR_F_SetNativeData( OGRFeatureH, const char* );
449 const char CPL_DLL *OGR_F_GetNativeMediaType( OGRFeatureH );
450 void CPL_DLL OGR_F_SetNativeMediaType( OGRFeatureH, const char* );
451
452 void CPL_DLL OGR_F_FillUnsetWithDefault( OGRFeatureH hFeat,
453 int bNotNullableOnly,
454 char** papszOptions );
455 int CPL_DLL OGR_F_Validate( OGRFeatureH, int nValidateFlags, int bEmitError );
456
457 /* -------------------------------------------------------------------- */
458 /* ogrsf_frmts.h */
459 /* -------------------------------------------------------------------- */
460
461 #ifdef DEBUG
462 typedef struct OGRLayerHS *OGRLayerH;
463 typedef struct OGRDataSourceHS *OGRDataSourceH;
464 typedef struct OGRDriverHS *OGRSFDriverH;
465 #else
466 typedef void *OGRLayerH;
467 typedef void *OGRDataSourceH;
468 typedef void *OGRSFDriverH;
469 #endif
470
471 /* OGRLayer */
472
473 const char CPL_DLL* OGR_L_GetName( OGRLayerH );
474 OGRwkbGeometryType CPL_DLL OGR_L_GetGeomType( OGRLayerH );
475 OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter( OGRLayerH );
476 void CPL_DLL OGR_L_SetSpatialFilter( OGRLayerH, OGRGeometryH );
477 void CPL_DLL OGR_L_SetSpatialFilterRect( OGRLayerH,
478 double, double, double, double );
479 void CPL_DLL OGR_L_SetSpatialFilterEx( OGRLayerH, int iGeomField,
480 OGRGeometryH hGeom );
481 void CPL_DLL OGR_L_SetSpatialFilterRectEx( OGRLayerH, int iGeomField,
482 double dfMinX, double dfMinY,
483 double dfMaxX, double dfMaxY );
484 OGRErr CPL_DLL OGR_L_SetAttributeFilter( OGRLayerH, const char * );
485 void CPL_DLL OGR_L_ResetReading( OGRLayerH );
486 OGRFeatureH CPL_DLL OGR_L_GetNextFeature( OGRLayerH ) CPL_WARN_UNUSED_RESULT;
487 OGRErr CPL_DLL OGR_L_SetNextByIndex( OGRLayerH, GIntBig );
488 OGRFeatureH CPL_DLL OGR_L_GetFeature( OGRLayerH, GIntBig ) CPL_WARN_UNUSED_RESULT;
489 OGRErr CPL_DLL OGR_L_SetFeature( OGRLayerH, OGRFeatureH ) CPL_WARN_UNUSED_RESULT;
490 OGRErr CPL_DLL OGR_L_CreateFeature( OGRLayerH, OGRFeatureH ) CPL_WARN_UNUSED_RESULT;
491 OGRErr CPL_DLL OGR_L_DeleteFeature( OGRLayerH, GIntBig ) CPL_WARN_UNUSED_RESULT;
492 OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn( OGRLayerH );
493 OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef( OGRLayerH );
494 int CPL_DLL OGR_L_FindFieldIndex( OGRLayerH, const char *, int bExactMatch );
495 GIntBig CPL_DLL OGR_L_GetFeatureCount( OGRLayerH, int );
496 OGRErr CPL_DLL OGR_L_GetExtent( OGRLayerH, OGREnvelope *, int );
497 OGRErr CPL_DLL OGR_L_GetExtentEx( OGRLayerH, int iGeomField,
498 OGREnvelope *psExtent, int bForce );
499 int CPL_DLL OGR_L_TestCapability( OGRLayerH, const char * );
500 OGRErr CPL_DLL OGR_L_CreateField( OGRLayerH, OGRFieldDefnH, int );
501 OGRErr CPL_DLL OGR_L_CreateGeomField( OGRLayerH hLayer,
502 OGRGeomFieldDefnH hFieldDefn, int bForce );
503 OGRErr CPL_DLL OGR_L_DeleteField( OGRLayerH, int iField );
504 OGRErr CPL_DLL OGR_L_ReorderFields( OGRLayerH, int* panMap );
505 OGRErr CPL_DLL OGR_L_ReorderField( OGRLayerH, int iOldFieldPos, int iNewFieldPos );
506 OGRErr CPL_DLL OGR_L_AlterFieldDefn( OGRLayerH, int iField, OGRFieldDefnH hNewFieldDefn, int nFlags );
507 OGRErr CPL_DLL OGR_L_StartTransaction( OGRLayerH ) CPL_WARN_UNUSED_RESULT;
508 OGRErr CPL_DLL OGR_L_CommitTransaction( OGRLayerH ) CPL_WARN_UNUSED_RESULT;
509 OGRErr CPL_DLL OGR_L_RollbackTransaction( OGRLayerH );
510 int CPL_DLL OGR_L_Reference( OGRLayerH );
511 int CPL_DLL OGR_L_Dereference( OGRLayerH );
512 int CPL_DLL OGR_L_GetRefCount( OGRLayerH );
513 OGRErr CPL_DLL OGR_L_SyncToDisk( OGRLayerH );
514 GIntBig CPL_DLL OGR_L_GetFeaturesRead( OGRLayerH );
515 const char CPL_DLL *OGR_L_GetFIDColumn( OGRLayerH );
516 const char CPL_DLL *OGR_L_GetGeometryColumn( OGRLayerH );
517 OGRStyleTableH CPL_DLL OGR_L_GetStyleTable( OGRLayerH );
518 void CPL_DLL OGR_L_SetStyleTableDirectly( OGRLayerH, OGRStyleTableH );
519 void CPL_DLL OGR_L_SetStyleTable( OGRLayerH, OGRStyleTableH );
520 OGRErr CPL_DLL OGR_L_SetIgnoredFields( OGRLayerH, const char** );
521 OGRErr CPL_DLL OGR_L_Intersection( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
522 OGRErr CPL_DLL OGR_L_Union( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
523 OGRErr CPL_DLL OGR_L_SymDifference( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
524 OGRErr CPL_DLL OGR_L_Identity( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
525 OGRErr CPL_DLL OGR_L_Update( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
526 OGRErr CPL_DLL OGR_L_Clip( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
527 OGRErr CPL_DLL OGR_L_Erase( OGRLayerH, OGRLayerH, OGRLayerH, char**, GDALProgressFunc, void * );
528
529 /* OGRDataSource */
530
531 void CPL_DLL OGR_DS_Destroy( OGRDataSourceH );
532 const char CPL_DLL *OGR_DS_GetName( OGRDataSourceH );
533 int CPL_DLL OGR_DS_GetLayerCount( OGRDataSourceH );
534 OGRLayerH CPL_DLL OGR_DS_GetLayer( OGRDataSourceH, int );
535 OGRLayerH CPL_DLL OGR_DS_GetLayerByName( OGRDataSourceH, const char * );
536 OGRErr CPL_DLL OGR_DS_DeleteLayer( OGRDataSourceH, int );
537 OGRSFDriverH CPL_DLL OGR_DS_GetDriver( OGRDataSourceH );
538 OGRLayerH CPL_DLL OGR_DS_CreateLayer( OGRDataSourceH, const char *,
539 OGRSpatialReferenceH, OGRwkbGeometryType,
540 char ** );
541 OGRLayerH CPL_DLL OGR_DS_CopyLayer( OGRDataSourceH, OGRLayerH, const char *,
542 char ** );
543 int CPL_DLL OGR_DS_TestCapability( OGRDataSourceH, const char * );
544 OGRLayerH CPL_DLL OGR_DS_ExecuteSQL( OGRDataSourceH, const char *,
545 OGRGeometryH, const char * );
546 void CPL_DLL OGR_DS_ReleaseResultSet( OGRDataSourceH, OGRLayerH );
547 int CPL_DLL OGR_DS_Reference( OGRDataSourceH );
548 int CPL_DLL OGR_DS_Dereference( OGRDataSourceH );
549 int CPL_DLL OGR_DS_GetRefCount( OGRDataSourceH );
550 int CPL_DLL OGR_DS_GetSummaryRefCount( OGRDataSourceH );
551 OGRErr CPL_DLL OGR_DS_SyncToDisk( OGRDataSourceH );
552 OGRStyleTableH CPL_DLL OGR_DS_GetStyleTable( OGRDataSourceH );
553 void CPL_DLL OGR_DS_SetStyleTableDirectly( OGRDataSourceH, OGRStyleTableH );
554 void CPL_DLL OGR_DS_SetStyleTable( OGRDataSourceH, OGRStyleTableH );
555
556 /* OGRSFDriver */
557
558 const char CPL_DLL *OGR_Dr_GetName( OGRSFDriverH );
559 OGRDataSourceH CPL_DLL OGR_Dr_Open( OGRSFDriverH, const char *, int ) CPL_WARN_UNUSED_RESULT;
560 int CPL_DLL OGR_Dr_TestCapability( OGRSFDriverH, const char * );
561 OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource( OGRSFDriverH, const char *,
562 char ** ) CPL_WARN_UNUSED_RESULT;
563 OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource( OGRSFDriverH, OGRDataSourceH,
564 const char *, char ** ) CPL_WARN_UNUSED_RESULT;
565 OGRErr CPL_DLL OGR_Dr_DeleteDataSource( OGRSFDriverH, const char * );
566
567 /* OGRSFDriverRegistrar */
568
569 OGRDataSourceH CPL_DLL OGROpen( const char *, int, OGRSFDriverH * ) CPL_WARN_UNUSED_RESULT;
570 OGRDataSourceH CPL_DLL OGROpenShared( const char *, int, OGRSFDriverH * ) CPL_WARN_UNUSED_RESULT;
571 OGRErr CPL_DLL OGRReleaseDataSource( OGRDataSourceH );
572 void CPL_DLL OGRRegisterDriver( OGRSFDriverH );
573 void CPL_DLL OGRDeregisterDriver( OGRSFDriverH );
574 int CPL_DLL OGRGetDriverCount(void);
575 OGRSFDriverH CPL_DLL OGRGetDriver( int );
576 OGRSFDriverH CPL_DLL OGRGetDriverByName( const char * );
577 int CPL_DLL OGRGetOpenDSCount(void);
578 OGRDataSourceH CPL_DLL OGRGetOpenDS( int iDS );
579
580
581 /* note: this is also declared in ogrsf_frmts.h */
582 void CPL_DLL OGRRegisterAll(void);
583 void CPL_DLL OGRCleanupAll(void);
584
585 /* -------------------------------------------------------------------- */
586 /* ogrsf_featurestyle.h */
587 /* -------------------------------------------------------------------- */
588
589 #ifdef DEBUG
590 typedef struct OGRStyleMgrHS *OGRStyleMgrH;
591 typedef struct OGRStyleToolHS *OGRStyleToolH;
592 #else
593 typedef void *OGRStyleMgrH;
594 typedef void *OGRStyleToolH;
595 #endif
596
597 /* OGRStyleMgr */
598
599 OGRStyleMgrH CPL_DLL OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT;
600 void CPL_DLL OGR_SM_Destroy(OGRStyleMgrH hSM);
601
602 const char CPL_DLL *OGR_SM_InitFromFeature(OGRStyleMgrH hSM,
603 OGRFeatureH hFeat);
604 int CPL_DLL OGR_SM_InitStyleString(OGRStyleMgrH hSM,
605 const char *pszStyleString);
606 int CPL_DLL OGR_SM_GetPartCount(OGRStyleMgrH hSM,
607 const char *pszStyleString);
608 OGRStyleToolH CPL_DLL OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId,
609 const char *pszStyleString);
610 int CPL_DLL OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST);
611 int CPL_DLL OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName,
612 const char *pszStyleString);
613
614 /* OGRStyleTool */
615
616 OGRStyleToolH CPL_DLL OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT;
617 void CPL_DLL OGR_ST_Destroy(OGRStyleToolH hST);
618
619 OGRSTClassId CPL_DLL OGR_ST_GetType(OGRStyleToolH hST);
620
621 OGRSTUnitId CPL_DLL OGR_ST_GetUnit(OGRStyleToolH hST);
622 void CPL_DLL OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit,
623 double dfGroundPaperScale);
624
625 const char CPL_DLL *OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull);
626 int CPL_DLL OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull);
627 double CPL_DLL OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull);
628 void CPL_DLL OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue);
629 void CPL_DLL OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue);
630 void CPL_DLL OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue);
631 const char CPL_DLL *OGR_ST_GetStyleString(OGRStyleToolH hST);
632
633 int CPL_DLL OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor,
634 int *pnRed, int *pnGreen, int *pnBlue,
635 int *pnAlpha);
636
637 /* OGRStyleTable */
638
639 OGRStyleTableH CPL_DLL OGR_STBL_Create( void ) CPL_WARN_UNUSED_RESULT;
640 void CPL_DLL OGR_STBL_Destroy( OGRStyleTableH hSTBL );
641 int CPL_DLL OGR_STBL_AddStyle( OGRStyleTableH hStyleTable,
642 const char *pszName,
643 const char *pszStyleString);
644 int CPL_DLL OGR_STBL_SaveStyleTable( OGRStyleTableH hStyleTable,
645 const char *pszFilename );
646 int CPL_DLL OGR_STBL_LoadStyleTable( OGRStyleTableH hStyleTable,
647 const char *pszFilename );
648 const char CPL_DLL *OGR_STBL_Find( OGRStyleTableH hStyleTable, const char *pszName );
649 void CPL_DLL OGR_STBL_ResetStyleStringReading( OGRStyleTableH hStyleTable );
650 const char CPL_DLL *OGR_STBL_GetNextStyle( OGRStyleTableH hStyleTable);
651 const char CPL_DLL *OGR_STBL_GetLastStyleName( OGRStyleTableH hStyleTable);
652
653 CPL_C_END
654
655 #endif /* ndef OGR_API_H_INCLUDED */
OGR_G_GetSpatialReference
OGRSpatialReferenceH OGR_G_GetSpatialReference(OGRGeometryH)
Returns spatial reference system for geometry.
Definition: ogrgeometry.cpp:1824
OGR_G_ConvexHull
OGRGeometryH OGR_G_ConvexHull(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Compute convex hull.
Definition: ogrgeometry.cpp:3067
OGR_Fld_Create
OGRFieldDefnH OGR_Fld_Create(const char *, OGRFieldType) CPL_WARN_UNUSED_RESULT
Create a new field definition.
Definition: ogrfielddefn.cpp:97
OGR_F_GetFieldAsString
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:2109
OGR_L_ReorderFields
OGRErr OGR_L_ReorderFields(OGRLayerH, int *panMap)
Reorder all the fields of a layer.
Definition: ogrlayer.cpp:746
OGRGetNonLinearGeometriesEnabledFlag
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1714
OGR_G_Difference
OGRGeometryH OGR_G_Difference(OGRGeometryH, OGRGeometryH) CPL_WARN_UNUSED_RESULT
Compute difference.
Definition: ogrgeometry.cpp:3688
OGRSetGenerate_DB2_V72_BYTE_ORDER
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:2653
OGR_F_SetNativeData
void OGR_F_SetNativeData(OGRFeatureH, const char *)
Sets the native data for the feature.
Definition: ogrfeature.cpp:5719
OGR_FD_Destroy
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:136
OGR_L_ReorderField
OGRErr OGR_L_ReorderField(OGRLayerH, int iOldFieldPos, int iNewFieldPos)
Reorder an existing field on a layer.
Definition: ogrlayer.cpp:821
OGR_G_GetCoordinateDimension
int OGR_G_GetCoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:875
OGR_G_ImportFromWkb
OGRErr OGR_G_ImportFromWkb(OGRGeometryH, unsigned char *, int)
Assign geometry from well known binary data.
Definition: ogrgeometry.cpp:1318
OGR_L_GetFeature
OGRFeatureH OGR_L_GetFeature(OGRLayerH, GIntBig) CPL_WARN_UNUSED_RESULT
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:481
OGR_FD_AddFieldDefn
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:408
OGR_G_ImportFromWkt
OGRErr OGR_G_ImportFromWkt(OGRGeometryH, char **)
Assign geometry from well known text data.
Definition: ogrgeometry.cpp:1467
OGR_L_GetSpatialFilter
OGRGeometryH OGR_L_GetSpatialFilter(OGRLayerH)
This function returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:1089
OGR_G_Distance
double OGR_G_Distance(OGRGeometryH, OGRGeometryH)
Compute distance between two geometries.
Definition: ogrgeometry.cpp:2957
OGRFieldSubType
OGRFieldSubType
List of field subtypes.
Definition: ogr_core.h:628
OGR_G_GetGeometryType
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
Fetch geometry type.
Definition: ogrgeometry.cpp:1716
CPLXMLNode
Document node structure.
Definition: cpl_minixml.h:65
OGR_G_ExportToJson
char * OGR_G_ExportToJson(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:889
OGR_L_SetFeature
OGRErr OGR_L_SetFeature(OGRLayerH, OGRFeatureH) CPL_WARN_UNUSED_RESULT
Rewrite an existing feature.
Definition: ogrlayer.cpp:606
OGR_G_CloseRings
void OGR_G_CloseRings(OGRGeometryH)
Force rings to be closed.
Definition: ogrgeometry.cpp:4361
cpl_minixml.h
Definitions for CPL mini XML Parser/Serializer.
OGR_G_DelaunayTriangulation
OGRGeometryH OGR_G_DelaunayTriangulation(OGRGeometryH hThis, double dfTolerance, int bOnlyEdges) CPL_WARN_UNUSED_RESULT
Return a Delaunay triangulation of the vertices of the geometry.
Definition: ogrgeometry.cpp:4887
OGR_Fld_GetSubType
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH)
Fetch subtype of this field.
Definition: ogrfielddefn.cpp:338
OGR_L_CreateField
OGRErr OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int)
Create a new field on a layer.
Definition: ogrlayer.cpp:679
OGR_G_ExportToWkt
OGRErr OGR_G_ExportToWkt(OGRGeometryH, char **)
Convert a geometry into well known text format.
Definition: ogrgeometry.cpp:1648
OGRBuildPolygonFromEdges
OGRGeometryH OGRBuildPolygonFromEdges(OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose, double dfTolerance, OGRErr *peErr) CPL_WARN_UNUSED_RESULT
Build a ring from a bunch of arcs.
Definition: ograssemblepolygon.cpp:132
OGR_F_Create
OGRFeatureH OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT
Feature factory.
Definition: ogrfeature.cpp:107
OGR_G_GetArea
double OGR_G_GetArea(OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead")
Compute geometry area (deprecated)
Definition: ogr_api.cpp:1520
OGR_F_SetNativeMediaType
void OGR_F_SetNativeMediaType(OGRFeatureH, const char *)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:5773
OGR_ST_SetParamDbl
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition: ogrfeaturestyle.cpp:2451
OGR_F_SetFieldStringList
void OGR_F_SetFieldStringList(OGRFeatureH, int, char **)
Set field to list of strings value.
Definition: ogrfeature.cpp:3677
OGR_F_SetFieldInteger
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition: ogrfeature.cpp:2778
OGR_Fld_Destroy
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:143
OGR_L_DeleteFeature
OGRErr OGR_L_DeleteFeature(OGRLayerH, GIntBig) CPL_WARN_UNUSED_RESULT
Delete feature from layer.
Definition: ogrlayer.cpp:1544
OGR_FD_GetFieldCount
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:283
OGR_FD_GetFieldDefn
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:345
OGR_DS_Destroy
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition: ogrdatasource.cpp:60
OGR_F_SetGeometry
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:410
OGR_L_GetNextFeature
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH) CPL_WARN_UNUSED_RESULT
Fetch the next available feature from this layer.
Definition: ogrlayer.cpp:540
OGR_L_GetExtent
OGRErr OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int)
Fetch the extent of this layer.
Definition: ogrlayer.cpp:305
OGR_F_SetFieldDouble
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition: ogrfeature.cpp:3026
OGR_FD_IsGeometryIgnored
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1212
OGR_FD_GetFieldIndex
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1158
OGR_STBL_SaveStyleTable
int OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:1045
OGR_Fld_SetNullable
void OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int)
Set whether this field can receive null values.
Definition: ogrfielddefn.cpp:1217
OGR_G_ApproximateArcAngles
OGRGeometryH OGR_G_ApproximateArcAngles(double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius, double dfSecondaryAxis, double dfRotation, double dfStartAngle, double dfEndAngle, double dfMaxAngleStepSizeDegrees) CPL_WARN_UNUSED_RESULT
Stroke arc to linestring.
Definition: ogrgeometryfactory.cpp:2780
OGR_G_AddGeometry
OGRErr OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH)
Add a geometry to a geometry container.
Definition: ogr_api.cpp:1282
OGR_G_GetPointsZM
int OGR_G_GetPointsZM(OGRGeometryH hGeom, void *pabyX, int nXStride, void *pabyY, int nYStride, void *pabyZ, int nZStride, void *pabyM, int nMStride)
Returns all points of line string.
Definition: ogr_api.cpp:377
OGR_Dr_Open
OGRDataSourceH OGR_Dr_Open(OGRSFDriverH, const char *, int) CPL_WARN_UNUSED_RESULT
Attempt to open file with this driver.
Definition: ogrsfdriver.cpp:138
OGR_G_TransformTo
OGRErr OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH)
Transform geometry to new spatial reference system.
Definition: ogrgeometry.cpp:637
OGR_F_SetGeometryDirectly
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:350
OGR_L_AlterFieldDefn
OGRErr OGR_L_AlterFieldDefn(OGRLayerH, int iField, OGRFieldDefnH hNewFieldDefn, int nFlags)
Alter the definition of an existing field on a layer.
Definition: ogrlayer.cpp:853
OGR_F_DumpReadable
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:4261
OGR_G_Centroid
int OGR_G_Centroid(OGRGeometryH, OGRGeometryH)
Compute the geometry centroid.
Definition: ogrgeometry.cpp:4501
OGR_Fld_SetJustify
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:841
OGR_G_AddPoint_2D
void OGR_G_AddPoint_2D(OGRGeometryH, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:1047
OGR_F_SetGeomField
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:813
OGR_F_GetGeomFieldRef
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:613
OGR_G_GetEnvelope3D
void OGR_G_GetEnvelope3D(OGRGeometryH, OGREnvelope3D *)
Computes and returns the bounding envelope (3D) for this geometry in the passed psEnvelope structure...
Definition: ogrgeometry.cpp:1265
OGR_G_SetMeasured
void OGR_G_SetMeasured(OGRGeometryH, int)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:1097
OGR_Fld_SetIgnored
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1102
OGR_G_SymDifference
OGRGeometryH OGR_G_SymDifference(OGRGeometryH, OGRGeometryH) CPL_WARN_UNUSED_RESULT
Compute symmetric difference.
Definition: ogrgeometry.cpp:3809
OGR_G_ExportToKML
char * OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode) CPL_WARN_UNUSED_RESULT
Convert a geometry into KML format.
Definition: ogr2kmlgeometry.cpp:484
OGRGetDriverCount
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
Definition: ogrsfdriverregistrar.cpp:344
OGR_SM_InitStyleString
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:327
OGR_F_GetFieldAsInteger64
GIntBig OGR_F_GetFieldAsInteger64(OGRFeatureH, int)
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:1592
OGR_ST_GetRGBFromString
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:2539
OGR_G_UnionCascaded
OGRGeometryH OGR_G_UnionCascaded(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Compute union using cascading.
Definition: ogrgeometry.cpp:3587
OGR_G_Overlaps
int OGR_G_Overlaps(OGRGeometryH, OGRGeometryH)
Test for overlap.
Definition: ogrgeometry.cpp:4322
OGR_F_Equal
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:4579
OGR_SM_AddPart
int OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:573
OGR_G_CreateFromWkb
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:200
OGR_F_SetFieldString
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:3229
OGR_L_SymDifference
OGRErr OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Symmetrical difference of two layers.
Definition: ogrlayer.cpp:3136
OGR_FD_GetName
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:246
OGR_F_GetGeomFieldIndex
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogrfeature.cpp:1182
OGR_STBL_LoadStyleTable
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1099
OGR_GFld_SetName
void OGR_GFld_SetName(OGRGeomFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrgeomfielddefn.cpp:182
OGR_FD_IsSame
int OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn)
Test if the feature definition is identical to the other one.
Definition: ogrfeaturedefn.cpp:1410
OGR_G_Is3D
int OGR_G_Is3D(OGRGeometryH)
See whether this geometry has Z coordinates.
Definition: ogrgeometry.cpp:922
OGR_L_GetSpatialRef
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH)
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:1044
OGR_G_Empty
void OGR_G_Empty(OGRGeometryH)
Clear geometry information.
Definition: ogrgeometry.cpp:1860
OGR_FD_IsStyleIgnored
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1294
OGR_F_GetGeomFieldCount
int OGR_F_GetGeomFieldCount(OGRFeatureH hFeat)
Fetch number of geometry fields on this feature This will always be the same as the geometry field co...
Definition: ogrfeature.cpp:1090
OGR_G_PointOnSurface
OGRGeometryH OGR_G_PointOnSurface(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Returns a point guaranteed to lie on the surface.
Definition: ogrgeometry.cpp:4546
OGR_ST_GetType
OGRSTClassId OGR_ST_GetType(OGRStyleToolH hST)
Determine type of Style Tool.
Definition: ogrfeaturestyle.cpp:1619
OGR_L_SetSpatialFilter
void OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH)
Set a new spatial filter.
Definition: ogrlayer.cpp:1142
OGR_ST_SetUnit
void OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit, double dfGroundPaperScale)
Set Style Tool units.
Definition: ogrfeaturestyle.cpp:1669
OGR_G_ForceToLineString
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to line string.
Definition: ogrgeometryfactory.cpp:2979
OGR_ST_GetUnit
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1638
OGR_G_ExportToIsoWkt
OGRErr OGR_G_ExportToIsoWkt(OGRGeometryH, char **)
Convert a geometry into SFSQL 1.2 / ISO SQL/MM Part 3 well known text format.
Definition: ogrgeometry.cpp:1678
OGR_F_SetFieldDateTimeEx
void OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int, float, int)
Set field to datetime.
Definition: ogrfeature.cpp:3885
OGRGetDriverByName
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
Definition: ogrsfdriverregistrar.cpp:406
OGR_L_CommitTransaction
OGRErr OGR_L_CommitTransaction(OGRLayerH) CPL_WARN_UNUSED_RESULT
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: ogrlayer.cpp:945
OGR_G_GetPointZM
void OGR_G_GetPointZM(OGRGeometryH, int iPoint, double *, double *, double *, double *)
Fetch a point in line string or a point geometry.
Definition: ogr_api.cpp:493
OGR_L_GetName
const char * OGR_L_GetName(OGRLayerH)
Return the layer name.
Definition: ogrlayer.cpp:1721
OGR_G_AddPoint
void OGR_G_AddPoint(OGRGeometryH, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:1006
OGR_F_SetFieldInteger64
void OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig)
Set field to 64 bit integer value.
Definition: ogrfeature.cpp:2909
OGR_Dr_CreateDataSource
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:64
OGR_Fld_IsIgnored
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1070
OGR_FD_Release
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:173
OGR_F_UnsetField
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1335
OGR_FD_Create
OGRFeatureDefnH OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:86
OGR_G_IsEmpty
int OGR_G_IsEmpty(OGRGeometryH)
Test if the geometry is empty.
Definition: ogrgeometry.cpp:1896
OGR_L_GetFIDColumn
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:1593
OGR_FD_ReorderFieldDefns
OGRErr OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn, int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:554
OGR_STBL_GetLastStyleName
const char * OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable)
Get the style name of the last style string fetched with OGR_STBL_GetNextStyle.
Definition: ogrfeaturestyle.cpp:1355
OGR_G_SetPointZM
void OGR_G_SetPointZM(OGRGeometryH, int iPoint, double, double, double, double)
Set the location of a vertex in a point or linestring geometry.
Definition: ogr_api.cpp:949
OGR_F_Clone
OGRFeatureH OGR_F_Clone(OGRFeatureH) CPL_WARN_UNUSED_RESULT
Duplicate feature.
Definition: ogrfeature.cpp:917
OGR_G_GetZ
double OGR_G_GetZ(OGRGeometryH, int)
Fetch the z coordinate of a point from a geometry.
Definition: ogr_api.cpp:208
OGR_G_Boundary
OGRGeometryH OGR_G_Boundary(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Compute boundary.
Definition: ogrgeometry.cpp:3172
OGR_G_Segmentize
void OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength)
Modify the geometry such it has no segment longer then the given distance.
Definition: ogrgeometry.cpp:775
OGR_G_GetGeometryName
const char * OGR_G_GetGeometryName(OGRGeometryH)
Fetch WKT name for geometry type.
Definition: ogrgeometry.cpp:1752
OGR_FD_Dereference
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1068
OGR_F_SetFID
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition: ogrfeature.cpp:4354
OGR_G_CreateGeometry
OGRGeometryH OGR_G_CreateGeometry(OGRwkbGeometryType) CPL_WARN_UNUSED_RESULT
Create an empty geometry of desired type.
Definition: ogrgeometryfactory.cpp:487
OGR_F_SetFieldRaw
void OGR_F_SetFieldRaw(OGRFeatureH, int, OGRField *)
Set field.
Definition: ogrfeature.cpp:4140
OGR_F_GetGeometryRef
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:526
OGR_F_GetRawFieldRef
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch an handle to the internal field value given the index.
Definition: ogrfeature.cpp:1376
OGR_G_SimplifyPreserveTopology
OGRGeometryH OGR_G_SimplifyPreserveTopology(OGRGeometryH hThis, double tolerance) CPL_WARN_UNUSED_RESULT
Simplify the geometry while preserving topology.
Definition: ogrgeometry.cpp:4795
OGR_STBL_AddStyle
int OGR_STBL_AddStyle(OGRStyleTableH hStyleTable, const char *pszName, const char *pszStyleString)
Add a new style in the table.
Definition: ogrfeaturestyle.cpp:941
OGR_F_GetFieldAsDateTimeEx
int OGR_F_GetFieldAsDateTimeEx(OGRFeatureH hFeat, int iField, int *pnYear, int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, float *pfSecond, int *pnTZFlag)
Fetch field value as date and time.
Definition: ogrfeature.cpp:2626
OGR_G_Set3D
void OGR_G_Set3D(OGRGeometryH, int)
Add or remove the Z coordinate dimension.
Definition: ogrgeometry.cpp:1069
OGR_L_SyncToDisk
OGRErr OGR_L_SyncToDisk(OGRLayerH)
Flush pending changes to disk.
Definition: ogrlayer.cpp:1518
OGR_GFld_Create
OGRGeomFieldDefnH OGR_GFld_Create(const char *, OGRwkbGeometryType) CPL_WARN_UNUSED_RESULT
Create a new field geometry definition.
Definition: ogrgeomfielddefn.cpp:94
OGR_G_GetEnvelope
void OGR_G_GetEnvelope(OGRGeometryH, OGREnvelope *)
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure...
Definition: ogrgeometry.cpp:1231
OGR_L_SetIgnoredFields
OGRErr OGR_L_SetIgnoredFields(OGRLayerH, const char **)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrlayer.cpp:1830
OGRSTClassId
enum ogr_style_tool_class_id OGRSTClassId
OGRStyleTool derived class types (returned by GetType()).
OGR_DS_GetLayerCount
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition: ogrdatasource.cpp:269
OGR_L_SetSpatialFilterRectEx
void OGR_L_SetSpatialFilterRectEx(OGRLayerH, int iGeomField, double dfMinX, double dfMinY, double dfMaxX, double dfMaxY)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1231
OGR_F_SetFieldDoubleList
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:3565
OGR_GFld_SetNullable
void OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int)
Set whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:616
OGR_DS_CopyLayer
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition: ogrdatasource.cpp:158
OGR_F_SetFieldInteger64List
void OGR_F_SetFieldInteger64List(OGRFeatureH, int, int, const GIntBig *)
Set field to list of 64 bit integers value.
Definition: ogrfeature.cpp:3464
OGR_F_GetFieldIndex
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:1046
OGR_G_GetBoundary
OGRGeometryH OGR_G_GetBoundary(OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead")
Compute boundary (deprecated)
Definition: ogrgeometry.cpp:3187
OGR_SM_AddStyle
int OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName, const char *pszStyleString)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:445
OGR_G_Clone
OGRGeometryH OGR_G_Clone(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Make a copy of this object.
Definition: ogrgeometry.cpp:1788
OGR_G_SetCoordinateDimension
void OGR_G_SetCoordinateDimension(OGRGeometryH, int)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:1043
OGR_G_SetPoint
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:773
OGR_SM_GetPartCount
int OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:643
OGR_ST_GetParamNum
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition: ogrfeaturestyle.cpp:2260
OGR_F_SetStyleString
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string.
Definition: ogrfeature.cpp:5084
OGR_Fld_GetPrecision
int OGR_Fld_GetPrecision(OGRFieldDefnH)
Get the formatting precision for this field.
Definition: ogrfielddefn.cpp:941
OGR_G_ExportToWkb
OGRErr OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry well known binary format.
Definition: ogrgeometry.cpp:1380
OGR_L_Union
OGRErr OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Union of two layers.
Definition: ogrlayer.cpp:2765
OGR_G_GetLinearGeometry
OGRGeometryH OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees, char **papszOptions) CPL_WARN_UNUSED_RESULT
Return, possibly approximate, linear version of this geometry.
Definition: ogr_api.cpp:1590
OGR_ST_GetParamDbl
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition: ogrfeaturestyle.cpp:2312
OGR_Dr_TestCapability
int OGR_Dr_TestCapability(OGRSFDriverH, const char *)
Test if capability is available.
Definition: ogrsfdriver.cpp:167
OGROpen
OGRDataSourceH OGROpen(const char *, int, OGRSFDriverH *) CPL_WARN_UNUSED_RESULT
Open a file / data source with one of the registered drivers.
Definition: ogrsfdriverregistrar.cpp:107
OGR_F_GetFID
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:4299
OGR_G_HasCurveGeometry
int OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear)
Returns if this geometry is or has curve geometry.
Definition: ogr_api.cpp:1554
OGR_L_Clip
OGRErr OGR_L_Clip(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Clip off areas that are not covered by the method layer.
Definition: ogrlayer.cpp:4081
OGR_Dr_DeleteDataSource
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
Definition: ogrsfdriver.cpp:104
OGRSTUnitId
enum ogr_style_tool_units_id OGRSTUnitId
List of units supported by OGRStyleTools.
OGR_GFld_GetNameRef
const char * OGR_GFld_GetNameRef(OGRGeomFieldDefnH)
Fetch name of this field.
Definition: ogrgeomfielddefn.cpp:220
OGR_G_ExportToIsoWkb
OGRErr OGR_G_ExportToIsoWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry into SFSQL 1.2 / ISO SQL/MM Part 3 well known binary format.
Definition: ogrgeometry.cpp:1414
OGRwkbGeometryType
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:333
OGR_G_Crosses
int OGR_G_Crosses(OGRGeometryH, OGRGeometryH)
Test for crossing.
Definition: ogrgeometry.cpp:4074
OGR_L_ResetReading
void OGR_L_ResetReading(OGRLayerH)
Reset feature reading to start on the first feature.
Definition: ogrlayer.cpp:1463
OGR_FD_GetGeomFieldDefn
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:655
OGR_G_ForceTo
OGRGeometryH OGR_G_ForceTo(OGRGeometryH hGeom, OGRwkbGeometryType eTargetType, char **papszOptions) CPL_WARN_UNUSED_RESULT
Convert to another geometry type.
Definition: ogrgeometryfactory.cpp:3201
OGR_ST_GetParamStr
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition: ogrfeaturestyle.cpp:2208
OGR_G_IsSimple
int OGR_G_IsSimple(OGRGeometryH)
Returns TRUE if the geometry is simple.
Definition: ogrgeometry.cpp:2042
OGR_G_ForceToMultiPolygon
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to multipolygon.
Definition: ogrgeometryfactory.cpp:776
OGR_DS_ReleaseResultSet
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition: ogrdatasource.cpp:239
OGR_F_Destroy
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:192
OGR_F_GetFieldCount
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:956
OGR_G_AssignSpatialReference
void OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:430
OGR_FD_DeleteFieldDefn
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:476
OGR_ST_GetStyleString
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition: ogrfeaturestyle.cpp:2492
OGR_G_Touches
int OGR_G_Touches(OGRGeometryH, OGRGeometryH)
Test for touching.
Definition: ogrgeometry.cpp:3991
OGR_DS_TestCapability
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition: ogrdatasource.cpp:256
OGR_GFld_IsIgnored
int OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:359
OGR_Fld_GetDefault
const char * OGR_Fld_GetDefault(OGRFieldDefnH hDefn)
Get default field value.
Definition: ogrfielddefn.cpp:540
OGR_Fld_Set
void OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int, OGRJustification)
Set defining parameters for a field in one call.
Definition: ogrfielddefn.cpp:1033
OGR_GFld_Destroy
void OGR_GFld_Destroy(OGRGeomFieldDefnH)
Destroy a geometry field definition.
Definition: ogrgeomfielddefn.cpp:140
OGR_F_GetFieldAsInteger
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:1493
OGR_G_GetM
double OGR_G_GetM(OGRGeometryH, int)
Fetch the m coordinate of a point from a geometry.
Definition: ogr_api.cpp:255
OGR_Dr_GetName
const char * OGR_Dr_GetName(OGRSFDriverH)
Fetch name of driver (file format).
Definition: ogrsfdriver.cpp:126
OGR_G_Transform
OGRErr OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH)
Apply arbitrary coordinate transformation to geometry.
Definition: ogrgeometry.cpp:695
OGR_GFld_SetSpatialRef
void OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH, OGRSpatialReferenceH hSRS)
Set the spatial reference of this field.
Definition: ogrgeomfielddefn.cpp:491
OGR_G_AddGeometryDirectly
OGRErr OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH)
Add a geometry directly to an existing geometry container.
Definition: ogr_api.cpp:1337
OGR_ST_SetParamNum
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2408
OGR_L_GetGeomType
OGRwkbGeometryType OGR_L_GetGeomType(OGRLayerH)
Return the layer geometry type.
Definition: ogrlayer.cpp:1753
OGR_G_ForceToPolygon
OGRGeometryH OGR_G_ForceToPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to polygon.
Definition: ogrgeometryfactory.cpp:648
OGR_G_Area
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:1482
OGR_F_IsFieldSet
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1258
OGR_G_Contains
int OGR_G_Contains(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:4238
OGR_L_Erase
OGRErr OGR_L_Erase(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Remove areas that are covered by the method layer.
Definition: ogrlayer.cpp:4334
OGR_G_RemoveGeometry
OGRErr OGR_G_RemoveGeometry(OGRGeometryH, int, int)
Remove a geometry from an exiting geometry container.
Definition: ogr_api.cpp:1396
OGR_F_GetGeomFieldDefnRef
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1135
OGR_L_TestCapability
int OGR_L_TestCapability(OGRLayerH, const char *)
Test if this layer supported the named capability.
Definition: ogrlayer.cpp:1061
OGR_FD_GetGeomType
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:922
OGR_G_Simplify
OGRGeometryH OGR_G_Simplify(OGRGeometryH hThis, double tolerance) CPL_WARN_UNUSED_RESULT
Compute a simplified geometry.
Definition: ogrgeometry.cpp:4709
OGR_SM_Create
OGRStyleMgrH OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT
OGRStyleMgr factory.
Definition: ogrfeaturestyle.cpp:145
OGR_G_Union
OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH) CPL_WARN_UNUSED_RESULT
Compute union.
Definition: ogrgeometry.cpp:3504
OGR_L_SetAttributeFilter
OGRErr OGR_L_SetAttributeFilter(OGRLayerH, const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:429
OGR_Fld_IsDefaultDriverSpecific
int OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn)
Returns whether the default value is driver specific.
Definition: ogrfielddefn.cpp:606
OGR_DS_GetDriver
OGRSFDriverH OGR_DS_GetDriver(OGRDataSourceH)
Returns the driver that the dataset was opened with.
Definition: ogrdatasource.cpp:333
OGR_FD_DeleteGeomFieldDefn
OGRErr OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn, int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:804
OGR_DS_GetLayer
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition: ogrdatasource.cpp:286
OGR_GFld_SetIgnored
void OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:396
OGR_G_GetGeometryCount
int OGR_G_GetGeometryCount(OGRGeometryH)
Fetch the number of elements in a geometry or number of geometries in container.
Definition: ogr_api.cpp:1176
OGR_G_GetPoints
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:316
OGR_DS_GetLayerByName
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition: ogrdatasource.cpp:195
OGR_Fld_GetJustify
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:805
OGR_G_ExportToGML
char * OGR_G_ExportToGML(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1085
OGR_L_GetFeatureCount
GIntBig OGR_L_GetFeatureCount(OGRLayerH, int)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:195
ogr_core.h
Core portability services for cross-platform OGR code.
OGR_L_Identity
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:3495
OGR_G_Intersection
OGRGeometryH OGR_G_Intersection(OGRGeometryH, OGRGeometryH) CPL_WARN_UNUSED_RESULT
Compute intersection.
Definition: ogrgeometry.cpp:3405
OGR_L_Update
OGRErr OGR_L_Update(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Update this layer with features from the update layer.
Definition: ogrlayer.cpp:3808
OGR_G_SetPointCount
void OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount)
Set number of points in a geometry.
Definition: ogr_api.cpp:83
OGRJustification
OGRJustification
Display justification for field values.
Definition: ogr_core.h:644
OGR_F_GetNativeMediaType
const char * OGR_F_GetNativeMediaType(OGRFeatureH)
Returns the native media type for the feature.
Definition: ogrfeature.cpp:5663
OGR_STBL_Create
OGRStyleTableH OGR_STBL_Create(void) CPL_WARN_UNUSED_RESULT
OGRStyleTable factory.
Definition: ogrfeaturestyle.cpp:800
OGR_Fld_SetName
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:180
OGR_Fld_SetPrecision
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:977
OGR_F_SetFieldIntegerList
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:3350
OGR_F_GetDefnRef
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition: ogrfeature.cpp:286
OGR_G_ExportToJsonEx
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions) CPL_WARN_UNUSED_RESULT
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:922
OGR_F_GetFieldAsDouble
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:1685
OGR_FD_Reference
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:1034
OGR_G_AddPointM
void OGR_G_AddPointM(OGRGeometryH, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:1088
OGR_F_GetFieldAsDoubleList
const double * OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:2323
OGR_GFld_GetSpatialRef
OGRSpatialReferenceH OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH)
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:436
OGRFieldType
OGRFieldType
List of feature field types.
Definition: ogr_core.h:600
OGR_F_GetFieldAsStringList
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:2395
OGR_G_Value
OGRGeometryH OGR_G_Value(OGRGeometryH, double dfDistance) CPL_WARN_UNUSED_RESULT
Fetch point at given distance along curve.
Definition: ogr_api.cpp:1653
OGREnvelope3D
Simple container for a bounding region in 3D.
Definition: ogr_core.h:161
OGR_DS_GetName
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition: ogrdatasource.cpp:305
OGR_F_GetFieldAsBinary
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:2470
OGR_FD_GetReferenceCount
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:1103
OGRRegisterAll
void OGRRegisterAll(void)
Register all drivers.
Definition: ogrregisterall.cpp:39
OGR_G_SetPointM
void OGR_G_SetPointM(OGRGeometryH, int iPoint, double, double, double)
Set the location of a vertex in a point or linestring geometry.
Definition: ogr_api.cpp:889
OGR_L_Intersection
OGRErr OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Intersection of two layers.
Definition: ogrlayer.cpp:2304
OGR_G_GetCurveGeometry
OGRGeometryH OGR_G_GetCurveGeometry(OGRGeometryH hGeom, char **papszOptions) CPL_WARN_UNUSED_RESULT
Return curve version of this geometry.
Definition: ogr_api.cpp:1627
OGR_STBL_ResetStyleStringReading
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1272
OGR_F_SetFieldBinary
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, GByte *)
Set field to binary data.
Definition: ogrfeature.cpp:3750
OGR_G_SetPoints
void OGR_G_SetPoints(OGRGeometryH hGeom, int nPointsIn, void *pabyX, int nXStride, void *pabyY, int nYStride, void *pabyZ, int nZStride)
Assign all points in a point or a line string geometry.
Definition: ogr_api.cpp:569
OGR_F_GetFieldAsIntegerList
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:2179
OGR_G_GetPoint
void OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *, double *)
Fetch a point in line string or a point geometry.
Definition: ogr_api.cpp:427
OGR_ST_Destroy
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1428
OGR_GetFieldTypeName
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:685
OGR_F_Validate
int OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError)
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:5541
OGR_G_Length
double OGR_G_Length(OGRGeometryH)
Compute length of a geometry.
Definition: ogr_api.cpp:1436
OGRGetDriver
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
Definition: ogrsfdriverregistrar.cpp:378
OGR_STBL_Destroy
void OGR_STBL_Destroy(OGRStyleTableH hSTBL)
Destroy Style Table.
Definition: ogrfeaturestyle.cpp:842
OGR_F_SetFrom
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition: ogrfeature.cpp:4676
OGRCleanupAll
void OGRCleanupAll(void)
Cleanup all OGR related resources.
Definition: ogrsfdriverregistrar.cpp:87
OGR_DS_ExecuteSQL
OGRLayerH OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: ogrdatasource.cpp:214
OGR_L_SetSpatialFilterRect
void OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double, double)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1211
OGR_FD_AddGeomFieldDefn
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:731
OGR_L_FindFieldIndex
int OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch)
Find the index of field in a layer.
Definition: ogrlayer.cpp:1006
OGREnvelope
Simple container for a bounding region.
Definition: ogr_core.h:48
OGR_AreTypeSubTypeCompatible
int OGR_AreTypeSubTypeCompatible(OGRFieldType eType, OGRFieldSubType eSubType)
Return if type and subtype are compatible.
Definition: ogrfielddefn.cpp:764
OGRField
OGRFeature field attribute value union.
Definition: ogr_core.h:662
OGR_G_CreateFromGML
OGRGeometryH OGR_G_CreateFromGML(const char *) CPL_WARN_UNUSED_RESULT
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:3360
OGR_GetFieldSubTypeName
const char * OGR_GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition: ogrfielddefn.cpp:745
OGR_G_WkbSize
int OGR_G_WkbSize(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:1201
OGR_G_CreateFromWkt
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:389
OGR_F_SetGeomFieldDirectly
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:735
OGR_G_Within
int OGR_G_Within(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:4156
OGR_SM_GetPart
OGRStyleToolH OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId, const char *pszStyleString)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:729
OGR_G_SetPointsZM
void OGR_G_SetPointsZM(OGRGeometryH hGeom, int nPointsIn, void *pabyX, int nXStride, void *pabyY, int nYStride, void *pabyZ, int nZStride, void *pabyM, int nMStride)
Assign all points in a point or a line string geometry.
Definition: ogr_api.cpp:653
OGR_G_ForceToMultiLineString
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to multilinestring.
Definition: ogrgeometryfactory.cpp:1118
OGR_F_GetStyleString
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:5034
OGR_L_GetLayerDefn
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH)
Fetch the schema information for this layer.
Definition: ogrlayer.cpp:989
OGR_F_StealGeometry
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH) CPL_WARN_UNUSED_RESULT
Take away ownership of geometry.
Definition: ogrfeature.cpp:478
OGRReleaseDataSource
OGRErr OGRReleaseDataSource(OGRDataSourceH)
Drop a reference to this datasource, and if the reference count drops to zero close (destroy) the dat...
Definition: ogrsfdriverregistrar.cpp:150
OGR_GFld_IsNullable
int OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn)
Return whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:570
OGR_FD_SetGeometryIgnored
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1260
OGR_Fld_IsNullable
int OGR_Fld_IsNullable(OGRFieldDefnH hDefn)
Return whether this field can receive null values.
Definition: ogrfielddefn.cpp:1171
OGR_F_SetFieldDateTime
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:3849
OGR_DS_CreateLayer
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:129
OGR_L_GetGeometryColumn
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:1623
OGR_L_RollbackTransaction
OGRErr OGR_L_RollbackTransaction(OGRLayerH)
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: ogrlayer.cpp:972
OGR_G_CoordinateDimension
int OGR_G_CoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:901
OGR_L_SetSpatialFilterEx
void OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField, OGRGeometryH hGeom)
Set a new spatial filter.
Definition: ogrlayer.cpp:1159
OGR_ST_SetParamStr
void OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue)
Set Style Tool parameter value from a string.
Definition: ogrfeaturestyle.cpp:2363
OGR_L_CreateFeature
OGRErr OGR_L_CreateFeature(OGRLayerH, OGRFeatureH) CPL_WARN_UNUSED_RESULT
Create and write a new feature within a layer.
Definition: ogrlayer.cpp:645
OGR_SM_Destroy
void OGR_SM_Destroy(OGRStyleMgrH hSM)
Destroy Style Manager.
Definition: ogrfeaturestyle.cpp:178
OGR_F_SetFromWithMap
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, int *)
Set one feature from another.
Definition: ogrfeature.cpp:4816
OGR_G_Polygonize
OGRGeometryH OGR_G_Polygonize(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Polygonizes a set of sparse edges.
Definition: ogrgeometry.cpp:5020
OGR_G_GetY
double OGR_G_GetY(OGRGeometryH, int)
Fetch the x coordinate of a point from a geometry.
Definition: ogr_api.cpp:161
OGR_G_IsMeasured
int OGR_G_IsMeasured(OGRGeometryH)
See whether this geometry is measured.
Definition: ogrgeometry.cpp:943
OGR_ST_Create
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1392
OGR_Fld_GetWidth
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:873
OGR_G_SetPoint_2D
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:831
OGR_G_Equals
int OGR_G_Equals(OGRGeometryH, OGRGeometryH)
Returns TRUE if two geometries are equivalent.
Definition: ogrgeometry.cpp:1137
OGR_G_SymmetricDifference
OGRGeometryH OGR_G_SymmetricDifference(OGRGeometryH, OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_SymDifference() instead")
Compute symmetric difference (deprecated)
Definition: ogrgeometry.cpp:3825
OGR_GFld_GetType
OGRwkbGeometryType OGR_GFld_GetType(OGRGeomFieldDefnH)
Fetch geometry type of this field.
Definition: ogrgeomfielddefn.cpp:263
OGR_FD_GetGeomFieldCount
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:595
OGR_Fld_SetType
void OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType)
Set the type of this field.
Definition: ogrfielddefn.cpp:304
OGR_G_AddPointZM
void OGR_G_AddPointZM(OGRGeometryH, double, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:1131
OGR_G_Buffer
OGRGeometryH OGR_G_Buffer(OGRGeometryH, double, int) CPL_WARN_UNUSED_RESULT
Compute buffer of geometry.
Definition: ogrgeometry.cpp:3303
OGR_SM_InitFromFeature
const char * OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat)
Initialize style manager from the style string of a feature.
Definition: ogrfeaturestyle.cpp:272
OGR_Fld_SetDefault
void OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *)
Set default field value.
Definition: ogrfielddefn.cpp:502
OGR_Fld_SetSubType
void OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType)
Set the subtype of this field.
Definition: ogrfielddefn.cpp:393
OGR_FD_SetStyleIgnored
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1328
OGR_G_IsRing
int OGR_G_IsRing(OGRGeometryH)
Test if the geometry is a ring.
Definition: ogrgeometry.cpp:2115
OGR_F_GetNativeData
const char * OGR_F_GetNativeData(OGRFeatureH)
Returns the native data for the feature.
Definition: ogrfeature.cpp:5612
OGR_G_DumpReadable
void OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *)
Dump geometry in well known text format to indicated output file.
Definition: ogrgeometry.cpp:367
OGR_G_DestroyGeometry
void OGR_G_DestroyGeometry(OGRGeometryH)
Destroy geometry object.
Definition: ogrgeometryfactory.cpp:531
OGR_G_Disjoint
int OGR_G_Disjoint(OGRGeometryH, OGRGeometryH)
Test for disjointness.
Definition: ogrgeometry.cpp:3908
OGR_L_DeleteField
OGRErr OGR_L_DeleteField(OGRLayerH, int iField)
Create a new field on a layer.
Definition: ogrlayer.cpp:714
OGR_G_ForceToMultiPoint
OGRGeometryH OGR_G_ForceToMultiPoint(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to multipoint.
Definition: ogrgeometryfactory.cpp:874
OGR_G_ExportToGMLEx
char * OGR_G_ExportToGMLEx(OGRGeometryH, char **papszOptions) CPL_WARN_UNUSED_RESULT
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1134
OGR_FD_SetGeomType
void OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType)
Assign the base geometry type for the passed layer (the same as the feature definition).
Definition: ogrfeaturedefn.cpp:995
OGR_STBL_Find
const char * OGR_STBL_Find(OGRStyleTableH hStyleTable, const char *pszName)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1157
OGR_STBL_GetNextStyle
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1324
OGR_Fld_SetWidth
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:905
OGR_L_SetNextByIndex
OGRErr OGR_L_SetNextByIndex(OGRLayerH, GIntBig)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:523
OGR_F_GetFieldAsInteger64List
const GIntBig * OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *)
Fetch field value as a list of 64 bit integers.
Definition: ogrfeature.cpp:2252
OGR_F_FillUnsetWithDefault
void OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly, char **papszOptions)
Fill unset fields with default values that might be defined.
Definition: ogrfeature.cpp:5390
OGR_Fld_GetType
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:252
OGR_L_CreateGeomField
OGRErr OGR_L_CreateGeomField(OGRLayerH hLayer, OGRGeomFieldDefnH hFieldDefn, int bForce)
Create a new geometry field on a layer.
Definition: ogrlayer.cpp:888
OGR_L_StartTransaction
OGRErr OGR_L_StartTransaction(OGRLayerH) CPL_WARN_UNUSED_RESULT
For datasources which support transactions, StartTransaction creates a transaction.
Definition: ogrlayer.cpp:918
OGR_GFld_SetType
void OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType)
Set the geometry type of this field.
Definition: ogrgeomfielddefn.cpp:321
OGRSetNonLinearGeometriesEnabledFlag
void OGRSetNonLinearGeometriesEnabledFlag(int bFlag)
Set flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1697
OGR_F_GetFieldAsDateTime
int OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *, int *, int *, int *, int *)
Fetch field value as date and time.
Definition: ogrfeature.cpp:2583
OGR_FD_GetGeomFieldIndex
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:860
OGR_Fld_GetNameRef
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:214
OGR_Dr_CopyDataSource
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:192
OGR_G_GetGeometryRef
OGRGeometryH OGR_G_GetGeometryRef(OGRGeometryH, int)
Fetch geometry from a geometry container.
Definition: ogr_api.cpp:1229
OGR_L_GetExtentEx
OGRErr OGR_L_GetExtentEx(OGRLayerH, int iGeomField, OGREnvelope *psExtent, int bForce)
Fetch the extent of this layer, on the specified geometry field.
Definition: ogrlayer.cpp:322
OGR_G_Intersects
int OGR_G_Intersects(OGRGeometryH, OGRGeometryH)
Do these features intersect?
Definition: ogrgeometry.cpp:535
OGR_G_GetDimension
int OGR_G_GetDimension(OGRGeometryH)
Get the dimension of this geometry.
Definition: ogrgeometry.cpp:806
OGR_G_IsValid
int OGR_G_IsValid(OGRGeometryH)
Test if the geometry is valid.
Definition: ogrgeometry.cpp:1969
OGR_F_SetStyleStringDirectly
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition: ogrfeature.cpp:5131
OGR_F_GetFieldDefnRef
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:997
OGR_G_GetX
double OGR_G_GetX(OGRGeometryH, int)
Fetch the x coordinate of a point from a geometry.
Definition: ogr_api.cpp:114
OGR_DS_DeleteLayer
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition: ogrdatasource.cpp:176
OGR_G_GetPointCount
int OGR_G_GetPointCount(OGRGeometryH)
Fetch number of points from a geometry.
Definition: ogr_api.cpp:51
OGR_G_FlattenTo2D
void OGR_G_FlattenTo2D(OGRGeometryH)
Convert geometry to strictly 2D.
Definition: ogrgeometry.cpp:2557

Generated for GDAL by 1.8.8.