GDAL

ogr_api.h
Go to the documentation of this file.
1 /******************************************************************************
2 * $Id$
3 *
4 * Project: OpenGIS Simple Features Reference Implementation
5 * Purpose: C API for OGR Geometry, Feature, Layers, DataSource and drivers.
6 * Author: Frank Warmerdam, warmerdam@pobox.com
7 *
8 ******************************************************************************
9 * Copyright (c) 2002, Frank Warmerdam
10 * Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>
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 #include <stdbool.h>
48 #include <stddef.h>
49 #include <stdint.h>
50
51 CPL_C_START
52
53 bool CPL_DLL OGRGetGEOSVersion(int *pnMajor, int *pnMinor, int *pnPatch);
54
55 /* -------------------------------------------------------------------- */
56 /* Geometry related functions (ogr_geometry.h) */
57 /* -------------------------------------------------------------------- */
58 #ifndef DEFINEH_OGRGeometryH
59
60 #define DEFINEH_OGRGeometryH
61
62 #ifdef DEBUG
63 typedef struct OGRGeometryHS *OGRGeometryH;
64 #else
65
66 typedef void *OGRGeometryH;
67 #endif
68 #endif /* DEFINEH_OGRGeometryH */
69
70 #ifndef DEFINED_OGRSpatialReferenceH
71
72 #define DEFINED_OGRSpatialReferenceH
73
75 #ifndef DOXYGEN_XML
76 #ifdef DEBUG
77 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
78 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
79 #else
80
81 typedef void *OGRSpatialReferenceH;
83 typedef void *OGRCoordinateTransformationH;
84 #endif
85 #endif
86
87 #endif /* DEFINED_OGRSpatialReferenceH */
88
89 struct _CPLXMLNode;
90
91 /* From base OGRGeometry class */
92
93 OGRErr CPL_DLL OGR_G_CreateFromWkb(const void *, OGRSpatialReferenceH,
94 OGRGeometryH *, int);
95 OGRErr CPL_DLL OGR_G_CreateFromWkbEx(const void *, OGRSpatialReferenceH,
96 OGRGeometryH *, size_t);
97 OGRErr CPL_DLL OGR_G_CreateFromWkt(char **, OGRSpatialReferenceH,
98 OGRGeometryH *);
99 OGRErr CPL_DLL OGR_G_CreateFromFgf(const void *, OGRSpatialReferenceH,
100 OGRGeometryH *, int, int *);
101 void CPL_DLL OGR_G_DestroyGeometry(OGRGeometryH);
102 OGRGeometryH
103 CPL_DLL OGR_G_CreateGeometry(OGRwkbGeometryType) CPL_WARN_UNUSED_RESULT;
104 OGRGeometryH CPL_DLL OGR_G_ApproximateArcAngles(
105 double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius,
106 double dfSecondaryAxis, double dfRotation, double dfStartAngle,
107 double dfEndAngle, double dfMaxAngleStepSizeDegrees) CPL_WARN_UNUSED_RESULT;
108
109 OGRGeometryH CPL_DLL OGR_G_ForceToPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
110 OGRGeometryH
111 CPL_DLL OGR_G_ForceToLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
112 OGRGeometryH
113 CPL_DLL OGR_G_ForceToMultiPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
114 OGRGeometryH
115 CPL_DLL OGR_G_ForceToMultiPoint(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
116 OGRGeometryH
117 CPL_DLL OGR_G_ForceToMultiLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
118 OGRGeometryH CPL_DLL OGR_G_ForceTo(OGRGeometryH hGeom,
119 OGRwkbGeometryType eTargetType,
120 char **papszOptions) CPL_WARN_UNUSED_RESULT;
121 OGRGeometryH CPL_DLL OGR_G_RemoveLowerDimensionSubGeoms(
122 const OGRGeometryH hGeom) CPL_WARN_UNUSED_RESULT;
123
124 int CPL_DLL OGR_G_GetDimension(OGRGeometryH);
125 int CPL_DLL OGR_G_GetCoordinateDimension(OGRGeometryH);
126 int CPL_DLL OGR_G_CoordinateDimension(OGRGeometryH);
127 void CPL_DLL OGR_G_SetCoordinateDimension(OGRGeometryH, int);
128 int CPL_DLL OGR_G_Is3D(OGRGeometryH);
129 int CPL_DLL OGR_G_IsMeasured(OGRGeometryH);
130 void CPL_DLL OGR_G_Set3D(OGRGeometryH, int);
131 void CPL_DLL OGR_G_SetMeasured(OGRGeometryH, int);
132 OGRGeometryH CPL_DLL OGR_G_Clone(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
133 void CPL_DLL OGR_G_GetEnvelope(OGRGeometryH, OGREnvelope *);
134 void CPL_DLL OGR_G_GetEnvelope3D(OGRGeometryH, OGREnvelope3D *);
135 OGRErr CPL_DLL OGR_G_ImportFromWkb(OGRGeometryH, const void *, int);
136 OGRErr CPL_DLL OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder,
137 unsigned char *);
138 OGRErr CPL_DLL OGR_G_ExportToIsoWkb(OGRGeometryH, OGRwkbByteOrder,
139 unsigned char *);
140 int CPL_DLL OGR_G_WkbSize(OGRGeometryH hGeom);
141 size_t CPL_DLL OGR_G_WkbSizeEx(OGRGeometryH hGeom);
142 OGRErr CPL_DLL OGR_G_ImportFromWkt(OGRGeometryH, char **);
143 OGRErr CPL_DLL OGR_G_ExportToWkt(OGRGeometryH, char **);
144 OGRErr CPL_DLL OGR_G_ExportToIsoWkt(OGRGeometryH, char **);
145 OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType(OGRGeometryH);
146 const char CPL_DLL *OGR_G_GetGeometryName(OGRGeometryH);
147 void CPL_DLL OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *);
148 void CPL_DLL OGR_G_FlattenTo2D(OGRGeometryH);
149 void CPL_DLL OGR_G_CloseRings(OGRGeometryH);
150
151 OGRGeometryH CPL_DLL OGR_G_CreateFromGML(const char *) CPL_WARN_UNUSED_RESULT;
152 char CPL_DLL *OGR_G_ExportToGML(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
153 char CPL_DLL *OGR_G_ExportToGMLEx(OGRGeometryH,
154 char **papszOptions) CPL_WARN_UNUSED_RESULT;
155
156 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree(const CPLXMLNode *)
157 CPL_WARN_UNUSED_RESULT;
158 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
159 CPLXMLNode CPL_DLL *
160 OGR_G_ExportEnvelopeToGMLTree(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
161
162 char CPL_DLL *OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
163 CPL_WARN_UNUSED_RESULT;
164
165 char CPL_DLL *OGR_G_ExportToJson(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
166 char CPL_DLL *OGR_G_ExportToJsonEx(OGRGeometryH,
167 char **papszOptions) CPL_WARN_UNUSED_RESULT;
169 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromJson(const char *)
170 CPL_WARN_UNUSED_RESULT;
172 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromEsriJson(const char *)
173 CPL_WARN_UNUSED_RESULT;
174
175 void CPL_DLL OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH);
176 OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference(OGRGeometryH);
177 OGRErr CPL_DLL OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH);
178 OGRErr CPL_DLL OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH);
179
181 typedef struct OGRGeomTransformer *OGRGeomTransformerH;
182 OGRGeomTransformerH CPL_DLL
183 OGR_GeomTransformer_Create(OGRCoordinateTransformationH,
184 CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
185 OGRGeometryH CPL_DLL
186 OGR_GeomTransformer_Transform(OGRGeomTransformerH hTransformer,
187 OGRGeometryH hGeom) CPL_WARN_UNUSED_RESULT;
188 void CPL_DLL OGR_GeomTransformer_Destroy(OGRGeomTransformerH hTransformer);
189
190 OGRGeometryH CPL_DLL OGR_G_Simplify(OGRGeometryH hThis,
191 double tolerance) CPL_WARN_UNUSED_RESULT;
192 OGRGeometryH CPL_DLL OGR_G_SimplifyPreserveTopology(
193 OGRGeometryH hThis, double tolerance) CPL_WARN_UNUSED_RESULT;
194 OGRGeometryH CPL_DLL
195 OGR_G_DelaunayTriangulation(OGRGeometryH hThis, double dfTolerance,
196 int bOnlyEdges) CPL_WARN_UNUSED_RESULT;
197
198 void CPL_DLL OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength);
199 int CPL_DLL OGR_G_Intersects(OGRGeometryH, OGRGeometryH);
200 int CPL_DLL OGR_G_Equals(OGRGeometryH, OGRGeometryH);
201 /*int CPL_DLL OGR_G_EqualsExact( OGRGeometryH, OGRGeometryH, double );*/
202 int CPL_DLL OGR_G_Disjoint(OGRGeometryH, OGRGeometryH);
203 int CPL_DLL OGR_G_Touches(OGRGeometryH, OGRGeometryH);
204 int CPL_DLL OGR_G_Crosses(OGRGeometryH, OGRGeometryH);
205 int CPL_DLL OGR_G_Within(OGRGeometryH, OGRGeometryH);
206 int CPL_DLL OGR_G_Contains(OGRGeometryH, OGRGeometryH);
207 int CPL_DLL OGR_G_Overlaps(OGRGeometryH, OGRGeometryH);
208
209 OGRGeometryH CPL_DLL OGR_G_Boundary(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
210 OGRGeometryH CPL_DLL OGR_G_ConvexHull(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
211 OGRGeometryH CPL_DLL OGR_G_ConcaveHull(OGRGeometryH, double dfRatio,
212 bool bAllowHoles) CPL_WARN_UNUSED_RESULT;
213 OGRGeometryH CPL_DLL OGR_G_Buffer(OGRGeometryH, double,
214 int) CPL_WARN_UNUSED_RESULT;
215 OGRGeometryH CPL_DLL OGR_G_Intersection(OGRGeometryH,
216 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
217 OGRGeometryH CPL_DLL OGR_G_Union(OGRGeometryH,
218 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
219 OGRGeometryH CPL_DLL OGR_G_UnionCascaded(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
220 OGRGeometryH CPL_DLL OGR_G_UnaryUnion(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
221 OGRGeometryH CPL_DLL OGR_G_PointOnSurface(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
222 /*OGRGeometryH CPL_DLL OGR_G_Polygonize( OGRGeometryH *, int);*/
223 /*OGRGeometryH CPL_DLL OGR_G_Polygonizer_getCutEdges( OGRGeometryH *, int);*/
224 /*OGRGeometryH CPL_DLL OGR_G_LineMerge( OGRGeometryH );*/
225
226 OGRGeometryH CPL_DLL OGR_G_Difference(OGRGeometryH,
227 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
228 OGRGeometryH CPL_DLL OGR_G_SymDifference(OGRGeometryH,
229 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
230 double CPL_DLL OGR_G_Distance(OGRGeometryH, OGRGeometryH);
231 double CPL_DLL OGR_G_Distance3D(OGRGeometryH, OGRGeometryH);
232 double CPL_DLL OGR_G_Length(OGRGeometryH);
233 double CPL_DLL OGR_G_Area(OGRGeometryH);
234 bool CPL_DLL OGR_G_IsClockwise(OGRGeometryH hGeom);
235 int CPL_DLL OGR_G_Centroid(OGRGeometryH, OGRGeometryH);
236 OGRGeometryH CPL_DLL OGR_G_Value(OGRGeometryH,
237 double dfDistance) CPL_WARN_UNUSED_RESULT;
238
239 void CPL_DLL OGR_G_Empty(OGRGeometryH);
240 int CPL_DLL OGR_G_IsEmpty(OGRGeometryH);
241 int CPL_DLL OGR_G_IsValid(OGRGeometryH);
242 /*char CPL_DLL *OGR_G_IsValidReason( OGRGeometryH );*/
243 OGRGeometryH CPL_DLL OGR_G_MakeValid(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
244 OGRGeometryH CPL_DLL OGR_G_MakeValidEx(OGRGeometryH,
245 CSLConstList) CPL_WARN_UNUSED_RESULT;
246 OGRGeometryH CPL_DLL OGR_G_Normalize(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
247 int CPL_DLL OGR_G_IsSimple(OGRGeometryH);
248 int CPL_DLL OGR_G_IsRing(OGRGeometryH);
249
250 OGRGeometryH CPL_DLL OGR_G_Polygonize(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
251
253 /* backward compatibility (non-standard methods) */
254 int CPL_DLL OGR_G_Intersect(OGRGeometryH, OGRGeometryH)
255 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Intersects() instead");
256 int CPL_DLL OGR_G_Equal(OGRGeometryH, OGRGeometryH)
257 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Equals() instead");
258 OGRGeometryH CPL_DLL OGR_G_SymmetricDifference(OGRGeometryH, OGRGeometryH)
259 CPL_WARN_DEPRECATED(
260 "Non standard method. Use OGR_G_SymDifference() instead");
261 double CPL_DLL OGR_G_GetArea(OGRGeometryH)
262 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead");
263 OGRGeometryH CPL_DLL OGR_G_GetBoundary(OGRGeometryH)
264 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead");
267 /* Methods for getting/setting vertices in points, line strings and rings */
268 int CPL_DLL OGR_G_GetPointCount(OGRGeometryH);
269 int CPL_DLL OGR_G_GetPoints(OGRGeometryH hGeom, void *pabyX, int nXStride,
270 void *pabyY, int nYStride, void *pabyZ,
271 int nZStride);
272 int CPL_DLL OGR_G_GetPointsZM(OGRGeometryH hGeom, void *pabyX, int nXStride,
273 void *pabyY, int nYStride, void *pabyZ,
274 int nZStride, void *pabyM, int nMStride);
275 double CPL_DLL OGR_G_GetX(OGRGeometryH, int);
276 double CPL_DLL OGR_G_GetY(OGRGeometryH, int);
277 double CPL_DLL OGR_G_GetZ(OGRGeometryH, int);
278 double CPL_DLL OGR_G_GetM(OGRGeometryH, int);
279 void CPL_DLL OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *,
280 double *);
281 void CPL_DLL OGR_G_GetPointZM(OGRGeometryH, int iPoint, double *, double *,
282 double *, double *);
283 void CPL_DLL OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount);
284 void CPL_DLL OGR_G_SetPoint(OGRGeometryH, int iPoint, double, double, double);
285 void CPL_DLL OGR_G_SetPoint_2D(OGRGeometryH, int iPoint, double, double);
286 void CPL_DLL OGR_G_SetPointM(OGRGeometryH, int iPoint, double, double, double);
287 void CPL_DLL OGR_G_SetPointZM(OGRGeometryH, int iPoint, double, double, double,
288 double);
289 void CPL_DLL OGR_G_AddPoint(OGRGeometryH, double, double, double);
290 void CPL_DLL OGR_G_AddPoint_2D(OGRGeometryH, double, double);
291 void CPL_DLL OGR_G_AddPointM(OGRGeometryH, double, double, double);
292 void CPL_DLL OGR_G_AddPointZM(OGRGeometryH, double, double, double, double);
293 void CPL_DLL OGR_G_SetPoints(OGRGeometryH hGeom, int nPointsIn,
294 const void *pabyX, int nXStride, const void *pabyY,
295 int nYStride, const void *pabyZ, int nZStride);
296 void CPL_DLL OGR_G_SetPointsZM(OGRGeometryH hGeom, int nPointsIn,
297 const void *pabyX, int nXStride,
298 const void *pabyY, int nYStride,
299 const void *pabyZ, int nZStride,
300 const void *pabyM, int nMStride);
301 void CPL_DLL OGR_G_SwapXY(OGRGeometryH hGeom);
302
303 /* Methods for getting/setting rings and members collections */
304
305 int CPL_DLL OGR_G_GetGeometryCount(OGRGeometryH);
306 OGRGeometryH CPL_DLL OGR_G_GetGeometryRef(OGRGeometryH, int);
307 OGRErr CPL_DLL OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH);
308 OGRErr CPL_DLL OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH);
309 OGRErr CPL_DLL OGR_G_RemoveGeometry(OGRGeometryH, int, int);
310
311 int CPL_DLL OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear);
312 OGRGeometryH CPL_DLL
313 OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees,
314 char **papszOptions) CPL_WARN_UNUSED_RESULT;
315 OGRGeometryH CPL_DLL OGR_G_GetCurveGeometry(
316 OGRGeometryH hGeom, char **papszOptions) CPL_WARN_UNUSED_RESULT;
317
318 OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges(
319 OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose,
320 double dfTolerance, OGRErr *peErr) CPL_WARN_UNUSED_RESULT;
321
323 OGRErr CPL_DLL
324 OGRSetGenerate_DB2_V72_BYTE_ORDER(int bGenerate_DB2_V72_BYTE_ORDER);
325
326 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(void);
329 void CPL_DLL OGRSetNonLinearGeometriesEnabledFlag(int bFlag);
330 int CPL_DLL OGRGetNonLinearGeometriesEnabledFlag(void);
331
333 typedef struct _OGRPreparedGeometry *OGRPreparedGeometryH;
334
335 int CPL_DLL OGRHasPreparedGeometrySupport(void);
336 OGRPreparedGeometryH CPL_DLL OGRCreatePreparedGeometry(OGRGeometryH hGeom);
337 void CPL_DLL OGRDestroyPreparedGeometry(OGRPreparedGeometryH hPreparedGeom);
338 int CPL_DLL OGRPreparedGeometryIntersects(OGRPreparedGeometryH hPreparedGeom,
339 OGRGeometryH hOtherGeom);
340 int CPL_DLL OGRPreparedGeometryContains(OGRPreparedGeometryH hPreparedGeom,
341 OGRGeometryH hOtherGeom);
342
343 /* -------------------------------------------------------------------- */
344 /* Feature related (ogr_feature.h) */
345 /* -------------------------------------------------------------------- */
346
347 #ifndef DEFINE_OGRFeatureH
348
349 #define DEFINE_OGRFeatureH
350
351 #ifdef DEBUG
352 typedef struct OGRFieldDefnHS *OGRFieldDefnH;
353 typedef struct OGRFeatureDefnHS *OGRFeatureDefnH;
354 typedef struct OGRFeatureHS *OGRFeatureH;
355 typedef struct OGRStyleTableHS *OGRStyleTableH;
356 #else
357
358 typedef void *OGRFieldDefnH;
360 typedef void *OGRFeatureDefnH;
362 typedef void *OGRFeatureH;
364 typedef void *OGRStyleTableH;
365 #endif
366
367 typedef struct OGRGeomFieldDefnHS *OGRGeomFieldDefnH;
368
370 typedef struct OGRFieldDomainHS *OGRFieldDomainH;
371 #endif /* DEFINE_OGRFeatureH */
372
373 /* OGRFieldDefn */
374
375 OGRFieldDefnH CPL_DLL OGR_Fld_Create(const char *,
376 OGRFieldType) CPL_WARN_UNUSED_RESULT;
377 void CPL_DLL OGR_Fld_Destroy(OGRFieldDefnH);
378
379 void CPL_DLL OGR_Fld_SetName(OGRFieldDefnH, const char *);
380 const char CPL_DLL *OGR_Fld_GetNameRef(OGRFieldDefnH);
381 void CPL_DLL OGR_Fld_SetAlternativeName(OGRFieldDefnH, const char *);
382 const char CPL_DLL *OGR_Fld_GetAlternativeNameRef(OGRFieldDefnH);
383 OGRFieldType CPL_DLL OGR_Fld_GetType(OGRFieldDefnH);
384 void CPL_DLL OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType);
385 OGRFieldSubType CPL_DLL OGR_Fld_GetSubType(OGRFieldDefnH);
386 void CPL_DLL OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType);
387 OGRJustification CPL_DLL OGR_Fld_GetJustify(OGRFieldDefnH);
388 void CPL_DLL OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification);
389 int CPL_DLL OGR_Fld_GetWidth(OGRFieldDefnH);
390 void CPL_DLL OGR_Fld_SetWidth(OGRFieldDefnH, int);
391 int CPL_DLL OGR_Fld_GetPrecision(OGRFieldDefnH);
392 void CPL_DLL OGR_Fld_SetPrecision(OGRFieldDefnH, int);
393 int CPL_DLL OGR_Fld_GetTZFlag(OGRFieldDefnH);
394 void CPL_DLL OGR_Fld_SetTZFlag(OGRFieldDefnH, int);
395 void CPL_DLL OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int,
396 OGRJustification);
397 int CPL_DLL OGR_Fld_IsIgnored(OGRFieldDefnH hDefn);
398 void CPL_DLL OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int);
399 int CPL_DLL OGR_Fld_IsNullable(OGRFieldDefnH hDefn);
400 void CPL_DLL OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int);
401 int CPL_DLL OGR_Fld_IsUnique(OGRFieldDefnH hDefn);
402 void CPL_DLL OGR_Fld_SetUnique(OGRFieldDefnH hDefn, int);
403 const char CPL_DLL *OGR_Fld_GetDefault(OGRFieldDefnH hDefn);
404 void CPL_DLL OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *);
405 int CPL_DLL OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn);
406 const char CPL_DLL *OGR_Fld_GetDomainName(OGRFieldDefnH hDefn);
407 void CPL_DLL OGR_Fld_SetDomainName(OGRFieldDefnH hDefn, const char *);
408 const char CPL_DLL *OGR_Fld_GetComment(OGRFieldDefnH hDefn);
409 void CPL_DLL OGR_Fld_SetComment(OGRFieldDefnH hDefn, const char *);
410
411 const char CPL_DLL *OGR_GetFieldTypeName(OGRFieldType);
412 const char CPL_DLL *OGR_GetFieldSubTypeName(OGRFieldSubType);
413 int CPL_DLL OGR_AreTypeSubTypeCompatible(OGRFieldType eType,
414 OGRFieldSubType eSubType);
415
416 /* OGRGeomFieldDefnH */
417
418 OGRGeomFieldDefnH CPL_DLL OGR_GFld_Create(const char *, OGRwkbGeometryType)
419 CPL_WARN_UNUSED_RESULT;
420 void CPL_DLL OGR_GFld_Destroy(OGRGeomFieldDefnH);
421
422 void CPL_DLL OGR_GFld_SetName(OGRGeomFieldDefnH, const char *);
423 const char CPL_DLL *OGR_GFld_GetNameRef(OGRGeomFieldDefnH);
424
425 OGRwkbGeometryType CPL_DLL OGR_GFld_GetType(OGRGeomFieldDefnH);
426 void CPL_DLL OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType);
427
428 OGRSpatialReferenceH CPL_DLL OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH);
429 void CPL_DLL OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH,
430 OGRSpatialReferenceH hSRS);
431
432 int CPL_DLL OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn);
433 void CPL_DLL OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int);
434
435 int CPL_DLL OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn);
436 void CPL_DLL OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int);
437
438 /* OGRFeatureDefn */
439
440 OGRFeatureDefnH CPL_DLL OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT;
441 void CPL_DLL OGR_FD_Destroy(OGRFeatureDefnH);
442 void CPL_DLL OGR_FD_Release(OGRFeatureDefnH);
443 const char CPL_DLL *OGR_FD_GetName(OGRFeatureDefnH);
444 int CPL_DLL OGR_FD_GetFieldCount(OGRFeatureDefnH);
445 OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn(OGRFeatureDefnH, int);
446 int CPL_DLL OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *);
447 void CPL_DLL OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH);
448 OGRErr CPL_DLL OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField);
449 OGRErr CPL_DLL OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn,
450 const int *panMap);
451 OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType(OGRFeatureDefnH);
452 void CPL_DLL OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType);
453 int CPL_DLL OGR_FD_IsGeometryIgnored(OGRFeatureDefnH);
454 void CPL_DLL OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int);
455 int CPL_DLL OGR_FD_IsStyleIgnored(OGRFeatureDefnH);
456 void CPL_DLL OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int);
457 int CPL_DLL OGR_FD_Reference(OGRFeatureDefnH);
458 int CPL_DLL OGR_FD_Dereference(OGRFeatureDefnH);
459 int CPL_DLL OGR_FD_GetReferenceCount(OGRFeatureDefnH);
460
461 int CPL_DLL OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn);
462 OGRGeomFieldDefnH CPL_DLL OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn,
463 int i);
464 int CPL_DLL OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn,
465 const char *pszName);
466
467 void CPL_DLL OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn,
468 OGRGeomFieldDefnH hGFldDefn);
469 OGRErr CPL_DLL OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn,
470 int iGeomField);
471 int CPL_DLL OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn);
472 /* OGRFeature */
473
474 OGRFeatureH CPL_DLL OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT;
475 void CPL_DLL OGR_F_Destroy(OGRFeatureH);
476 OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef(OGRFeatureH);
477
478 OGRErr CPL_DLL OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH);
479 OGRErr CPL_DLL OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH);
480 OGRGeometryH CPL_DLL OGR_F_GetGeometryRef(OGRFeatureH);
481 OGRGeometryH CPL_DLL OGR_F_StealGeometry(OGRFeatureH) CPL_WARN_UNUSED_RESULT;
482 OGRGeometryH CPL_DLL OGR_F_StealGeometryEx(OGRFeatureH, int iGeomField)
483 CPL_WARN_UNUSED_RESULT;
484 OGRFeatureH CPL_DLL OGR_F_Clone(OGRFeatureH) CPL_WARN_UNUSED_RESULT;
485 int CPL_DLL OGR_F_Equal(OGRFeatureH, OGRFeatureH);
486
487 int CPL_DLL OGR_F_GetFieldCount(OGRFeatureH);
488 OGRFieldDefnH CPL_DLL OGR_F_GetFieldDefnRef(OGRFeatureH, int);
489 int CPL_DLL OGR_F_GetFieldIndex(OGRFeatureH, const char *);
490
491 int CPL_DLL OGR_F_IsFieldSet(OGRFeatureH, int);
492 void CPL_DLL OGR_F_UnsetField(OGRFeatureH, int);
493
494 int CPL_DLL OGR_F_IsFieldNull(OGRFeatureH, int);
495 int CPL_DLL OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int);
496 void CPL_DLL OGR_F_SetFieldNull(OGRFeatureH, int);
497
498 OGRField CPL_DLL *OGR_F_GetRawFieldRef(OGRFeatureH, int);
499
500 int CPL_DLL OGR_RawField_IsUnset(const OGRField *);
501 int CPL_DLL OGR_RawField_IsNull(const OGRField *);
502 void CPL_DLL OGR_RawField_SetUnset(OGRField *);
503 void CPL_DLL OGR_RawField_SetNull(OGRField *);
504
505 int CPL_DLL OGR_F_GetFieldAsInteger(OGRFeatureH, int);
506 GIntBig CPL_DLL OGR_F_GetFieldAsInteger64(OGRFeatureH, int);
507 double CPL_DLL OGR_F_GetFieldAsDouble(OGRFeatureH, int);
508 const char CPL_DLL *OGR_F_GetFieldAsString(OGRFeatureH, int);
509 const char CPL_DLL *OGR_F_GetFieldAsISO8601DateTime(OGRFeatureH, int,
510 CSLConstList);
511 const int CPL_DLL *OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *);
512 const GIntBig CPL_DLL *OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *);
513 const double CPL_DLL *OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *);
514 char CPL_DLL **OGR_F_GetFieldAsStringList(OGRFeatureH, int);
515 GByte CPL_DLL *OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *);
516 int CPL_DLL OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *,
517 int *, int *, int *, int *);
518 int CPL_DLL OGR_F_GetFieldAsDateTimeEx(OGRFeatureH hFeat, int iField,
519 int *pnYear, int *pnMonth, int *pnDay,
520 int *pnHour, int *pnMinute,
521 float *pfSecond, int *pnTZFlag);
522
523 void CPL_DLL OGR_F_SetFieldInteger(OGRFeatureH, int, int);
524 void CPL_DLL OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig);
525 void CPL_DLL OGR_F_SetFieldDouble(OGRFeatureH, int, double);
526 void CPL_DLL OGR_F_SetFieldString(OGRFeatureH, int, const char *);
527 void CPL_DLL OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *);
528 void CPL_DLL OGR_F_SetFieldInteger64List(OGRFeatureH, int, int,
529 const GIntBig *);
530 void CPL_DLL OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *);
531 void CPL_DLL OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList);
532 void CPL_DLL OGR_F_SetFieldRaw(OGRFeatureH, int, const OGRField *);
533 void CPL_DLL OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *);
534 void CPL_DLL OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int,
535 int, int);
536 void CPL_DLL OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int,
537 float, int);
538
539 int CPL_DLL OGR_F_GetGeomFieldCount(OGRFeatureH hFeat);
540 OGRGeomFieldDefnH CPL_DLL OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat,
541 int iField);
542 int CPL_DLL OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName);
543
544 OGRGeometryH CPL_DLL OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField);
545 OGRErr CPL_DLL OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField,
546 OGRGeometryH hGeom);
547 OGRErr CPL_DLL OGR_F_SetGeomField(OGRFeatureH hFeat, int iField,
548 OGRGeometryH hGeom);
549
550 GIntBig CPL_DLL OGR_F_GetFID(OGRFeatureH);
551 OGRErr CPL_DLL OGR_F_SetFID(OGRFeatureH, GIntBig);
552 void CPL_DLL OGR_F_DumpReadable(OGRFeatureH, FILE *);
553 char CPL_DLL *OGR_F_DumpReadableAsString(OGRFeatureH,
554 CSLConstList) CPL_WARN_UNUSED_RESULT;
555 OGRErr CPL_DLL OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int);
556 OGRErr CPL_DLL OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *);
557
558 const char CPL_DLL *OGR_F_GetStyleString(OGRFeatureH);
559 void CPL_DLL OGR_F_SetStyleString(OGRFeatureH, const char *);
560 void CPL_DLL OGR_F_SetStyleStringDirectly(OGRFeatureH, char *);
562 OGRStyleTableH CPL_DLL OGR_F_GetStyleTable(OGRFeatureH);
564 void CPL_DLL OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH);
566 void CPL_DLL OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH);
567
568 const char CPL_DLL *OGR_F_GetNativeData(OGRFeatureH);
569 void CPL_DLL OGR_F_SetNativeData(OGRFeatureH, const char *);
570 const char CPL_DLL *OGR_F_GetNativeMediaType(OGRFeatureH);
571 void CPL_DLL OGR_F_SetNativeMediaType(OGRFeatureH, const char *);
572
573 void CPL_DLL OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly,
574 char **papszOptions);
575 int CPL_DLL OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError);
576
577 /* OGRFieldDomain */
578
579 void CPL_DLL OGR_FldDomain_Destroy(OGRFieldDomainH);
580 const char CPL_DLL *OGR_FldDomain_GetName(OGRFieldDomainH);
581 const char CPL_DLL *OGR_FldDomain_GetDescription(OGRFieldDomainH);
582 OGRFieldDomainType CPL_DLL OGR_FldDomain_GetDomainType(OGRFieldDomainH);
583 OGRFieldType CPL_DLL OGR_FldDomain_GetFieldType(OGRFieldDomainH);
584 OGRFieldSubType CPL_DLL OGR_FldDomain_GetFieldSubType(OGRFieldDomainH);
585 OGRFieldDomainSplitPolicy CPL_DLL OGR_FldDomain_GetSplitPolicy(OGRFieldDomainH);
586 void CPL_DLL OGR_FldDomain_SetSplitPolicy(OGRFieldDomainH,
587 OGRFieldDomainSplitPolicy);
588 OGRFieldDomainMergePolicy CPL_DLL OGR_FldDomain_GetMergePolicy(OGRFieldDomainH);
589 void CPL_DLL OGR_FldDomain_SetMergePolicy(OGRFieldDomainH,
590 OGRFieldDomainMergePolicy);
591
592 OGRFieldDomainH CPL_DLL OGR_CodedFldDomain_Create(
593 const char *pszName, const char *pszDescription, OGRFieldType eFieldType,
594 OGRFieldSubType eFieldSubType, const OGRCodedValue *enumeration);
595 const OGRCodedValue CPL_DLL *OGR_CodedFldDomain_GetEnumeration(OGRFieldDomainH);
596
597 OGRFieldDomainH CPL_DLL OGR_RangeFldDomain_Create(
598 const char *pszName, const char *pszDescription, OGRFieldType eFieldType,
599 OGRFieldSubType eFieldSubType, const OGRField *psMin, bool bMinIsInclusive,
600 const OGRField *psMax, bool bMaxIsInclusive);
601 const OGRField CPL_DLL *OGR_RangeFldDomain_GetMin(OGRFieldDomainH,
602 bool *pbIsInclusiveOut);
603 const OGRField CPL_DLL *OGR_RangeFldDomain_GetMax(OGRFieldDomainH,
604 bool *pbIsInclusiveOut);
605
606 OGRFieldDomainH CPL_DLL OGR_GlobFldDomain_Create(const char *pszName,
607 const char *pszDescription,
608 OGRFieldType eFieldType,
609 OGRFieldSubType eFieldSubType,
610 const char *pszGlob);
611 const char CPL_DLL *OGR_GlobFldDomain_GetGlob(OGRFieldDomainH);
612
613 /* -------------------------------------------------------------------- */
614 /* ogrsf_frmts.h */
615 /* -------------------------------------------------------------------- */
616
617 #ifdef DEBUG
618 typedef struct OGRLayerHS *OGRLayerH;
619 typedef struct OGRDataSourceHS *OGRDataSourceH;
620 typedef struct OGRDriverHS *OGRSFDriverH;
621 #else
622
623 typedef void *OGRLayerH;
625 typedef void *OGRDataSourceH;
627 typedef void *OGRSFDriverH;
628 #endif
629
630 /* OGRLayer */
631
632 const char CPL_DLL *OGR_L_GetName(OGRLayerH);
633 OGRwkbGeometryType CPL_DLL OGR_L_GetGeomType(OGRLayerH);
634
636 typedef struct
637 {
639 OGRwkbGeometryType eGeomType;
641 int64_t nCount;
642 } OGRGeometryTypeCounter;
643
646 #define OGR_GGT_COUNT_NOT_NEEDED 0x1
647
649 #define OGR_GGT_STOP_IF_MIXED 0x2
650
652 #define OGR_GGT_GEOMCOLLECTIONZ_TINZ 0x4
653 OGRGeometryTypeCounter CPL_DLL *
654 OGR_L_GetGeometryTypes(OGRLayerH hLayer, int iGeomField, int nFlags,
655 int *pnEntryCount, GDALProgressFunc pfnProgress,
656 void *pProgressData);
657
658 OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter(OGRLayerH);
659 void CPL_DLL OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH);
660 void CPL_DLL OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double,
661 double);
662 void CPL_DLL OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField,
663 OGRGeometryH hGeom);
664 void CPL_DLL OGR_L_SetSpatialFilterRectEx(OGRLayerH, int iGeomField,
665 double dfMinX, double dfMinY,
666 double dfMaxX, double dfMaxY);
667 OGRErr CPL_DLL OGR_L_SetAttributeFilter(OGRLayerH, const char *);
668 void CPL_DLL OGR_L_ResetReading(OGRLayerH);
669 OGRFeatureH CPL_DLL OGR_L_GetNextFeature(OGRLayerH) CPL_WARN_UNUSED_RESULT;
670
697 #define OGR_FOR_EACH_FEATURE_BEGIN(hFeat, hLayer) \
698 { \
699 OGRFeatureH hFeat = CPL_NULLPTR; \
700 OGR_L_ResetReading(hLayer); \
701 while (true) \
702 { \
703 if (hFeat) \
704 OGR_F_Destroy(hFeat); \
705 hFeat = OGR_L_GetNextFeature(hLayer); \
706 if (!hFeat) \
707 break;
708
710 #define OGR_FOR_EACH_FEATURE_END(hFeat) \
711 } \
712 OGR_F_Destroy(hFeat); \
713 }
714
717 struct ArrowArrayStream;
718
719 bool CPL_DLL OGR_L_GetArrowStream(OGRLayerH hLayer,
720 struct ArrowArrayStream *out_stream,
721 char **papszOptions);
722
725 struct ArrowSchema;
726
727 bool CPL_DLL OGR_L_IsArrowSchemaSupported(OGRLayerH hLayer,
728 const struct ArrowSchema *schema,
729 char **papszOptions,
730 char **ppszErrorMsg);
731 bool CPL_DLL OGR_L_CreateFieldFromArrowSchema(OGRLayerH hLayer,
732 const struct ArrowSchema *schema,
733 char **papszOptions);
734
737 struct ArrowArray;
738
739 bool CPL_DLL OGR_L_WriteArrowBatch(OGRLayerH hLayer,
740 const struct ArrowSchema *schema,
741 struct ArrowArray *array,
742 char **papszOptions);
743
744 OGRErr CPL_DLL OGR_L_SetNextByIndex(OGRLayerH, GIntBig);
745 OGRFeatureH CPL_DLL OGR_L_GetFeature(OGRLayerH, GIntBig) CPL_WARN_UNUSED_RESULT;
746 OGRErr CPL_DLL OGR_L_SetFeature(OGRLayerH, OGRFeatureH) CPL_WARN_UNUSED_RESULT;
747 OGRErr CPL_DLL OGR_L_CreateFeature(OGRLayerH,
748 OGRFeatureH) CPL_WARN_UNUSED_RESULT;
749 OGRErr CPL_DLL OGR_L_DeleteFeature(OGRLayerH, GIntBig) CPL_WARN_UNUSED_RESULT;
750 OGRErr CPL_DLL OGR_L_UpsertFeature(OGRLayerH,
751 OGRFeatureH) CPL_WARN_UNUSED_RESULT;
752 OGRErr CPL_DLL
753 OGR_L_UpdateFeature(OGRLayerH, OGRFeatureH, int nUpdatedFieldsCount,
754 const int *panUpdatedFieldsIdx, int nUpdatedGeomFieldsCount,
755 const int *panUpdatedGeomFieldsIdx,
756 bool bUpdateStyleString) CPL_WARN_UNUSED_RESULT;
757 OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn(OGRLayerH);
758 OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef(OGRLayerH);
759 OGRSpatialReferenceH CPL_DLL *
760 OGR_L_GetSupportedSRSList(OGRLayerH hLayer, int iGeomField, int *pnCount);
761 OGRErr CPL_DLL OGR_L_SetActiveSRS(OGRLayerH hLayer, int iGeomField,
762 OGRSpatialReferenceH hSRS);
763 int CPL_DLL OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch);
764 GIntBig CPL_DLL OGR_L_GetFeatureCount(OGRLayerH, int);
765 OGRErr CPL_DLL OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int);
766 OGRErr CPL_DLL OGR_L_GetExtentEx(OGRLayerH, int iGeomField,
767 OGREnvelope *psExtent, int bForce);
768 int CPL_DLL OGR_L_TestCapability(OGRLayerH, const char *);
769 OGRErr CPL_DLL OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int);
770 OGRErr CPL_DLL OGR_L_CreateGeomField(OGRLayerH hLayer,
771 OGRGeomFieldDefnH hFieldDefn, int bForce);
772 OGRErr CPL_DLL OGR_L_DeleteField(OGRLayerH, int iField);
773 OGRErr CPL_DLL OGR_L_ReorderFields(OGRLayerH, int *panMap);
774 OGRErr CPL_DLL OGR_L_ReorderField(OGRLayerH, int iOldFieldPos,
775 int iNewFieldPos);
776 OGRErr CPL_DLL OGR_L_AlterFieldDefn(OGRLayerH, int iField,
777 OGRFieldDefnH hNewFieldDefn, int nFlags);
778 OGRErr CPL_DLL OGR_L_AlterGeomFieldDefn(OGRLayerH, int iField,
779 OGRGeomFieldDefnH hNewGeomFieldDefn,
780 int nFlags);
781 OGRErr CPL_DLL OGR_L_StartTransaction(OGRLayerH) CPL_WARN_UNUSED_RESULT;
782 OGRErr CPL_DLL OGR_L_CommitTransaction(OGRLayerH) CPL_WARN_UNUSED_RESULT;
783 OGRErr CPL_DLL OGR_L_RollbackTransaction(OGRLayerH);
784 OGRErr CPL_DLL OGR_L_Rename(OGRLayerH hLayer, const char *pszNewName);
785
787 int CPL_DLL OGR_L_Reference(OGRLayerH);
788 int CPL_DLL OGR_L_Dereference(OGRLayerH);
789 int CPL_DLL OGR_L_GetRefCount(OGRLayerH);
791 OGRErr CPL_DLL OGR_L_SyncToDisk(OGRLayerH);
793 GIntBig CPL_DLL OGR_L_GetFeaturesRead(OGRLayerH);
795 const char CPL_DLL *OGR_L_GetFIDColumn(OGRLayerH);
796 const char CPL_DLL *OGR_L_GetGeometryColumn(OGRLayerH);
798 OGRStyleTableH CPL_DLL OGR_L_GetStyleTable(OGRLayerH);
800 void CPL_DLL OGR_L_SetStyleTableDirectly(OGRLayerH, OGRStyleTableH);
802 void CPL_DLL OGR_L_SetStyleTable(OGRLayerH, OGRStyleTableH);
803 OGRErr CPL_DLL OGR_L_SetIgnoredFields(OGRLayerH, const char **);
804 OGRErr CPL_DLL OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **,
805 GDALProgressFunc, void *);
806 OGRErr CPL_DLL OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **,
807 GDALProgressFunc, void *);
808 OGRErr CPL_DLL OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **,
809 GDALProgressFunc, void *);
810 OGRErr CPL_DLL OGR_L_Identity(OGRLayerH, OGRLayerH, OGRLayerH, char **,
811 GDALProgressFunc, void *);
812 OGRErr CPL_DLL OGR_L_Update(OGRLayerH, OGRLayerH, OGRLayerH, char **,
813 GDALProgressFunc, void *);
814 OGRErr CPL_DLL OGR_L_Clip(OGRLayerH, OGRLayerH, OGRLayerH, char **,
815 GDALProgressFunc, void *);
816 OGRErr CPL_DLL OGR_L_Erase(OGRLayerH, OGRLayerH, OGRLayerH, char **,
817 GDALProgressFunc, void *);
818
819 /* OGRDataSource */
820
821 void CPL_DLL OGR_DS_Destroy(OGRDataSourceH);
822 const char CPL_DLL *OGR_DS_GetName(OGRDataSourceH);
823 int CPL_DLL OGR_DS_GetLayerCount(OGRDataSourceH);
824 OGRLayerH CPL_DLL OGR_DS_GetLayer(OGRDataSourceH, int);
825 OGRLayerH CPL_DLL OGR_DS_GetLayerByName(OGRDataSourceH, const char *);
826 OGRErr CPL_DLL OGR_DS_DeleteLayer(OGRDataSourceH, int);
827 OGRSFDriverH CPL_DLL OGR_DS_GetDriver(OGRDataSourceH);
828 OGRLayerH CPL_DLL OGR_DS_CreateLayer(OGRDataSourceH, const char *,
829 OGRSpatialReferenceH, OGRwkbGeometryType,
830 char **);
831 OGRLayerH CPL_DLL OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *,
832 char **);
833 int CPL_DLL OGR_DS_TestCapability(OGRDataSourceH, const char *);
834 OGRLayerH CPL_DLL OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH,
835 const char *);
836 void CPL_DLL OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH);
838 int CPL_DLL OGR_DS_Reference(OGRDataSourceH);
839 int CPL_DLL OGR_DS_Dereference(OGRDataSourceH);
840 int CPL_DLL OGR_DS_GetRefCount(OGRDataSourceH);
841 int CPL_DLL OGR_DS_GetSummaryRefCount(OGRDataSourceH);
844 OGRErr CPL_DLL OGR_DS_SyncToDisk(OGRDataSourceH);
846 OGRStyleTableH CPL_DLL OGR_DS_GetStyleTable(OGRDataSourceH);
848 void CPL_DLL OGR_DS_SetStyleTableDirectly(OGRDataSourceH, OGRStyleTableH);
850 void CPL_DLL OGR_DS_SetStyleTable(OGRDataSourceH, OGRStyleTableH);
851
852 /* OGRSFDriver */
853
854 const char CPL_DLL *OGR_Dr_GetName(OGRSFDriverH);
855 OGRDataSourceH CPL_DLL OGR_Dr_Open(OGRSFDriverH, const char *,
856 int) CPL_WARN_UNUSED_RESULT;
857 int CPL_DLL OGR_Dr_TestCapability(OGRSFDriverH, const char *);
858 OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource(OGRSFDriverH, const char *,
859 char **) CPL_WARN_UNUSED_RESULT;
860 OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource(OGRSFDriverH, OGRDataSourceH,
861 const char *,
862 char **) CPL_WARN_UNUSED_RESULT;
863 OGRErr CPL_DLL OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *);
864
865 /* OGRSFDriverRegistrar */
866
867 OGRDataSourceH CPL_DLL OGROpen(const char *, int,
868 OGRSFDriverH *) CPL_WARN_UNUSED_RESULT;
869 OGRDataSourceH CPL_DLL OGROpenShared(const char *, int,
870 OGRSFDriverH *) CPL_WARN_UNUSED_RESULT;
871 OGRErr CPL_DLL OGRReleaseDataSource(OGRDataSourceH);
873 void CPL_DLL OGRRegisterDriver(OGRSFDriverH);
874 void CPL_DLL OGRDeregisterDriver(OGRSFDriverH);
876 int CPL_DLL OGRGetDriverCount(void);
877 OGRSFDriverH CPL_DLL OGRGetDriver(int);
878 OGRSFDriverH CPL_DLL OGRGetDriverByName(const char *);
880 int CPL_DLL OGRGetOpenDSCount(void);
881 OGRDataSourceH CPL_DLL OGRGetOpenDS(int iDS);
884 void CPL_DLL OGRRegisterAll(void);
885
888 void CPL_DLL OGRCleanupAll(void);
889
890 /* -------------------------------------------------------------------- */
891 /* ogrsf_featurestyle.h */
892 /* -------------------------------------------------------------------- */
893
894 #ifdef DEBUG
895 typedef struct OGRStyleMgrHS *OGRStyleMgrH;
896 typedef struct OGRStyleToolHS *OGRStyleToolH;
897 #else
898
899 typedef void *OGRStyleMgrH;
901 typedef void *OGRStyleToolH;
902 #endif
903
904 /* OGRStyleMgr */
905
906 OGRStyleMgrH CPL_DLL OGR_SM_Create(OGRStyleTableH hStyleTable)
907 CPL_WARN_UNUSED_RESULT;
908 void CPL_DLL OGR_SM_Destroy(OGRStyleMgrH hSM);
909
910 const char CPL_DLL *OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat);
911 int CPL_DLL OGR_SM_InitStyleString(OGRStyleMgrH hSM,
912 const char *pszStyleString);
913 int CPL_DLL OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString);
914 OGRStyleToolH CPL_DLL OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId,
915 const char *pszStyleString);
916 int CPL_DLL OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST);
917 int CPL_DLL OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName,
918 const char *pszStyleString);
919
920 /* OGRStyleTool */
921
922 OGRStyleToolH CPL_DLL OGR_ST_Create(OGRSTClassId eClassId)
923 CPL_WARN_UNUSED_RESULT;
924 void CPL_DLL OGR_ST_Destroy(OGRStyleToolH hST);
925
926 OGRSTClassId CPL_DLL OGR_ST_GetType(OGRStyleToolH hST);
927
928 OGRSTUnitId CPL_DLL OGR_ST_GetUnit(OGRStyleToolH hST);
929 void CPL_DLL OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit,
930 double dfGroundPaperScale);
931
932 const char CPL_DLL *OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam,
933 int *bValueIsNull);
934 int CPL_DLL OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam,
935 int *bValueIsNull);
936 double CPL_DLL OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam,
937 int *bValueIsNull);
938 void CPL_DLL OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam,
939 const char *pszValue);
940 void CPL_DLL OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue);
941 void CPL_DLL OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue);
942 const char CPL_DLL *OGR_ST_GetStyleString(OGRStyleToolH hST);
943
944 int CPL_DLL OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor,
945 int *pnRed, int *pnGreen, int *pnBlue,
946 int *pnAlpha);
947
948 /* OGRStyleTable */
949
950 OGRStyleTableH CPL_DLL OGR_STBL_Create(void) CPL_WARN_UNUSED_RESULT;
951 void CPL_DLL OGR_STBL_Destroy(OGRStyleTableH hSTBL);
952 int CPL_DLL OGR_STBL_AddStyle(OGRStyleTableH hStyleTable, const char *pszName,
953 const char *pszStyleString);
954 int CPL_DLL OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable,
955 const char *pszFilename);
956 int CPL_DLL OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable,
957 const char *pszFilename);
958 const char CPL_DLL *OGR_STBL_Find(OGRStyleTableH hStyleTable,
959 const char *pszName);
960 void CPL_DLL OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable);
961 const char CPL_DLL *OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable);
962 const char CPL_DLL *OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable);
963
964 CPL_C_END
965
966 #endif /* ndef OGR_API_H_INCLUDED */
OGR_F_IsFieldSet
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1549
OGRHasPreparedGeometrySupport
int OGRHasPreparedGeometrySupport(void)
Returns if GEOS has prepared geometry support.
Definition: ogrgeometry.cpp:6309
OGR_F_GetGeomFieldRef
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch a handle to feature geometry.
Definition: ogrfeature.cpp:886
OGR_RangeFldDomain_Create
OGRFieldDomainH OGR_RangeFldDomain_Create(const char *pszName, const char *pszDescription, OGRFieldType eFieldType, OGRFieldSubType eFieldSubType, const OGRField *psMin, bool bMinIsInclusive, const OGRField *psMax, bool bMaxIsInclusive)
Creates a new range field domain.
Definition: ogrfielddefn.cpp:2060
OGR_GFld_SetNullable
void OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int)
Set whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:640
OGR_FD_Release
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:157
OGR_G_CreateFromGML
OGRGeometryH OGR_G_CreateFromGML(const char *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:3780
OGR_DS_Destroy
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition: ogrdatasource.cpp:58
OGR_F_SetFieldString
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:4417
OGR_Fld_GetAlternativeNameRef
const char * OGR_Fld_GetAlternativeNameRef(OGRFieldDefnH)
Fetch the alternative name (or "alias") for this field.
Definition: ogrfielddefn.cpp:333
OGRGeomTransformerH
struct OGRGeomTransformer * OGRGeomTransformerH
Opaque type for a geometry transformer.
Definition: ogr_api.h:181
OGRPreparedGeometryH
struct _OGRPreparedGeometry * OGRPreparedGeometryH
Opaque type for a prepared geometry.
Definition: ogr_api.h:333
OGR_Fld_GetType
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:371
OGRFieldDomainMergePolicy
OGRFieldDomainMergePolicy
Merge policy for field domains.
Definition: ogr_core.h:1272
OGR_FD_SetStyleIgnored
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1412
OGR_Fld_GetComment
const char * OGR_Fld_GetComment(OGRFieldDefnH hDefn)
Return the (optional) comment for this field.
Definition: ogrfielddefn.cpp:1638
OGR_G_CoordinateDimension
int OGR_G_CoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:996
OGRFieldDomainType
OGRFieldDomainType
Type of field domain.
Definition: ogr_core.h:1237
OGR_G_Area
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:1653
OGR_L_GetGeomType
OGRwkbGeometryType OGR_L_GetGeomType(OGRLayerH)
Return the layer geometry type.
Definition: ogrlayer.cpp:2036
GByte
unsigned char GByte
Unsigned byte type.
Definition: cpl_port.h:196
OGR_F_DumpReadable
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5681
OGR_G_IsMeasured
int OGR_G_IsMeasured(OGRGeometryH)
See whether this geometry is measured.
Definition: ogrgeometry.cpp:1038
OGR_DS_GetName
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition: ogrdatasource.cpp:300
OGR_DS_GetLayerCount
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition: ogrdatasource.cpp:262
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:1166
OGR_F_SetGeomField
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:1054
OGR_G_FlattenTo2D
void OGR_G_FlattenTo2D(OGRGeometryH)
Convert geometry to strictly 2D.
Definition: ogrgeometry.cpp:2936
OGR_GFld_SetType
void OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType)
Set the geometry type of this field.
Definition: ogrgeomfielddefn.cpp:336
OGR_L_TestCapability
int OGR_L_TestCapability(OGRLayerH, const char *)
Test if this layer supported the named capability.
Definition: ogrlayer.cpp:1255
OGR_G_WkbSizeEx
size_t OGR_G_WkbSizeEx(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:1361
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:910
OGR_RawField_IsNull
int OGR_RawField_IsNull(const OGRField *)
Returns whether a raw field is null.
Definition: ogrfeature.cpp:7380
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:325
OGR_Fld_SetWidth
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:1032
OGR_Fld_GetDomainName
const char * OGR_Fld_GetDomainName(OGRFieldDefnH hDefn)
Return the name of the field domain for this field.
Definition: ogrfielddefn.cpp:1561
OGR_G_GetZ
double OGR_G_GetZ(OGRGeometryH, int)
Fetch the z coordinate of a point from a Point or a LineString/LinearRing geometry.
Definition: ogr_api.cpp:285
OGR_FldDomain_GetDescription
const char * OGR_FldDomain_GetDescription(OGRFieldDomainH)
Get the description of the field domain.
Definition: ogrfielddefn.cpp:2152
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:1124
OGR_G_RemoveLowerDimensionSubGeoms
OGRGeometryH OGR_G_RemoveLowerDimensionSubGeoms(const OGRGeometryH hGeom)
Remove sub-geometries from a geometry collection that do not have the maximum topological dimensional...
Definition: ogrgeometryfactory.cpp:1454
OGROpenShared
OGRDataSourceH OGROpenShared(const char *, int, OGRSFDriverH *)
Open a file / data source with one of the registered drivers if not already opened,...
OGR_CodedFldDomain_GetEnumeration
const OGRCodedValue * OGR_CodedFldDomain_GetEnumeration(OGRFieldDomainH)
Get the enumeration as (code, value) pairs.
Definition: ogrfielddefn.cpp:2299
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:3449
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:1064
OGR_G_Is3D
int OGR_G_Is3D(OGRGeometryH)
See whether this geometry has Z coordinates.
Definition: ogrgeometry.cpp:1017
OGR_F_SetNativeMediaType
void OGR_F_SetNativeMediaType(OGRFeatureH, const char *)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:7338
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:1624
OGR_F_GetFieldAsInteger64
GIntBig OGR_F_GetFieldAsInteger64(OGRFeatureH, int)
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:2209
OGR_F_DumpReadableAsString
char * OGR_F_DumpReadableAsString(OGRFeatureH, CSLConstList)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5714
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:1503
OGR_DS_GetDriver
OGRSFDriverH OGR_DS_GetDriver(OGRDataSourceH)
Returns the driver that the dataset was opened with.
Definition: ogrdatasource.cpp:328
OGR_L_ReorderField
OGRErr OGR_L_ReorderField(OGRLayerH, int iOldFieldPos, int iNewFieldPos)
Reorder an existing field on a layer.
Definition: ogrlayer.cpp:969
OGR_SM_AddPart
int OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:563
OGR_L_GetLayerDefn
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH)
Fetch the schema information for this layer.
Definition: ogrlayer.cpp:1177
OGR_F_SetFieldNull
void OGR_F_SetFieldNull(OGRFeatureH, int)
Clear a field, marking it as null.
Definition: ogrfeature.cpp:1829
OGR_L_SyncToDisk
OGRErr OGR_L_SyncToDisk(OGRLayerH)
Flush pending changes to disk.
Definition: ogrlayer.cpp:1798
OGR_Fld_SetTZFlag
void OGR_Fld_SetTZFlag(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:1190
OGR_F_Equal
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:6068
OGR_FldDomain_GetDomainType
OGRFieldDomainType OGR_FldDomain_GetDomainType(OGRFieldDomainH)
Get the type of the field domain.
Definition: ogrfielddefn.cpp:2169
OGR_L_SetSpatialFilterRect
void OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double, double)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1405
OGRRegisterAll
void OGRRegisterAll(void)
Register all drivers.
Definition: ogrregisterall.cpp:36
OGR_STBL_ResetStyleStringReading
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1231
OGRSTClassId
enum ogr_style_tool_class_id OGRSTClassId
OGRStyleTool derived class types (returned by GetType()).
OGR_G_Value
OGRGeometryH OGR_G_Value(OGRGeometryH, double dfDistance)
Fetch point at given distance along curve.
Definition: ogr_api.cpp:1859
cpl_minixml.h
OGR_F_GetGeometryRef
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch a handle to feature geometry.
Definition: ogrfeature.cpp:759
OGR_L_GetExtent
OGRErr OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int)
Fetch the extent of this layer.
Definition: ogrlayer.cpp:308
OGR_ST_GetUnit
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1654
OGR_FD_GetGeomFieldCount
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:611
OGR_Dr_TestCapability
int OGR_Dr_TestCapability(OGRSFDriverH, const char *)
Test if capability is available.
OGR_G_Equals
int OGR_G_Equals(OGRGeometryH, OGRGeometryH)
Returns TRUE if two geometries are equivalent.
Definition: ogrgeometry.cpp:1253
OGR_G_Simplify
OGRGeometryH OGR_G_Simplify(OGRGeometryH hThis, double tolerance)
Compute a simplified geometry.
Definition: ogrgeometry.cpp:5937
OGR_Fld_SetIgnored
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1313
OGR_G_AssignSpatialReference
void OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:507
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:271
OGR_G_CreateFromGMLTree
OGRGeometryH OGR_G_CreateFromGMLTree(const CPLXMLNode *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:3742
OGR_F_SetFieldBinary
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *)
Set field to binary data.
Definition: ogrfeature.cpp:5085
OGR_F_GetFieldAsInteger64List
const GIntBig * OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *)
Fetch field value as a list of 64 bit integers.
Definition: ogrfeature.cpp:3036
OGR_G_SetCoordinateDimension
void OGR_G_SetCoordinateDimension(OGRGeometryH, int)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:1139
OGR_F_GetFieldAsBinary
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:3279
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:3406
OGR_G_Within
int OGR_G_Within(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:5410
OGR_G_IsEmpty
int OGR_G_IsEmpty(OGRGeometryH)
Test if the geometry is empty.
Definition: ogrgeometry.cpp:2151
OGR_RawField_SetNull
void OGR_RawField_SetNull(OGRField *)
Mark a raw field as null.
Definition: ogrfeature.cpp:7428
OGR_L_SetSpatialFilterEx
void OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField, OGRGeometryH hGeom)
Set a new spatial filter.
Definition: ogrlayer.cpp:1354
OGR_F_GetGeomFieldDefnRef
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1426
OGR_F_GetFieldAsString
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:2748
OGR_GFld_SetSpatialRef
void OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH, OGRSpatialReferenceH hSRS)
Set the spatial reference of this field.
Definition: ogrgeomfielddefn.cpp:513
OGR_F_GetFieldAsInteger
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:2088
OGR_DS_ExecuteSQL
OGRLayerH OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: ogrdatasource.cpp:206
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:1393
OGRSFDriverH
void * OGRSFDriverH
Opaque type for a OGR driver (OGRSFDriver)
Definition: ogr_api.h:627
OGR_G_UnaryUnion
OGRGeometryH OGR_G_UnaryUnion(OGRGeometryH)
Returns the union of all components of a single geometry.
Definition: ogrgeometry.cpp:4826
OGR_DS_DeleteLayer
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition: ogrdatasource.cpp:166
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)
Stroke arc to linestring.
Definition: ogrgeometryfactory.cpp:4291
OGR_RangeFldDomain_GetMin
const OGRField * OGR_RangeFldDomain_GetMin(OGRFieldDomainH, bool *pbIsInclusiveOut)
Get the minimum value.
Definition: ogrfielddefn.cpp:2334
OGR_F_SetGeometryDirectly
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:498
OGR_F_SetFromWithMap
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *)
Set one feature from another.
Definition: ogrfeature.cpp:6284
OGR_FD_GetReferenceCount
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:1154
OGRPreparedGeometryIntersects
int OGRPreparedGeometryIntersects(OGRPreparedGeometryH hPreparedGeom, OGRGeometryH hOtherGeom)
Returns whether a prepared geometry intersects with a geometry.
Definition: ogrgeometry.cpp:6395
OGR_FD_DeleteGeomFieldDefn
OGRErr OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn, int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:852
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:2424
OGR_F_SetGeomFieldDirectly
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:976
OGR_L_SetSpatialFilter
void OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH)
Set a new spatial filter.
Definition: ogrlayer.cpp:1336
OGRCleanupAll
void OGRCleanupAll(void)
Clean-up all drivers (including raster ones starting with GDAL 2.0.
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:1322
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:1046
OGR_G_SetPointsZM
void OGR_G_SetPointsZM(OGRGeometryH hGeom, int nPointsIn, const void *pabyX, int nXStride, const void *pabyY, int nYStride, const void *pabyZ, int nZStride, const void *pabyM, int nMStride)
Assign all points in a point or a line string geometry.
Definition: ogr_api.cpp:732
OGR_F_GetFID
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:5753
OGR_L_CommitTransaction
OGRErr OGR_L_CommitTransaction(OGRLayerH)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: ogrlayer.cpp:1132
OGR_F_SetStyleString
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string.
Definition: ogrfeature.cpp:6628
OGR_F_GetFieldAsIntegerList
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:2946
CPLXMLNode
Document node structure.
Definition: cpl_minixml.h:69
OGR_F_SetFieldIntegerList
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:4571
OGRGetGEOSVersion
bool OGRGetGEOSVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the GEOS version.
Definition: ogr_api.cpp:68
OGRFeatureH
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition: ogr_api.h:362
OGR_FD_GetFieldIndex
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1240
OGR_DS_SyncToDisk
OGRErr OGR_DS_SyncToDisk(OGRDataSourceH)
Flush pending changes to disk.
Definition: ogrdatasource.cpp:312
OGRSTUnitId
enum ogr_style_tool_units_id OGRSTUnitId
List of units supported by OGRStyleTools.
OGR_F_Validate
int OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError)
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:7102
OGRStyleTableH
void * OGRStyleTableH
Opaque type for a style table (OGRStyleTable)
Definition: ogr_api.h:364
OGR_L_GetSupportedSRSList
OGRSpatialReferenceH * OGR_L_GetSupportedSRSList(OGRLayerH hLayer, int iGeomField, int *pnCount)
Get the list of SRS supported.
Definition: ogrlayer.cpp:5391
OGR_G_SimplifyPreserveTopology
OGRGeometryH OGR_G_SimplifyPreserveTopology(OGRGeometryH hThis, double tolerance)
Simplify the geometry while preserving topology.
Definition: ogrgeometry.cpp:6017
OGR_FldDomain_GetSplitPolicy
OGRFieldDomainSplitPolicy OGR_FldDomain_GetSplitPolicy(OGRFieldDomainH)
Get the split policy of the field domain.
Definition: ogrfielddefn.cpp:2222
OGR_L_GetArrowStream
bool OGR_L_GetArrowStream(OGRLayerH hLayer, struct ArrowArrayStream *out_stream, char **papszOptions)
Get a Arrow C stream.
Definition: ogrlayerarrow.cpp:2585
OGR_F_SetFrom
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition: ogrfeature.cpp:6144
OGRFeatureDefnH
void * OGRFeatureDefnH
Opaque type for a feature definition (OGRFeatureDefn)
Definition: ogr_api.h:360
OGR_G_ConvexHull
OGRGeometryH OGR_G_ConvexHull(OGRGeometryH)
Compute convex hull.
Definition: ogrgeometry.cpp:4064
OGR_ST_GetStyleString
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition: ogrfeaturestyle.cpp:2561
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:1159
OGR_RawField_SetUnset
void OGR_RawField_SetUnset(OGRField *)
Mark a raw field as unset.
Definition: ogrfeature.cpp:7404
OGR_DS_TestCapability
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition: ogrdatasource.cpp:249
OGRGeometryTypeCounter
Result item of OGR_L_GetGeometryTypes.
Definition: ogr_api.h:636
OGR_G_CreateFromFgf
OGRErr OGR_G_CreateFromFgf(const void *, OGRSpatialReferenceH, OGRGeometryH *, int, int *)
Create a geometry object of the appropriate type from its FGF (FDO Geometry Format) binary representa...
Definition: ogrgeometryfactory.cpp:2644
OGR_Fld_IsUnique
int OGR_Fld_IsUnique(OGRFieldDefnH hDefn)
Return whether this field has a unique constraint.
Definition: ogrfielddefn.cpp:1470
OGR_L_SetFeature
OGRErr OGR_L_SetFeature(OGRLayerH, OGRFeatureH)
Rewrite/replace an existing feature.
Definition: ogrlayer.cpp:618
OGR_G_ExportToJsonEx
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1548
OGROpen
OGRDataSourceH OGROpen(const char *, int, OGRSFDriverH *)
Open a file / data source with one of the registered drivers.
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:880
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:1001
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:2609
OGR_F_GetFieldAsDouble
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:2321
OGR_Fld_Destroy
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:136
OGRGeomFieldDefnH
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn)
Definition: ogr_api.h:367
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:6949
OGR_DS_ReleaseResultSet
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition: ogrdatasource.cpp:230
OGR_G_ExportToKML
char * OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
Convert a geometry into KML format.
Definition: ogr2kmlgeometry.cpp:485
OGR_RawField_IsUnset
int OGR_RawField_IsUnset(const OGRField *)
Returns whether a raw field is unset.
Definition: ogrfeature.cpp:7359
OGR_G_SetPoints
void OGR_G_SetPoints(OGRGeometryH hGeom, int nPointsIn, const void *pabyX, int nXStride, const void *pabyY, int nYStride, const void *pabyZ, int nZStride)
Assign all points in a point or a line string geometry.
Definition: ogr_api.cpp:636
OGR_L_SetActiveSRS
OGRErr OGR_L_SetActiveSRS(OGRLayerH hLayer, int iGeomField, OGRSpatialReferenceH hSRS)
Change the active SRS.
Definition: ogrlayer.cpp:5482
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:2113
OGR_L_GetStyleTable
OGRStyleTableH OGR_L_GetStyleTable(OGRLayerH)
Get style table.
Definition: ogrlayer.cpp:1954
OGR_G_CreateFromWkb
OGRErr OGR_G_CreateFromWkb(const void *, OGRSpatialReferenceH, OGRGeometryH *, int)
Create a geometry object of the appropriate type from its well known binary representation.
Definition: ogrgeometryfactory.cpp:261
OGR_GFld_GetNameRef
const char * OGR_GFld_GetNameRef(OGRGeomFieldDefnH)
Fetch name of this field.
Definition: ogrgeomfielddefn.cpp:237
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:306
OGR_F_GetNativeMediaType
const char * OGR_F_GetNativeMediaType(OGRFeatureH)
Returns the native media type for the feature.
Definition: ogrfeature.cpp:7224
OGR_L_DeleteField
OGRErr OGR_L_DeleteField(OGRLayerH, int iField)
Delete an existing field on a layer.
Definition: ogrlayer.cpp:863
OGR_GFld_IsIgnored
int OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:375
OGR_Fld_SetPrecision
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:1104
OGR_L_ResetReading
void OGR_L_ResetReading(OGRLayerH)
Reset feature reading to start on the first feature.
Definition: ogrlayer.cpp:1741
OGR_AreTypeSubTypeCompatible
int OGR_AreTypeSubTypeCompatible(OGRFieldType eType, OGRFieldSubType eSubType)
Return if type and subtype are compatible.
Definition: ogrfielddefn.cpp:887
OGR_G_DestroyGeometry
void OGR_G_DestroyGeometry(OGRGeometryH)
Destroy geometry object.
Definition: ogrgeometryfactory.cpp:700
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:81
OGR_G_Disjoint
int OGR_G_Disjoint(OGRGeometryH, OGRGeometryH)
Test for disjointness.
Definition: ogrgeometry.cpp:5156
OGR_F_SetFieldDouble
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition: ogrfeature.cpp:4059
OGR_CodedFldDomain_Create
OGRFieldDomainH OGR_CodedFldDomain_Create(const char *pszName, const char *pszDescription, OGRFieldType eFieldType, OGRFieldSubType eFieldSubType, const OGRCodedValue *enumeration)
Creates a new coded field domain.
Definition: ogrfielddefn.cpp:1914
OGR_F_GetFieldDefnRef
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:1275
OGR_L_FindFieldIndex
int OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch)
Find the index of field in a layer.
Definition: ogrlayer.cpp:1195
OGR_Dr_CopyDataSource
OGRDataSourceH OGR_Dr_CopyDataSource(OGRSFDriverH, OGRDataSourceH, const char *, char **)
This function creates a new datasource by copying all the layers from the source datasource.
OGR_Fld_SetDefault
void OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *)
Set default field value.
Definition: ogrfielddefn.cpp:620
OGR_L_SymDifference
OGRErr OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Symmetrical difference of two layers.
Definition: ogrlayer.cpp:3709
OGR_GFld_SetName
void OGR_GFld_SetName(OGRGeomFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrgeomfielddefn.cpp:198
OGR_L_GetName
const char * OGR_L_GetName(OGRLayerH)
Return the layer name.
Definition: ogrlayer.cpp:2004
OGR_ST_SetUnit
void OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit, double dfGroundPaperScale)
Set Style Tool units.
Definition: ogrfeaturestyle.cpp:1692
OGR_G_GetPointCount
int OGR_G_GetPointCount(OGRGeometryH)
Fetch number of points from a Point or a LineString/LinearRing geometry.
Definition: ogr_api.cpp:112
OGRwkbByteOrder
OGRwkbByteOrder
Enumeration to describe byte order.
Definition: ogr_core.h:610
OGR_Fld_Create
OGRFieldDefnH OGR_Fld_Create(const char *, OGRFieldType)
Create a new field definition.
Definition: ogrfielddefn.cpp:109
OGR_Fld_SetAlternativeName
void OGR_Fld_SetAlternativeName(OGRFieldDefnH, const char *)
Reset the alternative name (or "alias") for this field.
Definition: ogrfielddefn.cpp:278
OGR_G_IsValid
int OGR_G_IsValid(OGRGeometryH)
Test if the geometry is valid.
Definition: ogrgeometry.cpp:2270
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_api.h:83
OGRField
OGRFeature field attribute value union.
Definition: ogr_core.h:900
OGR_L_UpdateFeature
OGRErr OGR_L_UpdateFeature(OGRLayerH, OGRFeatureH, int nUpdatedFieldsCount, const int *panUpdatedFieldsIdx, int nUpdatedGeomFieldsCount, const int *panUpdatedGeomFieldsIdx, bool bUpdateStyleString)
Update (part of) an existing feature.
Definition: ogrlayer.cpp:793
OGR_G_Buffer
OGRGeometryH OGR_G_Buffer(OGRGeometryH, double, int)
Compute buffer of geometry.
Definition: ogrgeometry.cpp:4389
OGR_L_SetStyleTable
void OGR_L_SetStyleTable(OGRLayerH, OGRStyleTableH)
Set style table.
Definition: ogrlayer.cpp:1980
OGR_G_GetM
double OGR_G_GetM(OGRGeometryH, int)
Fetch the m coordinate of a point from a geometry.
Definition: ogr_api.cpp:314
OGR_STBL_LoadStyleTable
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1064
OGR_L_DeleteFeature
OGRErr OGR_L_DeleteFeature(OGRLayerH, GIntBig)
Delete feature from layer.
Definition: ogrlayer.cpp:1824
OGR_F_SetFieldStringList
void OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList)
Set field to list of strings value.
Definition: ogrfeature.cpp:4998
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:1363
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:1002
OGRCodedValue
Associates a code and a value.
Definition: ogr_core.h:1224
OGR_G_Transform
OGRErr OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH)
Apply arbitrary coordinate transformation to geometry.
Definition: ogrgeometry.cpp:784
OGR_F_GetNativeData
const char * OGR_F_GetNativeData(OGRFeatureH)
Returns the native data for the feature.
Definition: ogrfeature.cpp:7173
OGR_FD_GetGeomFieldIndex
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:908
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:1931
OGR_Fld_GetWidth
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:1000
OGR_STBL_GetNextStyle
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1284
CSLConstList
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1178
OGR_GFld_IsNullable
int OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn)
Return whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:594
OGR_FldDomain_GetName
const char * OGR_FldDomain_GetName(OGRFieldDomainH)
Get the name of the field domain.
Definition: ogrfielddefn.cpp:2135
OGRGetDriverByName
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
OGR_G_SymDifference
OGRGeometryH OGR_G_SymDifference(OGRGeometryH, OGRGeometryH)
Compute symmetric difference.
Definition: ogrgeometry.cpp:5067
OGR_L_ReorderFields
OGRErr OGR_L_ReorderFields(OGRLayerH, int *panMap)
Reorder all the fields of a layer.
Definition: ogrlayer.cpp:895
OGR_GlobFldDomain_GetGlob
const char * OGR_GlobFldDomain_GetGlob(OGRFieldDomainH)
Get the glob expression.
Definition: ogrfielddefn.cpp:2409
OGR_F_GetStyleTable
OGRStyleTableH OGR_F_GetStyleTable(OGRFeatureH)
Return style table.
Definition: ogrfeature.cpp:6823
OGR_GFld_GetSpatialRef
OGRSpatialReferenceH OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH)
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:456
OGR_G_ConcaveHull
OGRGeometryH OGR_G_ConcaveHull(OGRGeometryH, double dfRatio, bool bAllowHoles)
Compute "concave hull" of a geometry.
Definition: ogrgeometry.cpp:4166
OGR_ST_Destroy
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1390
OGR_FD_AddFieldDefn
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:439
OGR_G_GetCoordinateDimension
int OGR_G_GetCoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:970
OGR_G_Distance3D
double OGR_G_Distance3D(OGRGeometryH, OGRGeometryH)
Returns the 3D distance between two geometries.
Definition: ogrgeometry.cpp:3569
OGR_FD_AddGeomFieldDefn
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:789
OGR_FD_GetFieldCount
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:286
OGR_G_Crosses
int OGR_G_Crosses(OGRGeometryH, OGRGeometryH)
Test for crossing.
Definition: ogrgeometry.cpp:5337
OGR_L_CreateFeature
OGRErr OGR_L_CreateFeature(OGRLayerH, OGRFeatureH)
Create and write a new feature within a layer.
Definition: ogrlayer.cpp:658
OGR_F_UnsetField
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1627
OGR_STBL_SaveStyleTable
int OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:1013
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:4122
OGR_GFld_GetType
OGRwkbGeometryType OGR_GFld_GetType(OGRGeomFieldDefnH)
Fetch geometry type of this field.
Definition: ogrgeomfielddefn.cpp:280
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:5039
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:310
OGR_G_CreateGeometryFromEsriJson
OGRGeometryH OGR_G_CreateGeometryFromEsriJson(const char *)
Create a OGR geometry from a ESRI JSON geometry object.
OGRCreatePreparedGeometry
OGRPreparedGeometryH OGRCreatePreparedGeometry(OGRGeometryH hGeom)
Creates a prepared geometry.
Definition: ogrgeometry.cpp:6331
OGR_G_ForceToMultiPoint
OGRGeometryH OGR_G_ForceToMultiPoint(OGRGeometryH)
Convert to multipoint.
Definition: ogrgeometryfactory.cpp:1101
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:1425
OGR_Fld_GetNameRef
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:210
OGR_L_CreateGeomField
OGRErr OGR_L_CreateGeomField(OGRLayerH hLayer, OGRGeomFieldDefnH hFieldDefn, int bForce)
Create a new geometry field on a layer.
Definition: ogrlayer.cpp:1075
OGR_L_GetNextFeature
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH)
Fetch the next available feature from this layer.
Definition: ogrlayer.cpp:547
OGR_F_Create
OGRFeatureH OGR_F_Create(OGRFeatureDefnH)
Feature factory.
Definition: ogrfeature.cpp:126
OGRDataSourceH
void * OGRDataSourceH
Opaque type for a OGR datasource (OGRDataSource)
Definition: ogr_api.h:625
OGRFieldDomainH
struct OGRFieldDomainHS * OGRFieldDomainH
Opaque type for a field domain definition (OGRFieldDomain)
Definition: ogr_api.h:370
OGR_G_Empty
void OGR_G_Empty(OGRGeometryH)
Clear geometry information.
Definition: ogrgeometry.cpp:2115
OGR_G_CloseRings
void OGR_G_CloseRings(OGRGeometryH)
Force rings to be closed.
Definition: ogrgeometry.cpp:5597
OGR_G_SwapXY
void OGR_G_SwapXY(OGRGeometryH hGeom)
Swap x and y coordinates.
Definition: ogrgeometry.cpp:6277
OGR_L_GetGeometryTypes
OGRGeometryTypeCounter * OGR_L_GetGeometryTypes(OGRLayerH hLayer, int iGeomField, int nFlags, int *pnEntryCount, GDALProgressFunc pfnProgress, void *pProgressData)
Get actual geometry types found in features.
Definition: ogrlayer.cpp:5337
OGR_G_Distance
double OGR_G_Distance(OGRGeometryH, OGRGeometryH)
Compute distance between two geometries.
Definition: ogrgeometry.cpp:3469
OGR_F_GetFieldAsISO8601DateTime
const char * OGR_F_GetFieldAsISO8601DateTime(OGRFeatureH, int, CSLConstList)
Fetch OFTDateTime field value as a ISO8601 representation.
Definition: ogrfeature.cpp:2857
OGR_GFld_SetIgnored
void OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:413
OGR_Fld_GetPrecision
int OGR_Fld_GetPrecision(OGRFieldDefnH)
Get the formatting precision for this field.
Definition: ogrfielddefn.cpp:1068
OGR_F_GetRawFieldRef
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch a handle to the internal field value given the index.
Definition: ogrfeature.cpp:1949
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:941
OGR_F_SetFieldRaw
void OGR_F_SetFieldRaw(OGRFeatureH, int, const OGRField *)
Set field.
Definition: ogrfeature.cpp:5524
OGR_GetFieldTypeName
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:804
OGR_G_Intersects
int OGR_G_Intersects(OGRGeometryH, OGRGeometryH)
Do these features intersect?
Definition: ogrgeometry.cpp:607
OGRSetNonLinearGeometriesEnabledFlag
void OGRSetNonLinearGeometriesEnabledFlag(int bFlag)
Set flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1903
OGR_G_ExportToWkt
OGRErr OGR_G_ExportToWkt(OGRGeometryH, char **)
Convert a geometry into well known text format.
Definition: ogrgeometry.cpp:1898
OGR_G_Set3D
void OGR_G_Set3D(OGRGeometryH, int)
Add or remove the Z coordinate dimension.
Definition: ogrgeometry.cpp:1165
OGR_SM_Create
OGRStyleMgrH OGR_SM_Create(OGRStyleTableH hStyleTable)
OGRStyleMgr factory.
Definition: ogrfeaturestyle.cpp:146
OGR_G_Centroid
int OGR_G_Centroid(OGRGeometryH, OGRGeometryH)
Compute the geometry centroid.
Definition: ogrgeometry.cpp:5736
OGR_Fld_SetNullable
void OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int)
Set whether this field can receive null values.
Definition: ogrfielddefn.cpp:1432
OGR_G_GetX
double OGR_G_GetX(OGRGeometryH, int)
Fetch the x coordinate of a point from a Point or a LineString/LinearRing geometry.
Definition: ogr_api.cpp:225
OGR_L_GetFeature
OGRFeatureH OGR_L_GetFeature(OGRLayerH, GIntBig)
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:487
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:435
OGR_F_SetStyleTableDirectly
void OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH)
Set style table and take ownership.
Definition: ogrfeature.cpp:6836
OGR_DS_CopyLayer
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition: ogrdatasource.cpp:150
OGR_F_GetFieldAsStringList
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:3206
OGR_G_GetSpatialReference
OGRSpatialReferenceH OGR_G_GetSpatialReference(OGRGeometryH)
Returns spatial reference system for geometry.
Definition: ogrgeometry.cpp:2079
OGR_G_UnionCascaded
OGRGeometryH OGR_G_UnionCascaded(OGRGeometryH)
Compute union using cascading.
Definition: ogrgeometry.cpp:4726
OGRJustification
OGRJustification
Display justification for field values.
Definition: ogr_core.h:836
OGR_F_GetDefnRef
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition: ogrfeature.cpp:425
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:1245
OGR_G_ImportFromWkt
OGRErr OGR_G_ImportFromWkt(OGRGeometryH, char **)
Assign geometry from well known text data.
Definition: ogrgeometry.cpp:1678
OGR_DS_GetLayer
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition: ogrdatasource.cpp:279
OGR_G_GetGeometryRef
OGRGeometryH OGR_G_GetGeometryRef(OGRGeometryH, int)
Fetch geometry from a geometry container.
Definition: ogr_api.cpp:1365
OGR_GetFieldSubTypeName
const char * OGR_GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition: ogrfielddefn.cpp:868
OGRPreparedGeometryContains
int OGRPreparedGeometryContains(OGRPreparedGeometryH hPreparedGeom, OGRGeometryH hOtherGeom)
Returns whether a prepared geometry contains a geometry.
Definition: ogrgeometry.cpp:6431
OGR_FldDomain_Destroy
void OGR_FldDomain_Destroy(OGRFieldDomainH)
Destroy a field domain.
Definition: ogrfielddefn.cpp:1863
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:441
OGR_G_CreateFromWkbEx
OGRErr OGR_G_CreateFromWkbEx(const void *, OGRSpatialReferenceH, OGRGeometryH *, size_t)
Create a geometry object of the appropriate type from its well known binary representation.
Definition: ogrgeometryfactory.cpp:304
OGR_G_AddGeometryDirectly
OGRErr OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH)
Add a geometry directly to an existing geometry container.
Definition: ogr_api.cpp:1490
OGRFieldDefnH
void * OGRFieldDefnH
Opaque type for a field definition (OGRFieldDefn)
Definition: ogr_api.h:358
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:430
OGR_FD_Destroy
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:122
OGR_G_Normalize
OGRGeometryH OGR_G_Normalize(OGRGeometryH)
Attempts to bring geometry into normalized/canonical form.
Definition: ogrgeometry.cpp:3955
OGR_SM_Destroy
void OGR_SM_Destroy(OGRStyleMgrH hSM)
Destroy Style Manager.
Definition: ogrfeaturestyle.cpp:178
OGR_Fld_SetDomainName
void OGR_Fld_SetDomainName(OGRFieldDefnH hDefn, const char *)
Set the name of the field domain for this field.
Definition: ogrfielddefn.cpp:1599
OGRGeometryH
void * OGRGeometryH
Opaque type for a geometry.
Definition: ogr_api.h:66
OGR_Fld_SetSubType
void OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType)
Set the subtype of this field.
Definition: ogrfielddefn.cpp:513
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:4466
OGRDestroyPreparedGeometry
void OGRDestroyPreparedGeometry(OGRPreparedGeometryH hPreparedGeom)
Destroys a prepared geometry.
Definition: ogrgeometry.cpp:6370
OGR_RangeFldDomain_GetMax
const OGRField * OGR_RangeFldDomain_GetMax(OGRFieldDomainH, bool *pbIsInclusiveOut)
Get the maximum value.
Definition: ogrfielddefn.cpp:2375
OGR_G_ForceToMultiPolygon
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH)
Convert to multipolygon.
Definition: ogrgeometryfactory.cpp:1010
OGR_G_Intersection
OGRGeometryH OGR_G_Intersection(OGRGeometryH, OGRGeometryH)
Compute intersection.
Definition: ogrgeometry.cpp:4510
OGR_FD_Dereference
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1119
OGR_ST_Create
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId)
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1354
OGR_G_ExportEnvelopeToGMLTree
CPLXMLNode * OGR_G_ExportEnvelopeToGMLTree(OGRGeometryH)
Export the envelope of a geometry as a gml:Box.
Definition: ogr2gmlgeometry.cpp:428
OGR_SM_InitStyleString
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:336
OGR_G_IsClockwise
bool OGR_G_IsClockwise(OGRGeometryH hGeom)
Returns true if the ring has clockwise winding (or less than 2 points)
Definition: ogr_api.cpp:1710
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:704
OGR_F_SetFieldInteger
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition: ogrfeature.cpp:3749
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:555
OGR_Dr_CreateDataSource
OGRDataSourceH OGR_Dr_CreateDataSource(OGRSFDriverH, const char *, char **)
This function attempts to create a new data source based on the passed driver.
OGR_G_ForceToMultiLineString
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH)
Convert to multilinestring.
Definition: ogrgeometryfactory.cpp:1340
OGR_Fld_GetSubType
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH)
Fetch subtype of this field.
Definition: ogrfielddefn.cpp:457
OGR_STBL_Find
const char * OGR_STBL_Find(OGRStyleTableH hStyleTable, const char *pszName)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1119
OGR_F_SetStyleTable
void OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH)
Set style table.
Definition: ogrfeature.cpp:6849
OGR_G_HasCurveGeometry
int OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear)
Returns if this geometry is or has curve geometry.
Definition: ogr_api.cpp:1758
OGRGetDriverCount
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
OGR_FldDomain_GetFieldSubType
OGRFieldSubType OGR_FldDomain_GetFieldSubType(OGRFieldDomainH)
Get the field subtype of the field domain.
Definition: ogrfielddefn.cpp:2203
OGR_F_SetFieldDateTime
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:5211
OGR_F_Destroy
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:218
OGR_F_SetStyleStringDirectly
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition: ogrfeature.cpp:6674
OGR_G_ForceToLineString
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH)
Convert to line string.
Definition: ogrgeometryfactory.cpp:4491
OGR_F_SetFieldInteger64
void OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig)
Set field to 64 bit integer value.
Definition: ogrfeature.cpp:3906
OGR_DS_SetStyleTableDirectly
void OGR_DS_SetStyleTableDirectly(OGRDataSourceH, OGRStyleTableH)
Set style table (and take ownership)
Definition: ogrdatasource.cpp:354
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:869
OGRFieldDomainSplitPolicy
OGRFieldDomainSplitPolicy
Split policy for field domains.
Definition: ogr_core.h:1254
OGRErr
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:378
OGR_G_MakeValid
OGRGeometryH OGR_G_MakeValid(OGRGeometryH)
Attempts to make an invalid geometry valid without losing vertices.
Definition: ogrgeometry.cpp:3845
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:1905
OGR_G_IsRing
int OGR_G_IsRing(OGRGeometryH)
Test if the geometry is a ring.
Definition: ogrgeometry.cpp:2411
OGR_FD_GetGeomFieldDefn
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:698
OGR_Dr_Open
OGRDataSourceH OGR_Dr_Open(OGRSFDriverH, const char *, int)
Attempt to open file with this driver.
OGRGeometryTypeCounter::eGeomType
OGRwkbGeometryType eGeomType
Geometry type.
Definition: ogr_api.h:639
OGR_Fld_GetDefault
const char * OGR_Fld_GetDefault(OGRFieldDefnH hDefn)
Get default field value.
Definition: ogrfielddefn.cpp:658
OGR_G_GetY
double OGR_G_GetY(OGRGeometryH, int)
Fetch the x coordinate of a point from a Point or a LineString/LinearRing geometry.
Definition: ogr_api.cpp:255
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:1429
OGR_GFld_Create
OGRGeomFieldDefnH OGR_GFld_Create(const char *, OGRwkbGeometryType)
Create a new field geometry definition.
Definition: ogrgeomfielddefn.cpp:107
OGR_G_GetGeometryType
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
Fetch geometry type.
Definition: ogrgeometry.cpp:1970
GIntBig
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:226
OGR_G_Difference
OGRGeometryH OGR_G_Difference(OGRGeometryH, OGRGeometryH)
Compute difference.
Definition: ogrgeometry.cpp:4944
OGR_L_SetNextByIndex
OGRErr OGR_L_SetNextByIndex(OGRLayerH, GIntBig)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:530
OGRReleaseDataSource
OGRErr OGRReleaseDataSource(OGRDataSourceH)
Drop a reference to this datasource, and if the reference count drops to zero close (destroy) the dat...
OGRwkbGeometryType
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:406
OGR_FD_Reference
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:1085
OGR_G_ExportToWkb
OGRErr OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry well known binary format.
Definition: ogrgeometry.cpp:1587
OGR_F_GetStyleString
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:6576
OGR_DS_GetStyleTable
OGRStyleTableH OGR_DS_GetStyleTable(OGRDataSourceH)
Get style table.
Definition: ogrdatasource.cpp:341
OGR_F_SetFID
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition: ogrfeature.cpp:5808
CPL_WARN_UNUSED_RESULT
#define CPL_WARN_UNUSED_RESULT
Qualifier to warn when the return value of a function is not used.
Definition: cpl_port.h:976
OGR_GeomTransformer_Transform
OGRGeometryH OGR_GeomTransformer_Transform(OGRGeomTransformerH hTransformer, OGRGeometryH hGeom)
Transforms a geometry.
Definition: ogrgeometryfactory.cpp:4052
OGR_L_GetFeatureCount
GIntBig OGR_L_GetFeatureCount(OGRLayerH, int)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:198
OGR_Fld_SetJustify
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:968
OGR_ST_SetParamDbl
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition: ogrfeaturestyle.cpp:2511
OGR_Fld_SetUnique
void OGR_Fld_SetUnique(OGRFieldDefnH hDefn, int)
Set whether this field has a unique constraint.
Definition: ogrfielddefn.cpp:1517
OGR_G_ExportToJson
char * OGR_G_ExportToJson(OGRGeometryH)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1514
OGR_L_SetAttributeFilter
OGRErr OGR_L_SetAttributeFilter(OGRLayerH, const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:433
OGR_G_ExportToGMLEx
char * OGR_G_ExportToGMLEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1241
OGR_L_Rename
OGRErr OGR_L_Rename(OGRLayerH hLayer, const char *pszNewName)
Rename layer.
Definition: ogrlayer.cpp:2177
OGR_F_SetFieldDateTimeEx
void OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int, float, int)
Set field to datetime.
Definition: ogrfeature.cpp:5251
OGRBuildPolygonFromEdges
OGRGeometryH OGRBuildPolygonFromEdges(OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose, double dfTolerance, OGRErr *peErr)
Build a ring from a bunch of arcs.
Definition: ograssemblepolygon.cpp:139
OGR_F_GetFieldAsDoubleList
const double * OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:3122
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:361
OGR_F_SetNativeData
void OGR_F_SetNativeData(OGRFeatureH, const char *)
Sets the native data for the feature.
Definition: ogrfeature.cpp:7281
OGRFieldSubType
OGRFieldSubType
List of field subtypes.
Definition: ogr_core.h:811
OGR_ST_SetParamNum
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2468
OGR_L_SetStyleTableDirectly
void OGR_L_SetStyleTableDirectly(OGRLayerH, OGRStyleTableH)
Set style table (and take ownership)
Definition: ogrlayer.cpp:1967
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:1252
OGR_FD_ReorderFieldDefns
OGRErr OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn, const int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:571
OGR_G_ExportToGML
char * OGR_G_ExportToGML(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1171
OGREnvelope3D
Simple container for a bounding region in 3D.
Definition: ogr_core.h:212
OGR_G_Contains
int OGR_G_Contains(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:5483
OGR_F_IsFieldSetAndNotNull
int OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int)
Test if a field is set and not null.
Definition: ogrfeature.cpp:1746
OGR_G_Touches
int OGR_G_Touches(OGRGeometryH, OGRGeometryH)
Test for touching.
Definition: ogrgeometry.cpp:5229
OGR_G_GetGeometryName
const char * OGR_G_GetGeometryName(OGRGeometryH)
Fetch WKT name for geometry type.
Definition: ogrgeometry.cpp:2006
OGR_G_GetCurveGeometry
OGRGeometryH OGR_G_GetCurveGeometry(OGRGeometryH hGeom, char **papszOptions)
Return curve version of this geometry.
Definition: ogr_api.cpp:1832
OGRGeometryTypeCounter::nCount
int64_t nCount
Number of geometries of type eGeomType.
Definition: ogr_api.h:641
OGR_L_IsArrowSchemaSupported
bool OGR_L_IsArrowSchemaSupported(OGRLayerH hLayer, const struct ArrowSchema *schema, char **papszOptions, char **ppszErrorMsg)
Returns whether the provided ArrowSchema is supported for writing.
Definition: ogrlayerarrow.cpp:5307
OGR_G_CreateFromWkt
OGRErr OGR_G_CreateFromWkt(char **, OGRSpatialReferenceH, OGRGeometryH *)
Create a geometry object of the appropriate type from its well known text representation.
Definition: ogrgeometryfactory.cpp:524
OGR_FldDomain_SetSplitPolicy
void OGR_FldDomain_SetSplitPolicy(OGRFieldDomainH, OGRFieldDomainSplitPolicy)
Set the split policy of the field domain.
Definition: ogrfielddefn.cpp:2240
OGR_Fld_IsIgnored
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1281
OGR_ST_GetType
OGRSTClassId OGR_ST_GetType(OGRStyleToolH hST)
Determine type of Style Tool.
Definition: ogrfeaturestyle.cpp:1628
OGR_Dr_DeleteDataSource
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
OGR_Fld_IsDefaultDriverSpecific
int OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn)
Returns whether the default value is driver specific.
Definition: ogrfielddefn.cpp:722
OGR_GlobFldDomain_Create
OGRFieldDomainH OGR_GlobFldDomain_Create(const char *pszName, const char *pszDescription, OGRFieldType eFieldType, OGRFieldSubType eFieldSubType, const char *pszGlob)
Creates a new blob field domain.
Definition: ogrfielddefn.cpp:2110
OGR_G_RemoveGeometry
OGRErr OGR_G_RemoveGeometry(OGRGeometryH, int, int)
Remove a geometry from an exiting geometry container.
Definition: ogr_api.cpp:1561
OGRFieldType
OGRFieldType
List of feature field types.
Definition: ogr_core.h:783
OGR_L_AlterGeomFieldDefn
OGRErr OGR_L_AlterGeomFieldDefn(OGRLayerH, int iField, OGRGeomFieldDefnH hNewGeomFieldDefn, int nFlags)
Alter the definition of an existing geometry field on a layer.
Definition: ogrlayer.cpp:1039
OGR_L_StartTransaction
OGRErr OGR_L_StartTransaction(OGRLayerH)
For datasources which support transactions, StartTransaction creates a transaction.
Definition: ogrlayer.cpp:1105
OGR_F_SetFieldDoubleList
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:4847
OGR_FD_GetFieldDefn
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:367
OGR_G_Overlaps
int OGR_G_Overlaps(OGRGeometryH, OGRGeometryH)
Test for overlap.
Definition: ogrgeometry.cpp:5558
OGR_F_StealGeometry
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH)
Take away ownership of geometry.
Definition: ogrfeature.cpp:654
OGR_G_ForceToPolygon
OGRGeometryH OGR_G_ForceToPolygon(OGRGeometryH)
Convert to polygon.
Definition: ogrgeometryfactory.cpp:842
OGR_G_SetMeasured
void OGR_G_SetMeasured(OGRGeometryH, int)
Add or remove the M coordinate dimension.
Definition: ogrgeometry.cpp:1192
OGR_G_GetLinearGeometry
OGRGeometryH OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees, char **papszOptions)
Return, possibly approximate, linear version of this geometry.
Definition: ogr_api.cpp:1794
OGR_FldDomain_SetMergePolicy
void OGR_FldDomain_SetMergePolicy(OGRFieldDomainH, OGRFieldDomainMergePolicy)
Set the split policy of the field domain.
Definition: ogrfielddefn.cpp:2278
OGR_Fld_IsNullable
int OGR_Fld_IsNullable(OGRFieldDefnH hDefn)
Return whether this field can receive null values.
Definition: ogrfielddefn.cpp:1386
OGR_FD_SetGeometryIgnored
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1344
OGR_GeomTransformer_Destroy
void OGR_GeomTransformer_Destroy(OGRGeomTransformerH hTransformer)
Destroy a geometry transformer allocated with OGR_GeomTransformer_Create()
Definition: ogrgeometryfactory.cpp:4072
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:4763
OGR_F_GetGeomFieldIndex
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogrfeature.cpp:1476
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:1875
OGR_G_AddGeometry
OGRErr OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH)
Add a geometry to a geometry container.
Definition: ogr_api.cpp:1429
OGR_G_Boundary
OGRGeometryH OGR_G_Boundary(OGRGeometryH)
Compute boundary.
Definition: ogrgeometry.cpp:4266
OGR_FD_GetGeomType
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:971
OGREnvelope
Simple container for a bounding region (rectangle)
Definition: ogr_core.h:57
OGR_L_GetSpatialRef
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH)
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:1237
OGR_L_WriteArrowBatch
bool OGR_L_WriteArrowBatch(OGRLayerH hLayer, const struct ArrowSchema *schema, struct ArrowArray *array, char **papszOptions)
Writes a batch of rows from an ArrowArray.
Definition: ogrlayerarrow.cpp:7170
OGR_F_StealGeometryEx
OGRGeometryH OGR_F_StealGeometryEx(OGRFeatureH, int iGeomField)
Take away ownership of geometry.
Definition: ogrfeature.cpp:684
OGR_F_IsFieldNull
int OGR_F_IsFieldNull(OGRFeatureH, int)
Test if a field is null.
Definition: ogrfeature.cpp:1683
OGR_G_DelaunayTriangulation
OGRGeometryH OGR_G_DelaunayTriangulation(OGRGeometryH hThis, double dfTolerance, int bOnlyEdges)
Return a Delaunay triangulation of the vertices of the geometry.
Definition: ogrgeometry.cpp:6111
OGR_G_Union
OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH)
Compute union.
Definition: ogrgeometry.cpp:4626
OGR_STBL_Destroy
void OGR_STBL_Destroy(OGRStyleTableH hSTBL)
Destroy Style Table.
Definition: ogrfeaturestyle.cpp:817
OGR_F_SetFieldInteger64List
void OGR_F_SetFieldInteger64List(OGRFeatureH, int, int, const GIntBig *)
Set field to list of 64 bit integers value.
Definition: ogrfeature.cpp:4716
OGR_L_GetSpatialFilter
OGRGeometryH OGR_L_GetSpatialFilter(OGRLayerH)
This function returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:1283
OGR_GFld_Destroy
void OGR_GFld_Destroy(OGRGeomFieldDefnH)
Destroy a geometry field definition.
Definition: ogrgeomfielddefn.cpp:151
OGR_L_CreateFieldFromArrowSchema
bool OGR_L_CreateFieldFromArrowSchema(OGRLayerH hLayer, const struct ArrowSchema *schema, char **papszOptions)
Creates a field from an ArrowSchema.
Definition: ogrlayerarrow.cpp:5679
OGRGetNonLinearGeometriesEnabledFlag
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1923
OGR_ST_GetParamNum
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition: ogrfeaturestyle.cpp:2322
OGR_F_SetGeometry
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:569
OGR_DS_SetStyleTable
void OGR_DS_SetStyleTable(OGRDataSourceH, OGRStyleTableH)
Set style table.
Definition: ogrdatasource.cpp:368
OGR_ST_GetParamDbl
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition: ogrfeaturestyle.cpp:2374
OGR_Fld_GetJustify
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:932
OGRStyleToolH
void * OGRStyleToolH
Style tool opaque type.
Definition: ogr_api.h:901
OGR_L_UpsertFeature
OGRErr OGR_L_UpsertFeature(OGRLayerH, OGRFeatureH)
Rewrite/replace an existing feature or create a new feature within a layer.
Definition: ogrlayer.cpp:697
OGR_STBL_Create
OGRStyleTableH OGR_STBL_Create(void)
OGRStyleTable factory.
Definition: ogrfeaturestyle.cpp:776
OGR_FD_IsGeometryIgnored
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1296
OGR_G_GetDimension
int OGR_G_GetDimension(OGRGeometryH)
Get the dimension of this geometry.
Definition: ogrgeometry.cpp:900
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:485
OGR_F_Clone
OGRFeatureH OGR_F_Clone(OGRFeatureH)
Duplicate feature.
Definition: ogrfeature.cpp:1111
OGR_G_PointOnSurface
OGRGeometryH OGR_G_PointOnSurface(OGRGeometryH)
Returns a point guaranteed to lie on the surface.
Definition: ogrgeometry.cpp:5778
OGR_FD_GetName
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:249
OGR_G_ExportToGMLTree
CPLXMLNode * OGR_G_ExportToGMLTree(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1140
OGR_G_SetPointCount
void OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount)
Set number of points in a geometry.
Definition: ogr_api.cpp:151
OGR_G_CreateGeometryFromJson
OGRGeometryH OGR_G_CreateGeometryFromJson(const char *)
Create a OGR geometry from a GeoJSON geometry object.
OGR_FldDomain_GetMergePolicy
OGRFieldDomainMergePolicy OGR_FldDomain_GetMergePolicy(OGRFieldDomainH)
Get the split policy of the field domain.
Definition: ogrfielddefn.cpp:2260
OGR_Fld_GetTZFlag
int OGR_Fld_GetTZFlag(OGRFieldDefnH)
Get the time zone flag.
Definition: ogrfielddefn.cpp:1146
ogr_core.h
OGR_Dr_GetName
const char * OGR_Dr_GetName(OGRSFDriverH)
Fetch name of driver (file format). This name should be relatively short (10-40 characters),...
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:1208
OGR_L_Union
OGRErr OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Union of two layers.
Definition: ogrlayer.cpp:3302
OGRGetDriver
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
OGR_SM_GetPartCount
int OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:628
OGRStyleMgrH
void * OGRStyleMgrH
Style manager opaque type.
Definition: ogr_api.h:899
OGRLayerH
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition: ogr_api.h:623
OGR_L_Intersection
OGRErr OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Intersection of two layers.
Definition: ogrlayer.cpp:2768
OGR_Fld_SetComment
void OGR_Fld_SetComment(OGRFieldDefnH hDefn, const char *)
Set the comment for this field.
Definition: ogrfielddefn.cpp:1672
OGR_FD_IsStyleIgnored
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1378
OGR_G_ForceTo
OGRGeometryH OGR_G_ForceTo(OGRGeometryH hGeom, OGRwkbGeometryType eTargetType, char **papszOptions)
Convert to another geometry type.
Definition: ogrgeometryfactory.cpp:4909
OGR_F_GetFieldIndex
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:1320
OGR_G_ImportFromWkb
OGRErr OGR_G_ImportFromWkb(OGRGeometryH, const void *, int)
Assign geometry from well known binary data.
Definition: ogrgeometry.cpp:1521
OGR_G_Length
double OGR_G_Length(OGRGeometryH)
Compute length of a geometry.
Definition: ogr_api.cpp:1605
OGR_Fld_SetName
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:176
OGR_G_CreateGeometry
OGRGeometryH OGR_G_CreateGeometry(OGRwkbGeometryType)
Create an empty geometry of desired type.
Definition: ogrgeometryfactory.cpp:657
OGR_FD_DeleteFieldDefn
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:497
OGR_GeomTransformer_Create
OGRGeomTransformerH OGR_GeomTransformer_Create(OGRCoordinateTransformationH, CSLConstList papszOptions)
Create a geometry transformer.
Definition: ogrgeometryfactory.cpp:4028
OGR_G_Polygonize
OGRGeometryH OGR_G_Polygonize(OGRGeometryH)
Polygonizes a set of sparse edges.
Definition: ogrgeometry.cpp:6242
OGR_G_MakeValidEx
OGRGeometryH OGR_G_MakeValidEx(OGRGeometryH, CSLConstList)
Attempts to make an invalid geometry valid without losing vertices.
Definition: ogrgeometry.cpp:3875
OGR_L_CreateField
OGRErr OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int)
Create a new field on a layer.
Definition: ogrlayer.cpp:829
OGR_DS_GetLayerByName
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition: ogrdatasource.cpp:185
OGR_FldDomain_GetFieldType
OGRFieldType OGR_FldDomain_GetFieldType(OGRFieldDomainH)
Get the field type of the field domain.
Definition: ogrfielddefn.cpp:2186
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:1301
OGR_G_IsSimple
int OGR_G_IsSimple(OGRGeometryH)
Returns TRUE if the geometry is simple.
Definition: ogrgeometry.cpp:2340
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:1220
OGR_ST_GetParamStr
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition: ogrfeaturestyle.cpp:2270
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:119
OGR_G_WkbSize
int OGR_G_WkbSize(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:1326
OGR_G_Clone
OGRGeometryH OGR_G_Clone(OGRGeometryH)
Make a copy of this object.
Definition: ogrgeometry.cpp:2042
OGR_FD_Create
OGRFeatureDefnH OGR_FD_Create(const char *)
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:86
OGR_Fld_SetType
void OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType)
Set the type of this field.
Definition: ogrfielddefn.cpp:423
OGR_G_TransformTo
OGRErr OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH)
Transform geometry to new spatial reference system.
Definition: ogrgeometry.cpp:716