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 * SPDX-License-Identifier: MIT
13 ****************************************************************************/
14
15#ifndef OGR_API_H_INCLUDED
16#define OGR_API_H_INCLUDED
17
27#include "cpl_progress.h"
28#include "cpl_minixml.h"
29#include "ogr_core.h"
30
31#include <stdbool.h>
32#include <stddef.h>
33#include <stdint.h>
34
35 CPL_C_START
36
37 bool CPL_DLL OGRGetGEOSVersion(int *pnMajor, int *pnMinor, int *pnPatch);
38
39/* -------------------------------------------------------------------- */
40/* Geometry related functions (ogr_geometry.h) */
41/* -------------------------------------------------------------------- */
42#ifndef DEFINEH_OGRGeometryH
44#define DEFINEH_OGRGeometryH
46#ifdef DEBUG
47 typedef struct OGRGeometryHS *OGRGeometryH;
48#else
50 typedef void *OGRGeometryH;
51#endif
52#endif /* DEFINEH_OGRGeometryH */
53
54#ifndef DEFINED_OGRSpatialReferenceH
56#define DEFINED_OGRSpatialReferenceH
59#ifndef DOXYGEN_XML
60#ifdef DEBUG
61 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
62 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
63#else
65 typedef void *OGRSpatialReferenceH;
67 typedef void *OGRCoordinateTransformationH;
68#endif
69#endif
70
71#endif /* DEFINED_OGRSpatialReferenceH */
72
73 struct _CPLXMLNode;
74
75/* OGRGeomCoordinatePrecisionH */
76
78#define OGR_GEOM_COORD_PRECISION_UNKNOWN 0
79
81 typedef struct OGRGeomCoordinatePrecision *OGRGeomCoordinatePrecisionH;
82
83 OGRGeomCoordinatePrecisionH CPL_DLL OGRGeomCoordinatePrecisionCreate(void);
84 void CPL_DLL OGRGeomCoordinatePrecisionDestroy(OGRGeomCoordinatePrecisionH);
85 double CPL_DLL
86 OGRGeomCoordinatePrecisionGetXYResolution(OGRGeomCoordinatePrecisionH);
87 double CPL_DLL
88 OGRGeomCoordinatePrecisionGetZResolution(OGRGeomCoordinatePrecisionH);
89 double CPL_DLL
90 OGRGeomCoordinatePrecisionGetMResolution(OGRGeomCoordinatePrecisionH);
91 char CPL_DLL **
92 OGRGeomCoordinatePrecisionGetFormats(OGRGeomCoordinatePrecisionH);
93 CSLConstList CPL_DLL OGRGeomCoordinatePrecisionGetFormatSpecificOptions(
94 OGRGeomCoordinatePrecisionH, const char *pszFormatName);
95 void CPL_DLL OGRGeomCoordinatePrecisionSet(OGRGeomCoordinatePrecisionH,
96 double dfXYResolution,
97 double dfZResolution,
98 double dfMResolution);
99 void CPL_DLL OGRGeomCoordinatePrecisionSetFromMeter(OGRGeomCoordinatePrecisionH,
100 OGRSpatialReferenceH hSRS,
101 double dfXYMeterResolution,
102 double dfZMeterResolution,
103 double dfMResolution);
104 void CPL_DLL OGRGeomCoordinatePrecisionSetFormatSpecificOptions(
105 OGRGeomCoordinatePrecisionH, const char *pszFormatName,
106 CSLConstList papszOptions);
107
108/* From base OGRGeometry class */
109
110 OGRErr CPL_DLL OGR_G_CreateFromWkb(const void *, OGRSpatialReferenceH,
111 OGRGeometryH *, int);
112 OGRErr CPL_DLL OGR_G_CreateFromWkbEx(const void *, OGRSpatialReferenceH,
113 OGRGeometryH *, size_t);
114 OGRErr CPL_DLL OGR_G_CreateFromWkt(char **, OGRSpatialReferenceH,
115 OGRGeometryH *);
116 OGRErr CPL_DLL OGR_G_CreateFromFgf(const void *, OGRSpatialReferenceH,
117 OGRGeometryH *, int, int *);
118 void CPL_DLL OGR_G_DestroyGeometry(OGRGeometryH);
119 OGRGeometryH
120 CPL_DLL OGR_G_CreateGeometry(OGRwkbGeometryType) CPL_WARN_UNUSED_RESULT;
121 OGRGeometryH CPL_DLL OGR_G_ApproximateArcAngles(
122 double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius,
123 double dfSecondaryAxis, double dfRotation, double dfStartAngle,
124 double dfEndAngle, double dfMaxAngleStepSizeDegrees) CPL_WARN_UNUSED_RESULT;
125
126 OGRGeometryH CPL_DLL OGR_G_ForceToPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
127 OGRGeometryH
128 CPL_DLL OGR_G_ForceToLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
129 OGRGeometryH
130 CPL_DLL OGR_G_ForceToMultiPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
131 OGRGeometryH
132 CPL_DLL OGR_G_ForceToMultiPoint(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
133 OGRGeometryH
134 CPL_DLL OGR_G_ForceToMultiLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
135 OGRGeometryH CPL_DLL OGR_G_ForceTo(OGRGeometryH hGeom,
136 OGRwkbGeometryType eTargetType,
137 char **papszOptions) CPL_WARN_UNUSED_RESULT;
138 OGRGeometryH CPL_DLL OGR_G_RemoveLowerDimensionSubGeoms(
139 const OGRGeometryH hGeom) CPL_WARN_UNUSED_RESULT;
140
141 int CPL_DLL OGR_G_GetDimension(OGRGeometryH);
142 int CPL_DLL OGR_G_GetCoordinateDimension(OGRGeometryH);
143 int CPL_DLL OGR_G_CoordinateDimension(OGRGeometryH);
144 void CPL_DLL OGR_G_SetCoordinateDimension(OGRGeometryH, int);
145 int CPL_DLL OGR_G_Is3D(OGRGeometryH);
146 int CPL_DLL OGR_G_IsMeasured(OGRGeometryH);
147 void CPL_DLL OGR_G_Set3D(OGRGeometryH, int);
148 void CPL_DLL OGR_G_SetMeasured(OGRGeometryH, int);
149 OGRGeometryH CPL_DLL OGR_G_Clone(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
150 void CPL_DLL OGR_G_GetEnvelope(OGRGeometryH, OGREnvelope *);
151 void CPL_DLL OGR_G_GetEnvelope3D(OGRGeometryH, OGREnvelope3D *);
152 OGRErr CPL_DLL OGR_G_ImportFromWkb(OGRGeometryH, const void *, int);
153 OGRErr CPL_DLL OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder,
154 unsigned char *);
155 OGRErr CPL_DLL OGR_G_ExportToIsoWkb(OGRGeometryH, OGRwkbByteOrder,
156 unsigned char *);
157
159 typedef struct OGRwkbExportOptions OGRwkbExportOptions;
160
161 OGRwkbExportOptions CPL_DLL *OGRwkbExportOptionsCreate(void);
162 void CPL_DLL OGRwkbExportOptionsDestroy(OGRwkbExportOptions *);
163 void CPL_DLL OGRwkbExportOptionsSetByteOrder(OGRwkbExportOptions *,
164 OGRwkbByteOrder);
165 void CPL_DLL OGRwkbExportOptionsSetVariant(OGRwkbExportOptions *,
166 OGRwkbVariant);
167 void CPL_DLL OGRwkbExportOptionsSetPrecision(OGRwkbExportOptions *,
168 OGRGeomCoordinatePrecisionH);
169 OGRErr CPL_DLL OGR_G_ExportToWkbEx(OGRGeometryH, unsigned char *,
170 const OGRwkbExportOptions *);
171
172 int CPL_DLL OGR_G_WkbSize(OGRGeometryH hGeom);
173 size_t CPL_DLL OGR_G_WkbSizeEx(OGRGeometryH hGeom);
174 OGRErr CPL_DLL OGR_G_ImportFromWkt(OGRGeometryH, char **);
175 OGRErr CPL_DLL OGR_G_ExportToWkt(OGRGeometryH, char **);
176 OGRErr CPL_DLL OGR_G_ExportToIsoWkt(OGRGeometryH, char **);
177 OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType(OGRGeometryH);
178 const char CPL_DLL *OGR_G_GetGeometryName(OGRGeometryH);
179 void CPL_DLL OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *);
180 void CPL_DLL OGR_G_FlattenTo2D(OGRGeometryH);
181 void CPL_DLL OGR_G_CloseRings(OGRGeometryH);
182
183 OGRGeometryH CPL_DLL OGR_G_CreateFromGML(const char *) CPL_WARN_UNUSED_RESULT;
184 char CPL_DLL *OGR_G_ExportToGML(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
185 char CPL_DLL *OGR_G_ExportToGMLEx(OGRGeometryH,
186 char **papszOptions) CPL_WARN_UNUSED_RESULT;
187
188 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree(const CPLXMLNode *)
189 CPL_WARN_UNUSED_RESULT;
190 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
191 CPLXMLNode CPL_DLL *
192 OGR_G_ExportEnvelopeToGMLTree(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
193
194 char CPL_DLL *OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
195 CPL_WARN_UNUSED_RESULT;
196
197 char CPL_DLL *OGR_G_ExportToJson(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
198 char CPL_DLL *OGR_G_ExportToJsonEx(OGRGeometryH,
199 char **papszOptions) CPL_WARN_UNUSED_RESULT;
201 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromJson(const char *)
202 CPL_WARN_UNUSED_RESULT;
204 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromEsriJson(const char *)
205 CPL_WARN_UNUSED_RESULT;
206
207 void CPL_DLL OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH);
208 OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference(OGRGeometryH);
209 OGRErr CPL_DLL OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH);
210 OGRErr CPL_DLL OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH);
211
213 typedef struct OGRGeomTransformer *OGRGeomTransformerH;
214 OGRGeomTransformerH CPL_DLL
215 OGR_GeomTransformer_Create(OGRCoordinateTransformationH,
216 CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
217 OGRGeometryH CPL_DLL
218 OGR_GeomTransformer_Transform(OGRGeomTransformerH hTransformer,
219 OGRGeometryH hGeom) CPL_WARN_UNUSED_RESULT;
220 void CPL_DLL OGR_GeomTransformer_Destroy(OGRGeomTransformerH hTransformer);
221
222 OGRGeometryH CPL_DLL OGR_G_Simplify(OGRGeometryH hThis,
223 double tolerance) CPL_WARN_UNUSED_RESULT;
224 OGRGeometryH CPL_DLL OGR_G_SimplifyPreserveTopology(
225 OGRGeometryH hThis, double tolerance) CPL_WARN_UNUSED_RESULT;
226 OGRGeometryH CPL_DLL
227 OGR_G_DelaunayTriangulation(OGRGeometryH hThis, double dfTolerance,
228 int bOnlyEdges) CPL_WARN_UNUSED_RESULT;
229
230 void CPL_DLL OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength);
231 int CPL_DLL OGR_G_Intersects(OGRGeometryH, OGRGeometryH);
232 int CPL_DLL OGR_G_Equals(OGRGeometryH, OGRGeometryH);
233/*int CPL_DLL OGR_G_EqualsExact( OGRGeometryH, OGRGeometryH, double );*/
234 int CPL_DLL OGR_G_Disjoint(OGRGeometryH, OGRGeometryH);
235 int CPL_DLL OGR_G_Touches(OGRGeometryH, OGRGeometryH);
236 int CPL_DLL OGR_G_Crosses(OGRGeometryH, OGRGeometryH);
237 int CPL_DLL OGR_G_Within(OGRGeometryH, OGRGeometryH);
238 int CPL_DLL OGR_G_Contains(OGRGeometryH, OGRGeometryH);
239 int CPL_DLL OGR_G_Overlaps(OGRGeometryH, OGRGeometryH);
240
241 OGRGeometryH CPL_DLL OGR_G_Boundary(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
242 OGRGeometryH CPL_DLL OGR_G_ConvexHull(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
243 OGRGeometryH CPL_DLL OGR_G_ConcaveHull(OGRGeometryH, double dfRatio,
244 bool bAllowHoles) CPL_WARN_UNUSED_RESULT;
245 OGRGeometryH CPL_DLL OGR_G_Buffer(OGRGeometryH, double dfDist,
246 int nQuadSegs) CPL_WARN_UNUSED_RESULT;
247 OGRGeometryH CPL_DLL OGR_G_BufferEx(OGRGeometryH, double dfDist,
248 CSLConstList papszOptions)
249 CPL_WARN_UNUSED_RESULT;
250 OGRGeometryH CPL_DLL OGR_G_Intersection(OGRGeometryH,
251 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
252 OGRGeometryH CPL_DLL OGR_G_Union(OGRGeometryH,
253 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
254 OGRGeometryH CPL_DLL OGR_G_UnionCascaded(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
255 OGRGeometryH CPL_DLL OGR_G_UnaryUnion(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
256 OGRGeometryH CPL_DLL OGR_G_PointOnSurface(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
257/*OGRGeometryH CPL_DLL OGR_G_Polygonize( OGRGeometryH *, int);*/
258/*OGRGeometryH CPL_DLL OGR_G_Polygonizer_getCutEdges( OGRGeometryH *, int);*/
259/*OGRGeometryH CPL_DLL OGR_G_LineMerge( OGRGeometryH );*/
260
261 OGRGeometryH CPL_DLL OGR_G_Difference(OGRGeometryH,
262 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
263 OGRGeometryH CPL_DLL OGR_G_SymDifference(OGRGeometryH,
264 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
265 double CPL_DLL OGR_G_Distance(OGRGeometryH, OGRGeometryH);
266 double CPL_DLL OGR_G_Distance3D(OGRGeometryH, OGRGeometryH);
267 double CPL_DLL OGR_G_Length(OGRGeometryH);
268 double CPL_DLL OGR_G_GeodesicLength(OGRGeometryH);
269 double CPL_DLL OGR_G_Area(OGRGeometryH);
270 double CPL_DLL OGR_G_GeodesicArea(OGRGeometryH);
271 bool CPL_DLL OGR_G_IsClockwise(OGRGeometryH hGeom);
272 int CPL_DLL OGR_G_Centroid(OGRGeometryH, OGRGeometryH);
273 OGRGeometryH CPL_DLL OGR_G_Value(OGRGeometryH,
274 double dfDistance) CPL_WARN_UNUSED_RESULT;
275
276 void CPL_DLL OGR_G_Empty(OGRGeometryH);
277 int CPL_DLL OGR_G_IsEmpty(OGRGeometryH);
278 int CPL_DLL OGR_G_IsValid(OGRGeometryH);
279/*char CPL_DLL *OGR_G_IsValidReason( OGRGeometryH );*/
280 OGRGeometryH CPL_DLL OGR_G_MakeValid(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
281 OGRGeometryH CPL_DLL OGR_G_MakeValidEx(OGRGeometryH,
282 CSLConstList) CPL_WARN_UNUSED_RESULT;
283 OGRGeometryH CPL_DLL OGR_G_Normalize(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
284 int CPL_DLL OGR_G_IsSimple(OGRGeometryH);
285 int CPL_DLL OGR_G_IsRing(OGRGeometryH);
286
289#define OGR_GEOS_PREC_NO_TOPO (1 << 0)
290
293#define OGR_GEOS_PREC_KEEP_COLLAPSED (1 << 1)
294
295 OGRGeometryH CPL_DLL OGR_G_SetPrecision(OGRGeometryH, double dfGridSize,
296 int nFlags) CPL_WARN_UNUSED_RESULT;
297
298 OGRGeometryH CPL_DLL OGR_G_Polygonize(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
299
301/* backward compatibility (non-standard methods) */
302 int CPL_DLL OGR_G_Intersect(OGRGeometryH, OGRGeometryH)
303 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Intersects() instead");
304 int CPL_DLL OGR_G_Equal(OGRGeometryH, OGRGeometryH)
305 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Equals() instead");
306 OGRGeometryH CPL_DLL OGR_G_SymmetricDifference(OGRGeometryH, OGRGeometryH)
307 CPL_WARN_DEPRECATED(
308 "Non standard method. Use OGR_G_SymDifference() instead");
309 double CPL_DLL OGR_G_GetArea(OGRGeometryH)
310 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead");
311 OGRGeometryH CPL_DLL OGR_G_GetBoundary(OGRGeometryH)
312 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead");
315/* Methods for getting/setting vertices in points, line strings and rings */
316 int CPL_DLL OGR_G_GetPointCount(OGRGeometryH);
317 int CPL_DLL OGR_G_GetPoints(OGRGeometryH hGeom, void *pabyX, int nXStride,
318 void *pabyY, int nYStride, void *pabyZ,
319 int nZStride);
320 int CPL_DLL OGR_G_GetPointsZM(OGRGeometryH hGeom, void *pabyX, int nXStride,
321 void *pabyY, int nYStride, void *pabyZ,
322 int nZStride, void *pabyM, int nMStride);
323 double CPL_DLL OGR_G_GetX(OGRGeometryH, int);
324 double CPL_DLL OGR_G_GetY(OGRGeometryH, int);
325 double CPL_DLL OGR_G_GetZ(OGRGeometryH, int);
326 double CPL_DLL OGR_G_GetM(OGRGeometryH, int);
327 void CPL_DLL OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *,
328 double *);
329 void CPL_DLL OGR_G_GetPointZM(OGRGeometryH, int iPoint, double *, double *,
330 double *, double *);
331 void CPL_DLL OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount);
332 void CPL_DLL OGR_G_SetPoint(OGRGeometryH, int iPoint, double, double, double);
333 void CPL_DLL OGR_G_SetPoint_2D(OGRGeometryH, int iPoint, double, double);
334 void CPL_DLL OGR_G_SetPointM(OGRGeometryH, int iPoint, double, double, double);
335 void CPL_DLL OGR_G_SetPointZM(OGRGeometryH, int iPoint, double, double, double,
336 double);
337 void CPL_DLL OGR_G_AddPoint(OGRGeometryH, double, double, double);
338 void CPL_DLL OGR_G_AddPoint_2D(OGRGeometryH, double, double);
339 void CPL_DLL OGR_G_AddPointM(OGRGeometryH, double, double, double);
340 void CPL_DLL OGR_G_AddPointZM(OGRGeometryH, double, double, double, double);
341 void CPL_DLL OGR_G_SetPoints(OGRGeometryH hGeom, int nPointsIn,
342 const void *pabyX, int nXStride, const void *pabyY,
343 int nYStride, const void *pabyZ, int nZStride);
344 void CPL_DLL OGR_G_SetPointsZM(OGRGeometryH hGeom, int nPointsIn,
345 const void *pabyX, int nXStride,
346 const void *pabyY, int nYStride,
347 const void *pabyZ, int nZStride,
348 const void *pabyM, int nMStride);
349 void CPL_DLL OGR_G_SwapXY(OGRGeometryH hGeom);
350
351/* Methods for getting/setting rings and members collections */
352
353 int CPL_DLL OGR_G_GetGeometryCount(OGRGeometryH);
354 OGRGeometryH CPL_DLL OGR_G_GetGeometryRef(OGRGeometryH, int);
355 OGRErr CPL_DLL OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH);
356 OGRErr CPL_DLL OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH);
357 OGRErr CPL_DLL OGR_G_RemoveGeometry(OGRGeometryH, int, int);
358
359 int CPL_DLL OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear);
360 OGRGeometryH CPL_DLL
361 OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees,
362 char **papszOptions) CPL_WARN_UNUSED_RESULT;
363 OGRGeometryH CPL_DLL OGR_G_GetCurveGeometry(
364 OGRGeometryH hGeom, char **papszOptions) CPL_WARN_UNUSED_RESULT;
365
366 OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges(
367 OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose,
368 double dfTolerance, OGRErr *peErr) CPL_WARN_UNUSED_RESULT;
369
371 OGRErr CPL_DLL
372OGRSetGenerate_DB2_V72_BYTE_ORDER(int bGenerate_DB2_V72_BYTE_ORDER);
373
374 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(void);
377 void CPL_DLL OGRSetNonLinearGeometriesEnabledFlag(int bFlag);
378 int CPL_DLL OGRGetNonLinearGeometriesEnabledFlag(void);
379
381 typedef struct _OGRPreparedGeometry *OGRPreparedGeometryH;
382
383 int CPL_DLL OGRHasPreparedGeometrySupport(void);
384 OGRPreparedGeometryH CPL_DLL OGRCreatePreparedGeometry(OGRGeometryH hGeom);
385 void CPL_DLL OGRDestroyPreparedGeometry(OGRPreparedGeometryH hPreparedGeom);
386 int CPL_DLL OGRPreparedGeometryIntersects(OGRPreparedGeometryH hPreparedGeom,
387 OGRGeometryH hOtherGeom);
388 int CPL_DLL OGRPreparedGeometryContains(OGRPreparedGeometryH hPreparedGeom,
389 OGRGeometryH hOtherGeom);
390
391/* -------------------------------------------------------------------- */
392/* Feature related (ogr_feature.h) */
393/* -------------------------------------------------------------------- */
394
395#ifndef DEFINE_OGRFeatureH
397#define DEFINE_OGRFeatureH
399#ifdef DEBUG
400 typedef struct OGRFieldDefnHS *OGRFieldDefnH;
401 typedef struct OGRFeatureDefnHS *OGRFeatureDefnH;
402 typedef struct OGRFeatureHS *OGRFeatureH;
403 typedef struct OGRStyleTableHS *OGRStyleTableH;
404#else
406 typedef void *OGRFieldDefnH;
408 typedef void *OGRFeatureDefnH;
410 typedef void *OGRFeatureH;
412 typedef void *OGRStyleTableH;
413#endif
415 typedef struct OGRGeomFieldDefnHS *OGRGeomFieldDefnH;
416
418 typedef struct OGRFieldDomainHS *OGRFieldDomainH;
419#endif /* DEFINE_OGRFeatureH */
420
421/* OGRFieldDefn */
422
423 OGRFieldDefnH CPL_DLL OGR_Fld_Create(const char *,
424 OGRFieldType) CPL_WARN_UNUSED_RESULT;
425 void CPL_DLL OGR_Fld_Destroy(OGRFieldDefnH);
426
427 void CPL_DLL OGR_Fld_SetName(OGRFieldDefnH, const char *);
428 const char CPL_DLL *OGR_Fld_GetNameRef(OGRFieldDefnH);
429 void CPL_DLL OGR_Fld_SetAlternativeName(OGRFieldDefnH, const char *);
430 const char CPL_DLL *OGR_Fld_GetAlternativeNameRef(OGRFieldDefnH);
431 OGRFieldType CPL_DLL OGR_Fld_GetType(OGRFieldDefnH);
432 void CPL_DLL OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType);
433 OGRFieldSubType CPL_DLL OGR_Fld_GetSubType(OGRFieldDefnH);
434 void CPL_DLL OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType);
435 OGRJustification CPL_DLL OGR_Fld_GetJustify(OGRFieldDefnH);
436 void CPL_DLL OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification);
437 int CPL_DLL OGR_Fld_GetWidth(OGRFieldDefnH);
438 void CPL_DLL OGR_Fld_SetWidth(OGRFieldDefnH, int);
439 int CPL_DLL OGR_Fld_GetPrecision(OGRFieldDefnH);
440 void CPL_DLL OGR_Fld_SetPrecision(OGRFieldDefnH, int);
441 int CPL_DLL OGR_Fld_GetTZFlag(OGRFieldDefnH);
442 void CPL_DLL OGR_Fld_SetTZFlag(OGRFieldDefnH, int);
443 void CPL_DLL OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int,
444 OGRJustification);
445 int CPL_DLL OGR_Fld_IsIgnored(OGRFieldDefnH hDefn);
446 void CPL_DLL OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int);
447 int CPL_DLL OGR_Fld_IsNullable(OGRFieldDefnH hDefn);
448 void CPL_DLL OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int);
449 int CPL_DLL OGR_Fld_IsUnique(OGRFieldDefnH hDefn);
450 void CPL_DLL OGR_Fld_SetUnique(OGRFieldDefnH hDefn, int);
451 const char CPL_DLL *OGR_Fld_GetDefault(OGRFieldDefnH hDefn);
452 void CPL_DLL OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *);
453 int CPL_DLL OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn);
454 const char CPL_DLL *OGR_Fld_GetDomainName(OGRFieldDefnH hDefn);
455 void CPL_DLL OGR_Fld_SetDomainName(OGRFieldDefnH hDefn, const char *);
456 const char CPL_DLL *OGR_Fld_GetComment(OGRFieldDefnH hDefn);
457 void CPL_DLL OGR_Fld_SetComment(OGRFieldDefnH hDefn, const char *);
458
459 const char CPL_DLL *OGR_GetFieldTypeName(OGRFieldType);
460 const char CPL_DLL *OGR_GetFieldSubTypeName(OGRFieldSubType);
461 int CPL_DLL OGR_AreTypeSubTypeCompatible(OGRFieldType eType,
462 OGRFieldSubType eSubType);
463
464/* OGRGeomFieldDefnH */
465
466 OGRGeomFieldDefnH CPL_DLL OGR_GFld_Create(const char *, OGRwkbGeometryType)
467 CPL_WARN_UNUSED_RESULT;
468 void CPL_DLL OGR_GFld_Destroy(OGRGeomFieldDefnH);
469
470 void CPL_DLL OGR_GFld_SetName(OGRGeomFieldDefnH, const char *);
471 const char CPL_DLL *OGR_GFld_GetNameRef(OGRGeomFieldDefnH);
472
473 OGRwkbGeometryType CPL_DLL OGR_GFld_GetType(OGRGeomFieldDefnH);
474 void CPL_DLL OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType);
475
476 OGRSpatialReferenceH CPL_DLL OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH);
477 void CPL_DLL OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH,
478 OGRSpatialReferenceH hSRS);
479
480 int CPL_DLL OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn);
481 void CPL_DLL OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int);
482
483 int CPL_DLL OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn);
484 void CPL_DLL OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int);
485
486 OGRGeomCoordinatePrecisionH
487 CPL_DLL OGR_GFld_GetCoordinatePrecision(OGRGeomFieldDefnH);
488 void CPL_DLL OGR_GFld_SetCoordinatePrecision(OGRGeomFieldDefnH,
489 OGRGeomCoordinatePrecisionH);
490
491/* OGRFeatureDefn */
492
493 OGRFeatureDefnH CPL_DLL OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT;
494 void CPL_DLL OGR_FD_Destroy(OGRFeatureDefnH);
495 void CPL_DLL OGR_FD_Release(OGRFeatureDefnH);
496 const char CPL_DLL *OGR_FD_GetName(OGRFeatureDefnH);
497 int CPL_DLL OGR_FD_GetFieldCount(OGRFeatureDefnH);
498 OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn(OGRFeatureDefnH, int);
499 int CPL_DLL OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *);
500 void CPL_DLL OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH);
501 OGRErr CPL_DLL OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField);
502 OGRErr CPL_DLL OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn,
503 const int *panMap);
504 OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType(OGRFeatureDefnH);
505 void CPL_DLL OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType);
506 int CPL_DLL OGR_FD_IsGeometryIgnored(OGRFeatureDefnH);
507 void CPL_DLL OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int);
508 int CPL_DLL OGR_FD_IsStyleIgnored(OGRFeatureDefnH);
509 void CPL_DLL OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int);
510 int CPL_DLL OGR_FD_Reference(OGRFeatureDefnH);
511 int CPL_DLL OGR_FD_Dereference(OGRFeatureDefnH);
512 int CPL_DLL OGR_FD_GetReferenceCount(OGRFeatureDefnH);
513
514 int CPL_DLL OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn);
515 OGRGeomFieldDefnH CPL_DLL OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn,
516 int i);
517 int CPL_DLL OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn,
518 const char *pszName);
519
520 void CPL_DLL OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn,
521 OGRGeomFieldDefnH hGFldDefn);
522 OGRErr CPL_DLL OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn,
523 int iGeomField);
524 int CPL_DLL OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn);
525/* OGRFeature */
526
527 OGRFeatureH CPL_DLL OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT;
528 void CPL_DLL OGR_F_Destroy(OGRFeatureH);
529 OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef(OGRFeatureH);
530
531 OGRErr CPL_DLL OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH);
532 OGRErr CPL_DLL OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH);
533 OGRGeometryH CPL_DLL OGR_F_GetGeometryRef(OGRFeatureH);
534 OGRGeometryH CPL_DLL OGR_F_StealGeometry(OGRFeatureH) CPL_WARN_UNUSED_RESULT;
535 OGRGeometryH CPL_DLL OGR_F_StealGeometryEx(OGRFeatureH, int iGeomField)
536 CPL_WARN_UNUSED_RESULT;
537 OGRFeatureH CPL_DLL OGR_F_Clone(OGRFeatureH) CPL_WARN_UNUSED_RESULT;
538 int CPL_DLL OGR_F_Equal(OGRFeatureH, OGRFeatureH);
539
540 int CPL_DLL OGR_F_GetFieldCount(OGRFeatureH);
541 OGRFieldDefnH CPL_DLL OGR_F_GetFieldDefnRef(OGRFeatureH, int);
542 int CPL_DLL OGR_F_GetFieldIndex(OGRFeatureH, const char *);
543
544 int CPL_DLL OGR_F_IsFieldSet(OGRFeatureH, int);
545 void CPL_DLL OGR_F_UnsetField(OGRFeatureH, int);
546
547 int CPL_DLL OGR_F_IsFieldNull(OGRFeatureH, int);
548 int CPL_DLL OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int);
549 void CPL_DLL OGR_F_SetFieldNull(OGRFeatureH, int);
550
551 OGRField CPL_DLL *OGR_F_GetRawFieldRef(OGRFeatureH, int);
552
553 int CPL_DLL OGR_RawField_IsUnset(const OGRField *);
554 int CPL_DLL OGR_RawField_IsNull(const OGRField *);
555 void CPL_DLL OGR_RawField_SetUnset(OGRField *);
556 void CPL_DLL OGR_RawField_SetNull(OGRField *);
557
558 int CPL_DLL OGR_F_GetFieldAsInteger(OGRFeatureH, int);
559 GIntBig CPL_DLL OGR_F_GetFieldAsInteger64(OGRFeatureH, int);
560 double CPL_DLL OGR_F_GetFieldAsDouble(OGRFeatureH, int);
561 const char CPL_DLL *OGR_F_GetFieldAsString(OGRFeatureH, int);
562 const char CPL_DLL *OGR_F_GetFieldAsISO8601DateTime(OGRFeatureH, int,
563 CSLConstList);
564 const int CPL_DLL *OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *);
565 const GIntBig CPL_DLL *OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *);
566 const double CPL_DLL *OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *);
567 char CPL_DLL **OGR_F_GetFieldAsStringList(OGRFeatureH, int);
568 GByte CPL_DLL *OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *);
569 int CPL_DLL OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *,
570 int *, int *, int *, int *);
571 int CPL_DLL OGR_F_GetFieldAsDateTimeEx(OGRFeatureH hFeat, int iField,
572 int *pnYear, int *pnMonth, int *pnDay,
573 int *pnHour, int *pnMinute,
574 float *pfSecond, int *pnTZFlag);
575
576 void CPL_DLL OGR_F_SetFieldInteger(OGRFeatureH, int, int);
577 void CPL_DLL OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig);
578 void CPL_DLL OGR_F_SetFieldDouble(OGRFeatureH, int, double);
579 void CPL_DLL OGR_F_SetFieldString(OGRFeatureH, int, const char *);
580 void CPL_DLL OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *);
581 void CPL_DLL OGR_F_SetFieldInteger64List(OGRFeatureH, int, int,
582 const GIntBig *);
583 void CPL_DLL OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *);
584 void CPL_DLL OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList);
585 void CPL_DLL OGR_F_SetFieldRaw(OGRFeatureH, int, const OGRField *);
586 void CPL_DLL OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *);
587 void CPL_DLL OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int,
588 int, int);
589 void CPL_DLL OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int,
590 float, int);
591
592 int CPL_DLL OGR_F_GetGeomFieldCount(OGRFeatureH hFeat);
593 OGRGeomFieldDefnH CPL_DLL OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat,
594 int iField);
595 int CPL_DLL OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName);
596
597 OGRGeometryH CPL_DLL OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField);
598 OGRErr CPL_DLL OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField,
599 OGRGeometryH hGeom);
600 OGRErr CPL_DLL OGR_F_SetGeomField(OGRFeatureH hFeat, int iField,
601 OGRGeometryH hGeom);
602
603 GIntBig CPL_DLL OGR_F_GetFID(OGRFeatureH);
604 OGRErr CPL_DLL OGR_F_SetFID(OGRFeatureH, GIntBig);
605 void CPL_DLL OGR_F_DumpReadable(OGRFeatureH, FILE *);
606 char CPL_DLL *OGR_F_DumpReadableAsString(OGRFeatureH,
607 CSLConstList) CPL_WARN_UNUSED_RESULT;
608 OGRErr CPL_DLL OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int);
609 OGRErr CPL_DLL OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *);
610
611 const char CPL_DLL *OGR_F_GetStyleString(OGRFeatureH);
612 void CPL_DLL OGR_F_SetStyleString(OGRFeatureH, const char *);
613 void CPL_DLL OGR_F_SetStyleStringDirectly(OGRFeatureH, char *);
615 OGRStyleTableH CPL_DLL OGR_F_GetStyleTable(OGRFeatureH);
617 void CPL_DLL OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH);
619 void CPL_DLL OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH);
620
621 const char CPL_DLL *OGR_F_GetNativeData(OGRFeatureH);
622 void CPL_DLL OGR_F_SetNativeData(OGRFeatureH, const char *);
623 const char CPL_DLL *OGR_F_GetNativeMediaType(OGRFeatureH);
624 void CPL_DLL OGR_F_SetNativeMediaType(OGRFeatureH, const char *);
625
626 void CPL_DLL OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly,
627 char **papszOptions);
628 int CPL_DLL OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError);
629
630/* OGRFieldDomain */
631
632 void CPL_DLL OGR_FldDomain_Destroy(OGRFieldDomainH);
633 const char CPL_DLL *OGR_FldDomain_GetName(OGRFieldDomainH);
634 const char CPL_DLL *OGR_FldDomain_GetDescription(OGRFieldDomainH);
635 OGRFieldDomainType CPL_DLL OGR_FldDomain_GetDomainType(OGRFieldDomainH);
636 OGRFieldType CPL_DLL OGR_FldDomain_GetFieldType(OGRFieldDomainH);
637 OGRFieldSubType CPL_DLL OGR_FldDomain_GetFieldSubType(OGRFieldDomainH);
638 OGRFieldDomainSplitPolicy CPL_DLL OGR_FldDomain_GetSplitPolicy(OGRFieldDomainH);
639 void CPL_DLL OGR_FldDomain_SetSplitPolicy(OGRFieldDomainH,
640 OGRFieldDomainSplitPolicy);
641 OGRFieldDomainMergePolicy CPL_DLL OGR_FldDomain_GetMergePolicy(OGRFieldDomainH);
642 void CPL_DLL OGR_FldDomain_SetMergePolicy(OGRFieldDomainH,
643 OGRFieldDomainMergePolicy);
644
645 OGRFieldDomainH CPL_DLL OGR_CodedFldDomain_Create(
646 const char *pszName, const char *pszDescription, OGRFieldType eFieldType,
647 OGRFieldSubType eFieldSubType, const OGRCodedValue *enumeration);
648 const OGRCodedValue CPL_DLL *OGR_CodedFldDomain_GetEnumeration(OGRFieldDomainH);
649
650 OGRFieldDomainH CPL_DLL OGR_RangeFldDomain_Create(
651 const char *pszName, const char *pszDescription, OGRFieldType eFieldType,
652 OGRFieldSubType eFieldSubType, const OGRField *psMin, bool bMinIsInclusive,
653 const OGRField *psMax, bool bMaxIsInclusive);
654 const OGRField CPL_DLL *OGR_RangeFldDomain_GetMin(OGRFieldDomainH,
655 bool *pbIsInclusiveOut);
656 const OGRField CPL_DLL *OGR_RangeFldDomain_GetMax(OGRFieldDomainH,
657 bool *pbIsInclusiveOut);
658
659 OGRFieldDomainH CPL_DLL OGR_GlobFldDomain_Create(const char *pszName,
660 const char *pszDescription,
661 OGRFieldType eFieldType,
662 OGRFieldSubType eFieldSubType,
663 const char *pszGlob);
664 const char CPL_DLL *OGR_GlobFldDomain_GetGlob(OGRFieldDomainH);
665
666/* -------------------------------------------------------------------- */
667/* ogrsf_frmts.h */
668/* -------------------------------------------------------------------- */
669
670#ifdef DEBUG
671 typedef struct OGRLayerHS *OGRLayerH;
672 typedef struct OGRDataSourceHS *OGRDataSourceH;
673 typedef struct OGRDriverHS *OGRSFDriverH;
674#else
676 typedef void *OGRLayerH;
678 typedef void *OGRDataSourceH;
680 typedef void *OGRSFDriverH;
681#endif
682
683/* OGRLayer */
684
685 const char CPL_DLL *OGR_L_GetName(OGRLayerH);
686 OGRwkbGeometryType CPL_DLL OGR_L_GetGeomType(OGRLayerH);
687
688/* Defined in gdal.h to avoid circular dependency with ogr_api.h */
689/* GDALDatasetH CPL_DLL OGR_L_GetDataset(OGRLayerH hLayer); */
690
692 typedef struct
693{
695 OGRwkbGeometryType eGeomType;
697 int64_t nCount;
698} OGRGeometryTypeCounter;
699
702#define OGR_GGT_COUNT_NOT_NEEDED 0x1
705#define OGR_GGT_STOP_IF_MIXED 0x2
708#define OGR_GGT_GEOMCOLLECTIONZ_TINZ 0x4
709 OGRGeometryTypeCounter CPL_DLL *
710 OGR_L_GetGeometryTypes(OGRLayerH hLayer, int iGeomField, int nFlags,
711 int *pnEntryCount, GDALProgressFunc pfnProgress,
712 void *pProgressData);
713
714 OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter(OGRLayerH);
715 void CPL_DLL OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH);
716 void CPL_DLL OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double,
717 double);
718 void CPL_DLL OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField,
719 OGRGeometryH hGeom);
720 void CPL_DLL OGR_L_SetSpatialFilterRectEx(OGRLayerH, int iGeomField,
721 double dfMinX, double dfMinY,
722 double dfMaxX, double dfMaxY);
723 OGRErr CPL_DLL OGR_L_SetAttributeFilter(OGRLayerH, const char *);
724 void CPL_DLL OGR_L_ResetReading(OGRLayerH);
725 OGRFeatureH CPL_DLL OGR_L_GetNextFeature(OGRLayerH) CPL_WARN_UNUSED_RESULT;
726
753#define OGR_FOR_EACH_FEATURE_BEGIN(hFeat, hLayer) \
754 { \
755 OGRFeatureH hFeat = CPL_NULLPTR; \
756 OGR_L_ResetReading(hLayer); \
757 while (true) \
758 { \
759 if (hFeat) \
760 OGR_F_Destroy(hFeat); \
761 hFeat = OGR_L_GetNextFeature(hLayer); \
762 if (!hFeat) \
763 break;
764
766#define OGR_FOR_EACH_FEATURE_END(hFeat) \
767 } \
768 OGR_F_Destroy(hFeat); \
769 }
770
773 struct ArrowArrayStream;
774
775 bool CPL_DLL OGR_L_GetArrowStream(OGRLayerH hLayer,
776 struct ArrowArrayStream *out_stream,
777 char **papszOptions);
778
781 struct ArrowSchema;
782
783 bool CPL_DLL OGR_L_IsArrowSchemaSupported(OGRLayerH hLayer,
784 const struct ArrowSchema *schema,
785 char **papszOptions,
786 char **ppszErrorMsg);
787 bool CPL_DLL OGR_L_CreateFieldFromArrowSchema(OGRLayerH hLayer,
788 const struct ArrowSchema *schema,
789 char **papszOptions);
790
793 struct ArrowArray;
794
795 bool CPL_DLL OGR_L_WriteArrowBatch(OGRLayerH hLayer,
796 const struct ArrowSchema *schema,
797 struct ArrowArray *array,
798 char **papszOptions);
799
800 OGRErr CPL_DLL OGR_L_SetNextByIndex(OGRLayerH, GIntBig);
801 OGRFeatureH CPL_DLL OGR_L_GetFeature(OGRLayerH, GIntBig) CPL_WARN_UNUSED_RESULT;
802 OGRErr CPL_DLL OGR_L_SetFeature(OGRLayerH, OGRFeatureH) CPL_WARN_UNUSED_RESULT;
803 OGRErr CPL_DLL OGR_L_CreateFeature(OGRLayerH,
804 OGRFeatureH) CPL_WARN_UNUSED_RESULT;
805 OGRErr CPL_DLL OGR_L_DeleteFeature(OGRLayerH, GIntBig) CPL_WARN_UNUSED_RESULT;
806 OGRErr CPL_DLL OGR_L_UpsertFeature(OGRLayerH,
807 OGRFeatureH) CPL_WARN_UNUSED_RESULT;
808 OGRErr CPL_DLL
809 OGR_L_UpdateFeature(OGRLayerH, OGRFeatureH, int nUpdatedFieldsCount,
810 const int *panUpdatedFieldsIdx, int nUpdatedGeomFieldsCount,
811 const int *panUpdatedGeomFieldsIdx,
812 bool bUpdateStyleString) CPL_WARN_UNUSED_RESULT;
813 OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn(OGRLayerH);
814 OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef(OGRLayerH);
815 OGRSpatialReferenceH CPL_DLL *
816 OGR_L_GetSupportedSRSList(OGRLayerH hLayer, int iGeomField, int *pnCount);
817 OGRErr CPL_DLL OGR_L_SetActiveSRS(OGRLayerH hLayer, int iGeomField,
818 OGRSpatialReferenceH hSRS);
819 int CPL_DLL OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch);
820 GIntBig CPL_DLL OGR_L_GetFeatureCount(OGRLayerH, int);
821 OGRErr CPL_DLL OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int);
822 OGRErr CPL_DLL OGR_L_GetExtentEx(OGRLayerH, int iGeomField,
823 OGREnvelope *psExtent, int bForce);
824 OGRErr CPL_DLL OGR_L_GetExtent3D(OGRLayerH hLayer, int iGeomField,
825 OGREnvelope3D *psExtent3D, int bForce);
826 int CPL_DLL OGR_L_TestCapability(OGRLayerH, const char *);
827 OGRErr CPL_DLL OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int);
828 OGRErr CPL_DLL OGR_L_CreateGeomField(OGRLayerH hLayer,
829 OGRGeomFieldDefnH hFieldDefn, int bForce);
830 OGRErr CPL_DLL OGR_L_DeleteField(OGRLayerH, int iField);
831 OGRErr CPL_DLL OGR_L_ReorderFields(OGRLayerH, int *panMap);
832 OGRErr CPL_DLL OGR_L_ReorderField(OGRLayerH, int iOldFieldPos,
833 int iNewFieldPos);
834 OGRErr CPL_DLL OGR_L_AlterFieldDefn(OGRLayerH, int iField,
835 OGRFieldDefnH hNewFieldDefn, int nFlags);
836 OGRErr CPL_DLL OGR_L_AlterGeomFieldDefn(OGRLayerH, int iField,
837 OGRGeomFieldDefnH hNewGeomFieldDefn,
838 int nFlags);
839 OGRErr CPL_DLL OGR_L_StartTransaction(OGRLayerH) CPL_WARN_UNUSED_RESULT;
840 OGRErr CPL_DLL OGR_L_CommitTransaction(OGRLayerH) CPL_WARN_UNUSED_RESULT;
841 OGRErr CPL_DLL OGR_L_RollbackTransaction(OGRLayerH);
842 OGRErr CPL_DLL OGR_L_Rename(OGRLayerH hLayer, const char *pszNewName);
843
845 int CPL_DLL OGR_L_Reference(OGRLayerH);
846 int CPL_DLL OGR_L_Dereference(OGRLayerH);
847 int CPL_DLL OGR_L_GetRefCount(OGRLayerH);
849 OGRErr CPL_DLL OGR_L_SyncToDisk(OGRLayerH);
851 GIntBig CPL_DLL OGR_L_GetFeaturesRead(OGRLayerH);
853 const char CPL_DLL *OGR_L_GetFIDColumn(OGRLayerH);
854 const char CPL_DLL *OGR_L_GetGeometryColumn(OGRLayerH);
856 OGRStyleTableH CPL_DLL OGR_L_GetStyleTable(OGRLayerH);
858 void CPL_DLL OGR_L_SetStyleTableDirectly(OGRLayerH, OGRStyleTableH);
860 void CPL_DLL OGR_L_SetStyleTable(OGRLayerH, OGRStyleTableH);
861 OGRErr CPL_DLL OGR_L_SetIgnoredFields(OGRLayerH, const char **);
862 OGRErr CPL_DLL OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **,
863 GDALProgressFunc, void *);
864 OGRErr CPL_DLL OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **,
865 GDALProgressFunc, void *);
866 OGRErr CPL_DLL OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **,
867 GDALProgressFunc, void *);
868 OGRErr CPL_DLL OGR_L_Identity(OGRLayerH, OGRLayerH, OGRLayerH, char **,
869 GDALProgressFunc, void *);
870 OGRErr CPL_DLL OGR_L_Update(OGRLayerH, OGRLayerH, OGRLayerH, char **,
871 GDALProgressFunc, void *);
872 OGRErr CPL_DLL OGR_L_Clip(OGRLayerH, OGRLayerH, OGRLayerH, char **,
873 GDALProgressFunc, void *);
874 OGRErr CPL_DLL OGR_L_Erase(OGRLayerH, OGRLayerH, OGRLayerH, char **,
875 GDALProgressFunc, void *);
876
877/* OGRDataSource */
878
879 void CPL_DLL OGR_DS_Destroy(OGRDataSourceH);
880 const char CPL_DLL *OGR_DS_GetName(OGRDataSourceH);
881 int CPL_DLL OGR_DS_GetLayerCount(OGRDataSourceH);
882 OGRLayerH CPL_DLL OGR_DS_GetLayer(OGRDataSourceH, int);
883 OGRLayerH CPL_DLL OGR_DS_GetLayerByName(OGRDataSourceH, const char *);
884 OGRErr CPL_DLL OGR_DS_DeleteLayer(OGRDataSourceH, int);
885 OGRSFDriverH CPL_DLL OGR_DS_GetDriver(OGRDataSourceH);
886 OGRLayerH CPL_DLL OGR_DS_CreateLayer(OGRDataSourceH, const char *,
887 OGRSpatialReferenceH, OGRwkbGeometryType,
888 char **);
889 OGRLayerH CPL_DLL OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *,
890 char **);
891 int CPL_DLL OGR_DS_TestCapability(OGRDataSourceH, const char *);
892 OGRLayerH CPL_DLL OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH,
893 const char *);
894 void CPL_DLL OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH);
896 int CPL_DLL OGR_DS_Reference(OGRDataSourceH);
897 int CPL_DLL OGR_DS_Dereference(OGRDataSourceH);
898 int CPL_DLL OGR_DS_GetRefCount(OGRDataSourceH);
899 int CPL_DLL OGR_DS_GetSummaryRefCount(OGRDataSourceH);
902 OGRErr CPL_DLL OGR_DS_SyncToDisk(OGRDataSourceH);
904 OGRStyleTableH CPL_DLL OGR_DS_GetStyleTable(OGRDataSourceH);
906 void CPL_DLL OGR_DS_SetStyleTableDirectly(OGRDataSourceH, OGRStyleTableH);
908 void CPL_DLL OGR_DS_SetStyleTable(OGRDataSourceH, OGRStyleTableH);
909
910/* OGRSFDriver */
911
912 const char CPL_DLL *OGR_Dr_GetName(OGRSFDriverH);
913 OGRDataSourceH CPL_DLL OGR_Dr_Open(OGRSFDriverH, const char *,
914 int) CPL_WARN_UNUSED_RESULT;
915 int CPL_DLL OGR_Dr_TestCapability(OGRSFDriverH, const char *);
916 OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource(OGRSFDriverH, const char *,
917 char **) CPL_WARN_UNUSED_RESULT;
918 OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource(OGRSFDriverH, OGRDataSourceH,
919 const char *,
920 char **) CPL_WARN_UNUSED_RESULT;
921 OGRErr CPL_DLL OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *);
922
923/* OGRSFDriverRegistrar */
924
925 OGRDataSourceH CPL_DLL OGROpen(const char *, int,
926 OGRSFDriverH *) CPL_WARN_UNUSED_RESULT;
927 OGRDataSourceH CPL_DLL OGROpenShared(const char *, int,
928 OGRSFDriverH *) CPL_WARN_UNUSED_RESULT;
929 OGRErr CPL_DLL OGRReleaseDataSource(OGRDataSourceH);
931 void CPL_DLL OGRRegisterDriver(OGRSFDriverH);
932 void CPL_DLL OGRDeregisterDriver(OGRSFDriverH);
934 int CPL_DLL OGRGetDriverCount(void);
935 OGRSFDriverH CPL_DLL OGRGetDriver(int);
936 OGRSFDriverH CPL_DLL OGRGetDriverByName(const char *);
938 int CPL_DLL OGRGetOpenDSCount(void);
939 OGRDataSourceH CPL_DLL OGRGetOpenDS(int iDS);
942 void CPL_DLL OGRRegisterAll(void);
943
946 void CPL_DLL OGRCleanupAll(void);
947
948/* -------------------------------------------------------------------- */
949/* ogrsf_featurestyle.h */
950/* -------------------------------------------------------------------- */
951
952#ifdef DEBUG
953 typedef struct OGRStyleMgrHS *OGRStyleMgrH;
954 typedef struct OGRStyleToolHS *OGRStyleToolH;
955#else
957 typedef void *OGRStyleMgrH;
959 typedef void *OGRStyleToolH;
960#endif
961
962/* OGRStyleMgr */
963
964 OGRStyleMgrH CPL_DLL OGR_SM_Create(OGRStyleTableH hStyleTable)
965 CPL_WARN_UNUSED_RESULT;
966 void CPL_DLL OGR_SM_Destroy(OGRStyleMgrH hSM);
967
968 const char CPL_DLL *OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat);
969 int CPL_DLL OGR_SM_InitStyleString(OGRStyleMgrH hSM,
970 const char *pszStyleString);
971 int CPL_DLL OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString);
972 OGRStyleToolH CPL_DLL OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId,
973 const char *pszStyleString);
974 int CPL_DLL OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST);
975 int CPL_DLL OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName,
976 const char *pszStyleString);
977
978/* OGRStyleTool */
979
980 OGRStyleToolH CPL_DLL OGR_ST_Create(OGRSTClassId eClassId)
981 CPL_WARN_UNUSED_RESULT;
982 void CPL_DLL OGR_ST_Destroy(OGRStyleToolH hST);
983
984 OGRSTClassId CPL_DLL OGR_ST_GetType(OGRStyleToolH hST);
985
986 OGRSTUnitId CPL_DLL OGR_ST_GetUnit(OGRStyleToolH hST);
987 void CPL_DLL OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit,
988 double dfGroundPaperScale);
989
990 const char CPL_DLL *OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam,
991 int *bValueIsNull);
992 int CPL_DLL OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam,
993 int *bValueIsNull);
994 double CPL_DLL OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam,
995 int *bValueIsNull);
996 void CPL_DLL OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam,
997 const char *pszValue);
998 void CPL_DLL OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue);
999 void CPL_DLL OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue);
1000 const char CPL_DLL *OGR_ST_GetStyleString(OGRStyleToolH hST);
1001
1002 int CPL_DLL OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor,
1003 int *pnRed, int *pnGreen, int *pnBlue,
1004 int *pnAlpha);
1005
1006/* OGRStyleTable */
1007
1008 OGRStyleTableH CPL_DLL OGR_STBL_Create(void) CPL_WARN_UNUSED_RESULT;
1009 void CPL_DLL OGR_STBL_Destroy(OGRStyleTableH hSTBL);
1010 int CPL_DLL OGR_STBL_AddStyle(OGRStyleTableH hStyleTable, const char *pszName,
1011 const char *pszStyleString);
1012 int CPL_DLL OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable,
1013 const char *pszFilename);
1014 int CPL_DLL OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable,
1015 const char *pszFilename);
1016 const char CPL_DLL *OGR_STBL_Find(OGRStyleTableH hStyleTable,
1017 const char *pszName);
1018 void CPL_DLL OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable);
1019 const char CPL_DLL *OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable);
1020 const char CPL_DLL *OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable);
1021
1022 CPL_C_END
1023
1024#endif /* ndef OGR_API_H_INCLUDED */
OGREnvelope3D
Simple container for a bounding region in 3D.
Definition: ogr_core.h:200
OGREnvelope
Simple container for a bounding region (rectangle)
Definition: ogr_core.h:45
cpl_minixml.h
Definitions for CPL mini XML Parser/Serializer.
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:283
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:279
CSLConstList
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1179
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:964
GByte
unsigned char GByte
Unsigned byte type.
Definition: cpl_port.h:169
GIntBig
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:199
OGR_L_SetSpatialFilterEx
void OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField, OGRGeometryH hGeom)
Set a new spatial filter.
Definition: ogrlayer.cpp:1529
OGR_F_SetGeomFieldDirectly
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:971
OGR_L_SymDifference
OGRErr OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Symmetrical difference of two layers.
Definition: ogrlayer.cpp:3925
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:1060
OGR_DS_SetStyleTable
void OGR_DS_SetStyleTable(OGRDataSourceH, OGRStyleTableH)
Set style table.
Definition: ogrdatasource.cpp:353
OGR_DS_GetLayer
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition: ogrdatasource.cpp:264
OGR_G_Simplify
OGRGeometryH OGR_G_Simplify(OGRGeometryH hThis, double tolerance)
Compute a simplified geometry.
Definition: ogrgeometry.cpp:6373
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:1848
OGR_FldDomain_GetDomainType
OGRFieldDomainType OGR_FldDomain_GetDomainType(OGRFieldDomainH)
Get the type of the field domain.
Definition: ogrfielddefn.cpp:2472
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_api.h:67
OGR_GFld_GetCoordinatePrecision
OGRGeomCoordinatePrecisionH OGR_GFld_GetCoordinatePrecision(OGRGeomFieldDefnH)
Return the coordinate precision associated to this geometry field.
Definition: ogrgeomfielddefn.cpp:753
OGR_FD_Release
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:141
OGR_G_Overlaps
int OGR_G_Overlaps(OGRGeometryH, OGRGeometryH)
Test for overlap.
Definition: ogrgeometry.cpp:5991
OGR_L_GetFeatureCount
GIntBig OGR_L_GetFeatureCount(OGRLayerH, int)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:179
OGR_F_SetFieldNull
void OGR_F_SetFieldNull(OGRFeatureH, int)
Clear a field, marking it as null.
Definition: ogrfeature.cpp:1825
OGRwkbExportOptionsDestroy
void OGRwkbExportOptionsDestroy(OGRwkbExportOptions *)
Destroy object returned by OGRwkbExportOptionsCreate()
Definition: ogrgeometry.cpp:8468
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_ST_GetStyleString
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition: ogrfeaturestyle.cpp:2550
OGR_L_GetGeomType
OGRwkbGeometryType OGR_L_GetGeomType(OGRLayerH)
Return the layer geometry type.
Definition: ogrlayer.cpp:2210
OGR_FD_GetGeomFieldCount
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:627
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:426
OGR_Fld_GetJustify
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:1007
OGR_F_Create
OGRFeatureH OGR_F_Create(OGRFeatureDefnH)
Feature factory.
Definition: ogrfeature.cpp:117
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:2014
OGR_F_GetFieldAsInteger64
GIntBig OGR_F_GetFieldAsInteger64(OGRFeatureH, int)
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:2209
OGR_FldDomain_SetSplitPolicy
void OGR_FldDomain_SetSplitPolicy(OGRFieldDomainH, OGRFieldDomainSplitPolicy)
Set the split policy of the field domain.
Definition: ogrfielddefn.cpp:2543
OGR_GFld_Destroy
void OGR_GFld_Destroy(OGRGeomFieldDefnH)
Destroy a geometry field definition.
Definition: ogrgeomfielddefn.cpp:137
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:5307
OGR_FD_Dereference
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1157
OGR_F_GetGeomFieldDefnRef
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1422
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:1084
OGR_Fld_GetPrecision
int OGR_Fld_GetPrecision(OGRFieldDefnH)
Get the formatting precision for this field.
Definition: ogrfielddefn.cpp:1163
OGROpen
OGRDataSourceH OGROpen(const char *, int, OGRSFDriverH *)
Open a file / data source with one of the registered drivers.
OGR_F_GetDefnRef
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition: ogrfeature.cpp:420
OGR_Fld_SetPrecision
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:1219
OGR_DS_SyncToDisk
OGRErr OGR_DS_SyncToDisk(OGRDataSourceH)
Flush pending changes to disk.
Definition: ogrdatasource.cpp:297
OGR_G_Set3D
void OGR_G_Set3D(OGRGeometryH, int)
Add or remove the Z coordinate dimension.
Definition: ogrgeometry.cpp:1178
OGRGeomCoordinatePrecisionGetZResolution
double OGRGeomCoordinatePrecisionGetZResolution(OGRGeomCoordinatePrecisionH)
Get the Z resolution of a OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:84
OGRGeometryH
void * OGRGeometryH
Opaque type for a geometry.
Definition: ogr_api.h:50
OGR_Fld_SetAlternativeName
void OGR_Fld_SetAlternativeName(OGRFieldDefnH, const char *)
Reset the alternative name (or "alias") for this field.
Definition: ogrfielddefn.cpp:299
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:1204
OGR_F_Destroy
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:211
OGR_G_Clone
OGRGeometryH OGR_G_Clone(OGRGeometryH)
Make a copy of this object.
Definition: ogrgeometry.cpp:2125
OGR_FD_SetGeometryIgnored
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1382
OGR_F_GetGeometryRef
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch a handle to feature geometry.
Definition: ogrfeature.cpp:754
OGR_F_SetFieldInteger64
void OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig)
Set field to 64 bit integer value.
Definition: ogrfeature.cpp:3931
OGR_Fld_SetWidth
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:1127
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:275
OGR_FD_GetFieldIndex
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1278
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:1297
OGR_FD_DeleteGeomFieldDefn
OGRErr OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn, int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:883
OGR_FD_GetName
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:243
OGR_GetFieldTypeName
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:879
OGR_GFld_GetNameRef
const char * OGR_GFld_GetNameRef(OGRGeomFieldDefnH)
Fetch name of this field.
Definition: ogrgeomfielddefn.cpp:241
OGRwkbExportOptionsCreate
OGRwkbExportOptions * OGRwkbExportOptionsCreate(void)
Create geometry WKB export options.
Definition: ogrgeometry.cpp:8452
OGR_G_GetCurveGeometry
OGRGeometryH OGR_G_GetCurveGeometry(OGRGeometryH hGeom, char **papszOptions)
Return curve version of this geometry.
Definition: ogr_api.cpp:1970
OGR_G_ExportToGML
char * OGR_G_ExportToGML(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1189
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:65
OGR_G_Centroid
int OGR_G_Centroid(OGRGeometryH, OGRGeometryH)
Compute the geometry centroid.
Definition: ogrgeometry.cpp:6170
OGR_L_SetActiveSRS
OGRErr OGR_L_SetActiveSRS(OGRLayerH hLayer, int iGeomField, OGRSpatialReferenceH hSRS)
Change the active SRS.
Definition: ogrlayer.cpp:5752
OGR_F_GetFieldAsBinary
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:3279
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:1162
OGR_Fld_IsIgnored
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1434
OGR_L_GetFeature
OGRFeatureH OGR_L_GetFeature(OGRLayerH, GIntBig)
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:565
OGR_FD_AddFieldDefn
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:441
OGR_G_Area
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:1724
OGR_F_SetStyleTableDirectly
void OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH)
Set style table and take ownership.
Definition: ogrfeature.cpp:6940
OGR_G_SymDifference
OGRGeometryH OGR_G_SymDifference(OGRGeometryH, OGRGeometryH)
Compute symmetric difference.
Definition: ogrgeometry.cpp:5500
OGR_G_UnionCascaded
OGRGeometryH OGR_G_UnionCascaded(OGRGeometryH)
Compute union using cascading.
Definition: ogrgeometry.cpp:5157
OGR_FldDomain_GetDescription
const char * OGR_FldDomain_GetDescription(OGRFieldDomainH)
Get the description of the field domain.
Definition: ogrfielddefn.cpp:2455
OGR_L_CreateFeature
OGRErr OGR_L_CreateFeature(OGRLayerH, OGRFeatureH)
Create and write a new feature within a layer.
Definition: ogrlayer.cpp:788
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:876
OGRSetNonLinearGeometriesEnabledFlag
void OGRSetNonLinearGeometriesEnabledFlag(int bFlag)
Set flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:2041
OGR_GFld_GetType
OGRwkbGeometryType OGR_GFld_GetType(OGRGeomFieldDefnH)
Fetch geometry type of this field.
Definition: ogrgeomfielddefn.cpp:284
OGR_G_ConcaveHull
OGRGeometryH OGR_G_ConcaveHull(OGRGeometryH, double dfRatio, bool bAllowHoles)
Compute "concave hull" of a geometry.
Definition: ogrgeometry.cpp:4332
OGR_F_SetFieldBinary
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *)
Set field to binary data.
Definition: ogrfeature.cpp:5163
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:209
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:426
OGR_F_SetFieldStringList
void OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList)
Set field to list of strings value.
Definition: ogrfeature.cpp:5077
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:551
OGR_L_GetSpatialFilter
OGRGeometryH OGR_L_GetSpatialFilter(OGRLayerH)
This function returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:1413
OGRwkbExportOptionsSetByteOrder
void OGRwkbExportOptionsSetByteOrder(OGRwkbExportOptions *, OGRwkbByteOrder)
Set the WKB byte order.
Definition: ogrgeometry.cpp:8486
OGR_F_GetGeomFieldRef
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch a handle to feature geometry.
Definition: ogrfeature.cpp:881
OGR_G_CreateGeometryFromEsriJson
OGRGeometryH OGR_G_CreateGeometryFromEsriJson(const char *)
Create a OGR geometry from a ESRI JSON geometry object.
OGR_G_Buffer
OGRGeometryH OGR_G_Buffer(OGRGeometryH, double dfDist, int nQuadSegs)
Compute buffer of geometry.
Definition: ogrgeometry.cpp:4556
OGR_G_WkbSizeEx
size_t OGR_G_WkbSizeEx(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:1376
OGR_FldDomain_GetMergePolicy
OGRFieldDomainMergePolicy OGR_FldDomain_GetMergePolicy(OGRFieldDomainH)
Get the merge policy of the field domain.
Definition: ogrfielddefn.cpp:2563
OGR_GlobFldDomain_Create
OGRFieldDomainH OGR_GlobFldDomain_Create(const char *pszName, const char *pszDescription, OGRFieldType eFieldType, OGRFieldSubType eFieldSubType, const char *pszGlob)
Creates a new glob field domain.
Definition: ogrfielddefn.cpp:2413
OGR_G_MakeValidEx
OGRGeometryH OGR_G_MakeValidEx(OGRGeometryH, CSLConstList)
Attempts to make an invalid geometry valid without losing vertices.
Definition: ogrgeometry.cpp:4042
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:439
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:2637
OGR_FldDomain_GetName
const char * OGR_FldDomain_GetName(OGRFieldDomainH)
Get the name of the field domain.
Definition: ogrfielddefn.cpp:2438
OGR_G_ExportToWkt
OGRErr OGR_G_ExportToWkt(OGRGeometryH, char **)
Convert a geometry into well known text format.
Definition: ogrgeometry.cpp:1981
OGR_G_IsSimple
int OGR_G_IsSimple(OGRGeometryH)
Returns TRUE if the geometry is simple.
Definition: ogrgeometry.cpp:2423
OGR_Fld_GetSubType
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH)
Fetch subtype of this field.
Definition: ogrfielddefn.cpp:496
OGR_AreTypeSubTypeCompatible
int OGR_AreTypeSubTypeCompatible(OGRFieldType eType, OGRFieldSubType eSubType)
Return if type and subtype are compatible.
Definition: ogrfielddefn.cpp:962
OGRGeomCoordinatePrecisionH
struct OGRGeomCoordinatePrecision * OGRGeomCoordinatePrecisionH
Opaque type for OGRGeomCoordinatePrecision.
Definition: ogr_api.h:81
OGRGetDriver
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
OGR_L_SetAttributeFilter
OGRErr OGR_L_SetAttributeFilter(OGRLayerH, const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:511
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:104
OGR_G_ImportFromWkt
OGRErr OGR_G_ImportFromWkt(OGRGeometryH, char **)
Assign geometry from well known text data.
Definition: ogrgeometry.cpp:1756
OGR_Fld_GetNameRef
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:212
OGR_G_TransformTo
OGRErr OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH)
Transform geometry to new spatial reference system.
Definition: ogrgeometry.cpp:722
OGRwkbExportOptionsSetPrecision
void OGRwkbExportOptionsSetPrecision(OGRwkbExportOptions *, OGRGeomCoordinatePrecisionH)
Set precision options.
Definition: ogrgeometry.cpp:8523
OGR_Fld_Destroy
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:120
OGR_SM_Destroy
void OGR_SM_Destroy(OGRStyleMgrH hSM)
Destroy Style Manager.
Definition: ogrfeaturestyle.cpp:162
OGR_Fld_SetDomainName
void OGR_Fld_SetDomainName(OGRFieldDefnH hDefn, const char *)
Set the name of the field domain for this field.
Definition: ogrfielddefn.cpp:1823
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_L_TestCapability
int OGR_L_TestCapability(OGRLayerH, const char *)
Test if this layer supported the named capability.
Definition: ogrlayer.cpp:1385
OGR_DS_Destroy
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition: ogrdatasource.cpp:43
OGR_FD_GetFieldDefn
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:361
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:1601
OGR_G_Difference
OGRGeometryH OGR_G_Difference(OGRGeometryH, OGRGeometryH)
Compute difference.
Definition: ogrgeometry.cpp:5376
OGR_G_GetM
double OGR_G_GetM(OGRGeometryH, int)
Fetch the m coordinate of a point from a geometry.
Definition: ogr_api.cpp:307
OGR_G_AddGeometry
OGRErr OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH)
Add a geometry to a geometry container.
Definition: ogr_api.cpp:1425
OGRGeomCoordinatePrecisionSetFormatSpecificOptions
void OGRGeomCoordinatePrecisionSetFormatSpecificOptions(OGRGeomCoordinatePrecisionH, const char *pszFormatName, CSLConstList papszOptions)
Set format specific coordinate precision options.
Definition: ogrgeomcoordinateprecision.cpp:183
OGR_Fld_IsDefaultDriverSpecific
int OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn)
Returns whether the default value is driver specific.
Definition: ogrfielddefn.cpp:797
OGR_G_SwapXY
void OGR_G_SwapXY(OGRGeometryH hGeom)
Swap x and y coordinates.
Definition: ogrgeometry.cpp:6877
OGR_L_ReorderFields
OGRErr OGR_L_ReorderFields(OGRLayerH, int *panMap)
Reorder all the fields of a layer.
Definition: ogrlayer.cpp:1025
OGR_Dr_DeleteDataSource
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
OGR_G_IsValid
int OGR_G_IsValid(OGRGeometryH)
Test if the geometry is valid.
Definition: ogrgeometry.cpp:2353
OGR_G_AssignSpatialReference
void OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:511
OGR_G_MakeValid
OGRGeometryH OGR_G_MakeValid(OGRGeometryH)
Attempts to make an invalid geometry valid without losing vertices.
Definition: ogrgeometry.cpp:4012
OGR_G_CreateGeometry
OGRGeometryH OGR_G_CreateGeometry(OGRwkbGeometryType)
Create an empty geometry of desired type.
Definition: ogrgeometryfactory.cpp:645
OGR_G_ForceTo
OGRGeometryH OGR_G_ForceTo(OGRGeometryH hGeom, OGRwkbGeometryType eTargetType, char **papszOptions)
Convert to another geometry type.
Definition: ogrgeometryfactory.cpp:5065
OGR_G_SetPointCount
void OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount)
Set number of points in a geometry.
Definition: ogr_api.cpp:135
OGR_RangeFldDomain_GetMin
const OGRField * OGR_RangeFldDomain_GetMin(OGRFieldDomainH, bool *pbIsInclusiveOut)
Get the minimum value.
Definition: ogrfielddefn.cpp:2637
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:632
OGRStyleMgrH
void * OGRStyleMgrH
Style manager opaque type.
Definition: ogr_api.h:957
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:1932
OGR_F_SetFieldRaw
void OGR_F_SetFieldRaw(OGRFeatureH, int, const OGRField *)
Set field.
Definition: ogrfeature.cpp:5602
OGR_F_GetGeomFieldIndex
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogrfeature.cpp:1472
OGR_G_RemoveGeometry
OGRErr OGR_G_RemoveGeometry(OGRGeometryH, int, int)
Remove a geometry from an exiting geometry container.
Definition: ogr_api.cpp:1557
OGR_G_GeodesicLength
double OGR_G_GeodesicLength(OGRGeometryH)
Get the length of the curve, considered as a geodesic line on the underlying ellipsoid of the SRS att...
Definition: ogr_api.cpp:1666
OGR_Fld_IsNullable
int OGR_Fld_IsNullable(OGRFieldDefnH hDefn)
Return whether this field can receive null values.
Definition: ogrfielddefn.cpp:1547
OGR_FD_GetFieldCount
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:280
OGR_F_GetStyleString
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:6677
OGR_G_GetGeometryName
const char * OGR_G_GetGeometryName(OGRGeometryH)
Fetch WKT name for geometry type.
Definition: ogrgeometry.cpp:2089
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:1398
OGR_G_Transform
OGRErr OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH)
Apply arbitrary coordinate transformation to geometry.
Definition: ogrgeometry.cpp:790
OGR_FD_Destroy
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:106
OGR_G_Intersection
OGRGeometryH OGR_G_Intersection(OGRGeometryH, OGRGeometryH)
Compute intersection.
Definition: ogrgeometry.cpp:4939
OGR_F_StealGeometry
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH)
Take away ownership of geometry.
Definition: ogrfeature.cpp:649
OGR_FD_Create
OGRFeatureDefnH OGR_FD_Create(const char *)
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:70
OGR_L_SetFeature
OGRErr OGR_L_SetFeature(OGRLayerH, OGRFeatureH)
Rewrite/replace an existing feature.
Definition: ogrlayer.cpp:748
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:2216
OGR_FldDomain_Destroy
void OGR_FldDomain_Destroy(OGRFieldDomainH)
Destroy a field domain.
Definition: ogrfielddefn.cpp:2165
OGR_L_Intersection
OGRErr OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Intersection of two layers.
Definition: ogrlayer.cpp:2957
OGR_L_SetSpatialFilterRect
void OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double, double)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1581
OGR_STBL_Destroy
void OGR_STBL_Destroy(OGRStyleTableH hSTBL)
Destroy Style Table.
Definition: ogrfeaturestyle.cpp:803
OGR_ST_Destroy
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1376
OGR_DS_GetDriver
OGRSFDriverH OGR_DS_GetDriver(OGRDataSourceH)
Returns the driver that the dataset was opened with.
Definition: ogrdatasource.cpp:313
OGR_F_SetNativeMediaType
void OGR_F_SetNativeMediaType(OGRFeatureH, const char *)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:7444
OGR_G_Length
double OGR_G_Length(OGRGeometryH)
Compute length of a geometry.
Definition: ogr_api.cpp:1606
OGR_G_WkbSize
int OGR_G_WkbSize(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:1341
OGR_L_CommitTransaction
OGRErr OGR_L_CommitTransaction(OGRLayerH)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: ogrlayer.cpp:1262
OGR_DS_GetStyleTable
OGRStyleTableH OGR_DS_GetStyleTable(OGRDataSourceH)
Get style table.
Definition: ogrdatasource.cpp:326
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:1408
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:689
OGR_F_GetFieldAsDouble
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:2321
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:1648
OGRFieldDefnH
void * OGRFieldDefnH
Opaque type for a field definition (OGRFieldDefn)
Definition: ogr_api.h:406
OGR_F_SetFieldDateTime
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:5289
OGR_FD_DeleteFieldDefn
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:506
OGR_DS_CopyLayer
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition: ogrdatasource.cpp:135
OGR_FldDomain_GetFieldSubType
OGRFieldSubType OGR_FldDomain_GetFieldSubType(OGRFieldDomainH)
Get the field subtype of the field domain.
Definition: ogrfielddefn.cpp:2506
OGRLayerH
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition: ogr_api.h:676
OGR_GeomTransformer_Transform
OGRGeometryH OGR_GeomTransformer_Transform(OGRGeomTransformerH hTransformer, OGRGeometryH hGeom)
Transforms a geometry.
Definition: ogrgeometryfactory.cpp:4118
OGR_Fld_SetName
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:178
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:246
OGR_F_GetFieldAsString
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:2748
OGR_G_ForceToLineString
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH)
Convert to line string.
Definition: ogrgeometryfactory.cpp:4557
OGR_L_GetNextFeature
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH)
Fetch the next available feature from this layer.
Definition: ogrlayer.cpp:625
OGR_G_Polygonize
OGRGeometryH OGR_G_Polygonize(OGRGeometryH)
Polygonizes a set of sparse edges.
Definition: ogrgeometry.cpp:6842
OGR_FD_Reference
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:1123
OGR_Fld_SetUnique
void OGR_Fld_SetUnique(OGRFieldDefnH hDefn, int)
Set whether this field has a unique constraint.
Definition: ogrfielddefn.cpp:1720
OGR_L_SetSpatialFilter
void OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH)
Set a new spatial filter.
Definition: ogrlayer.cpp:1511
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:4354
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:1132
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:481
OGR_FD_GetGeomFieldIndex
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:939
OGR_STBL_ResetStyleStringReading
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1217
OGRGeomCoordinatePrecisionGetMResolution
double OGRGeomCoordinatePrecisionGetMResolution(OGRGeomCoordinatePrecisionH)
Get the M resolution of a OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:103
OGR_G_GetGeometryRef
OGRGeometryH OGR_G_GetGeometryRef(OGRGeometryH, int)
Fetch geometry from a geometry container.
Definition: ogr_api.cpp:1361
OGRGetGEOSVersion
bool OGRGetGEOSVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the GEOS version.
Definition: ogr_api.cpp:52
OGR_FD_SetStyleIgnored
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1450
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:357
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:289
OGR_GFld_SetName
void OGR_GFld_SetName(OGRGeomFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrgeomfielddefn.cpp:202
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:2282
OGR_F_GetRawFieldRef
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch a handle to the internal field value given the index.
Definition: ogrfeature.cpp:1945
OGR_G_Touches
int OGR_G_Touches(OGRGeometryH, OGRGeometryH)
Test for touching.
Definition: ogrgeometry.cpp:5662
OGR_F_GetFieldDefnRef
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:1271
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:827
OGR_Fld_IsUnique
int OGR_Fld_IsUnique(OGRFieldDefnH hDefn)
Return whether this field has a unique constraint.
Definition: ogrfielddefn.cpp:1653
OGRGeomCoordinatePrecisionGetFormatSpecificOptions
CSLConstList OGRGeomCoordinatePrecisionGetFormatSpecificOptions(OGRGeomCoordinatePrecisionH, const char *pszFormatName)
Get format specific coordinate precision options.
Definition: ogrgeomcoordinateprecision.cpp:157
OGR_F_SetFieldDateTimeEx
void OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int, float, int)
Set field to datetime.
Definition: ogrfeature.cpp:5329
OGR_G_Distance3D
double OGR_G_Distance3D(OGRGeometryH, OGRGeometryH)
Returns the 3D distance between two geometries.
Definition: ogrgeometry.cpp:3726
OGR_FldDomain_GetSplitPolicy
OGRFieldDomainSplitPolicy OGR_FldDomain_GetSplitPolicy(OGRFieldDomainH)
Get the split policy of the field domain.
Definition: ogrfielddefn.cpp:2525
OGR_G_IsEmpty
int OGR_G_IsEmpty(OGRGeometryH)
Test if the geometry is empty.
Definition: ogrgeometry.cpp:2234
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_DS_GetLayerByName
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition: ogrdatasource.cpp:170
OGRBuildPolygonFromEdges
OGRGeometryH OGRBuildPolygonFromEdges(OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose, double dfTolerance, OGRErr *peErr)
Build a ring from a bunch of arcs.
Definition: ograssemblepolygon.cpp:123
OGR_Fld_SetType
void OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType)
Set the type of this field.
Definition: ogrfielddefn.cpp:462
OGR_ST_SetParamDbl
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition: ogrfeaturestyle.cpp:2500
OGR_G_ExportToGMLEx
char * OGR_G_ExportToGMLEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1274
OGR_GFld_GetSpatialRef
OGRSpatialReferenceH OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH)
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:486
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:1359
OGR_G_Disjoint
int OGR_G_Disjoint(OGRGeometryH, OGRGeometryH)
Test for disjointness.
Definition: ogrgeometry.cpp:5589
OGR_G_ConvexHull
OGRGeometryH OGR_G_ConvexHull(OGRGeometryH)
Compute convex hull.
Definition: ogrgeometry.cpp:4229
OGR_G_Crosses
int OGR_G_Crosses(OGRGeometryH, OGRGeometryH)
Test for crossing.
Definition: ogrgeometry.cpp:5770
OGR_FldDomain_SetMergePolicy
void OGR_FldDomain_SetMergePolicy(OGRFieldDomainH, OGRFieldDomainMergePolicy)
Set the merge policy of the field domain.
Definition: ogrfielddefn.cpp:2581
OGR_L_GetLayerDefn
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH)
Fetch the schema information for this layer.
Definition: ogrlayer.cpp:1307
OGR_F_SetGeometry
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:564
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:4357
OGR_F_GetNativeData
const char * OGR_F_GetNativeData(OGRFeatureH)
Returns the native data for the feature.
Definition: ogrfeature.cpp:7279
OGR_G_ExportToKML
char * OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
Convert a geometry into KML format.
Definition: ogr2kmlgeometry.cpp:470
OGR_G_Within
int OGR_G_Within(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:5843
OGR_L_StartTransaction
OGRErr OGR_L_StartTransaction(OGRLayerH)
For datasources which support transactions, StartTransaction creates a transaction.
Definition: ogrlayer.cpp:1235
OGR_FD_GetGeomFieldDefn
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:715
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:1289
OGRFeatureDefnH
void * OGRFeatureDefnH
Opaque type for a feature definition (OGRFeatureDefn)
Definition: ogr_api.h:408
OGRHasPreparedGeometrySupport
int OGRHasPreparedGeometrySupport(void)
Returns if GEOS has prepared geometry support.
Definition: ogrgeometry.cpp:6904
OGR_F_GetStyleTable
OGRStyleTableH OGR_F_GetStyleTable(OGRFeatureH)
Return style table.
Definition: ogrfeature.cpp:6927
OGR_F_SetFieldDoubleList
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:4925
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:242
OGR_G_IsMeasured
int OGR_G_IsMeasured(OGRGeometryH)
See whether this geometry is measured.
Definition: ogrgeometry.cpp:1046
OGR_F_GetFieldAsIntegerList
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:2946
OGR_DS_DeleteLayer
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition: ogrdatasource.cpp:151
OGR_Fld_GetComment
const char * OGR_Fld_GetComment(OGRFieldDefnH hDefn)
Return the (optional) comment for this field.
Definition: ogrfielddefn.cpp:1862
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:4710
OGR_G_SetMeasured
void OGR_G_SetMeasured(OGRGeometryH, int)
Add or remove the M coordinate dimension.
Definition: ogrgeometry.cpp:1205
OGRGeomCoordinatePrecisionCreate
OGRGeomCoordinatePrecisionH OGRGeomCoordinatePrecisionCreate(void)
Creates a new instance of OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:31
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:2413
OGR_L_GetName
const char * OGR_L_GetName(OGRLayerH)
Return the layer name.
Definition: ogrlayer.cpp:2178
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:923
OGR_L_GetArrowStream
bool OGR_L_GetArrowStream(OGRLayerH hLayer, struct ArrowArrayStream *out_stream, char **papszOptions)
Get a Arrow C stream.
Definition: ogrlayerarrow.cpp:2640
OGR_G_GetCoordinateDimension
int OGR_G_GetCoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:978
OGR_L_GetSpatialRef
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH)
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:1367
OGR_L_SetNextByIndex
OGRErr OGR_L_SetNextByIndex(OGRLayerH, GIntBig)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:608
OGR_F_Equal
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:6173
OGR_ST_GetParamStr
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition: ogrfeaturestyle.cpp:2259
OGR_G_SimplifyPreserveTopology
OGRGeometryH OGR_G_SimplifyPreserveTopology(OGRGeometryH hThis, double tolerance)
Simplify the geometry while preserving topology.
Definition: ogrgeometry.cpp:6454
OGR_G_GetGeometryType
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
Fetch geometry type.
Definition: ogrgeometry.cpp:2053
OGR_Dr_TestCapability
int OGR_Dr_TestCapability(OGRSFDriverH, const char *)
Test if capability is available.
OGR_G_SetPrecision
OGRGeometryH OGR_G_SetPrecision(OGRGeometryH, double dfGridSize, int nFlags)
Set the geometry's precision, rounding all its coordinates to the precision grid, and making sure the...
Definition: ogrgeometry.cpp:6629
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:2598
OGR_F_Clone
OGRFeatureH OGR_F_Clone(OGRFeatureH)
Duplicate feature.
Definition: ogrfeature.cpp:1106
OGR_G_Empty
void OGR_G_Empty(OGRGeometryH)
Clear geometry information.
Definition: ogrgeometry.cpp:2198
OGR_G_CreateFromGMLTree
OGRGeometryH OGR_G_CreateFromGMLTree(const CPLXMLNode *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:3782
OGR_CodedFldDomain_GetEnumeration
const OGRCodedValue * OGR_CodedFldDomain_GetEnumeration(OGRFieldDomainH)
Get the enumeration as (code, value) pairs.
Definition: ogrfielddefn.cpp:2602
OGRStyleToolH
void * OGRStyleToolH
Style tool opaque type.
Definition: ogr_api.h:959
OGR_G_GetDimension
int OGR_G_GetDimension(OGRGeometryH)
Get the dimension of this geometry.
Definition: ogrgeometry.cpp:908
OGR_L_Rename
OGRErr OGR_L_Rename(OGRLayerH hLayer, const char *pszNewName)
Rename layer.
Definition: ogrlayer.cpp:2346
OGR_G_Boundary
OGRGeometryH OGR_G_Boundary(OGRGeometryH)
Compute boundary.
Definition: ogrgeometry.cpp:4432
OGR_ST_GetParamDbl
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition: ogrfeaturestyle.cpp:2363
OGR_Fld_GetDefault
const char * OGR_Fld_GetDefault(OGRFieldDefnH hDefn)
Get default field value.
Definition: ogrfielddefn.cpp:733
OGR_F_SetFieldIntegerList
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:4646
OGR_STBL_Create
OGRStyleTableH OGR_STBL_Create(void)
OGRStyleTable factory.
Definition: ogrfeaturestyle.cpp:762
OGR_DS_ExecuteSQL
OGRLayerH OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: ogrdatasource.cpp:191
OGR_Fld_SetNullable
void OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int)
Set whether this field can receive null values.
Definition: ogrfielddefn.cpp:1615
OGR_F_GetFieldIndex
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:1316
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:1444
OGRGeomCoordinatePrecisionGetFormats
char ** OGRGeomCoordinatePrecisionGetFormats(OGRGeomCoordinatePrecisionH)
Get the list of format names for coordinate precision format specific options.
Definition: ogrgeomcoordinateprecision.cpp:129
OGR_GFld_IsNullable
int OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn)
Return whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:655
OGR_F_SetFromWithMap
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *)
Set one feature from another.
Definition: ogrfeature.cpp:6389
OGR_L_SetStyleTable
void OGR_L_SetStyleTable(OGRLayerH, OGRStyleTableH)
Set style table.
Definition: ogrlayer.cpp:2154
OGR_F_SetFieldDouble
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition: ogrfeature.cpp:4131
OGR_F_GetNativeMediaType
const char * OGR_F_GetNativeMediaType(OGRFeatureH)
Returns the native media type for the feature.
Definition: ogrfeature.cpp:7330
OGR_GeomTransformer_Create
OGRGeomTransformerH OGR_GeomTransformer_Create(OGRCoordinateTransformationH, CSLConstList papszOptions)
Create a geometry transformer.
Definition: ogrgeometryfactory.cpp:4094
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:1169
OGR_L_SyncToDisk
OGRErr OGR_L_SyncToDisk(OGRLayerH)
Flush pending changes to disk.
Definition: ogrlayer.cpp:1971
OGR_FD_GetReferenceCount
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:1192
OGRGeomCoordinatePrecisionGetXYResolution
double OGRGeomCoordinatePrecisionGetXYResolution(OGRGeomCoordinatePrecisionH)
Get the X/Y resolution of a OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:65
OGR_Fld_SetDefault
void OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *)
Set default field value.
Definition: ogrfielddefn.cpp:695
OGR_FD_AddGeomFieldDefn
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:813
OGR_F_SetStyleTable
void OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH)
Set style table.
Definition: ogrfeature.cpp:6953
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_G_AddPoint
void OGR_G_AddPoint(OGRGeometryH, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:1120
OGR_STBL_SaveStyleTable
int OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:999
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:587
OGR_F_IsFieldNull
int OGR_F_IsFieldNull(OGRFeatureH, int)
Test if a field is null.
Definition: ogrfeature.cpp:1679
OGRFeatureH
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition: ogr_api.h:410
OGR_Fld_GetWidth
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:1075
OGR_L_GetExtent
OGRErr OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int)
Fetch the extent of this layer.
Definition: ogrlayer.cpp:366
OGR_G_BufferEx
OGRGeometryH OGR_G_BufferEx(OGRGeometryH, double dfDist, CSLConstList papszOptions)
Compute buffer of geometry.
Definition: ogrgeometry.cpp:4816
OGR_F_UnsetField
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1623
OGR_GFld_SetSpatialRef
void OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH, OGRSpatialReferenceH hSRS)
Set the spatial reference of this field.
Definition: ogrgeomfielddefn.cpp:562
OGR_F_DumpReadableAsString
char * OGR_F_DumpReadableAsString(OGRFeatureH, CSLConstList)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5819
OGRGeomCoordinatePrecisionDestroy
void OGRGeomCoordinatePrecisionDestroy(OGRGeomCoordinatePrecisionH)
Destroy a OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:48
OGR_FD_IsStyleIgnored
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1416
OGR_RawField_IsNull
int OGR_RawField_IsNull(const OGRField *)
Returns whether a raw field is null.
Definition: ogrfeature.cpp:7486
OGR_G_ExportToJsonEx
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1648
OGR_L_CreateField
OGRErr OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int)
Create a new field on a layer.
Definition: ogrlayer.cpp:959
OGRGeomCoordinatePrecisionSetFromMeter
void OGRGeomCoordinatePrecisionSetFromMeter(OGRGeomCoordinatePrecisionH, OGRSpatialReferenceH hSRS, double dfXYMeterResolution, double dfZMeterResolution, double dfMResolution)
Set the resolution of the geometry coordinate components.
Definition: ogrgeomcoordinateprecision.cpp:251
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:896
OGR_G_Value
OGRGeometryH OGR_G_Value(OGRGeometryH, double dfDistance)
Fetch point at given distance along curve.
Definition: ogr_api.cpp:1997
OGR_ST_GetType
OGRSTClassId OGR_ST_GetType(OGRStyleToolH hST)
Determine type of Style Tool.
Definition: ogrfeaturestyle.cpp:1614
OGR_L_CreateFieldFromArrowSchema
bool OGR_L_CreateFieldFromArrowSchema(OGRLayerH hLayer, const struct ArrowSchema *schema, char **papszOptions)
Creates a field from an ArrowSchema.
Definition: ogrlayerarrow.cpp:6270
OGR_DS_SetStyleTableDirectly
void OGR_DS_SetStyleTableDirectly(OGRDataSourceH, OGRStyleTableH)
Set style table (and take ownership)
Definition: ogrdatasource.cpp:339
OGRFieldDomainH
struct OGRFieldDomainHS * OGRFieldDomainH
Opaque type for a field domain definition (OGRFieldDomain)
Definition: ogr_api.h:418
OGR_G_GeodesicArea
double OGR_G_GeodesicArea(OGRGeometryH)
Compute geometry area, considered as a surface on the underlying ellipsoid of the SRS attached to the...
Definition: ogr_api.cpp:1805
OGR_G_Distance
double OGR_G_Distance(OGRGeometryH, OGRGeometryH)
Compute distance between two geometries.
Definition: ogrgeometry.cpp:3626
OGRGeomFieldDefnH
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn)
Definition: ogr_api.h:415
OGR_L_ResetReading
void OGR_L_ResetReading(OGRLayerH)
Reset feature reading to start on the first feature.
Definition: ogrlayer.cpp:1908
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:2079
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:1541
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:937
OGR_GFld_IsIgnored
int OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:397
OGR_SM_Create
OGRStyleMgrH OGR_SM_Create(OGRStyleTableH hStyleTable)
OGRStyleMgr factory.
Definition: ogrfeaturestyle.cpp:130
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_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:997
OGRwkbExportOptionsSetVariant
void OGRwkbExportOptionsSetVariant(OGRwkbExportOptions *, OGRwkbVariant)
Set the WKB variant.
Definition: ogrgeometry.cpp:8505
OGR_L_SetStyleTableDirectly
void OGR_L_SetStyleTableDirectly(OGRLayerH, OGRStyleTableH)
Set style table (and take ownership)
Definition: ogrlayer.cpp:2141
OGR_F_Validate
int OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError)
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:7208
OGR_Fld_SetSubType
void OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType)
Set the subtype of this field.
Definition: ogrfielddefn.cpp:570
OGR_G_IsRing
int OGR_G_IsRing(OGRGeometryH)
Test if the geometry is a ring.
Definition: ogrgeometry.cpp:2494
OGR_G_Equals
int OGR_G_Equals(OGRGeometryH, OGRGeometryH)
Returns TRUE if two geometries are equivalent.
Definition: ogrgeometry.cpp:1267
OGR_F_IsFieldSet
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1545
OGR_F_SetStyleStringDirectly
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition: ogrfeature.cpp:6775
OGR_G_GetSpatialReference
OGRSpatialReferenceH OGR_G_GetSpatialReference(OGRGeometryH)
Returns spatial reference system for geometry.
Definition: ogrgeometry.cpp:2162
OGRDestroyPreparedGeometry
void OGRDestroyPreparedGeometry(OGRPreparedGeometryH hPreparedGeom)
Destroys a prepared geometry.
Definition: ogrgeometry.cpp:6965
OGR_Dr_Open
OGRDataSourceH OGR_Dr_Open(OGRSFDriverH, const char *, int)
Attempt to open file with this driver.
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:5872
OGR_G_ForceToMultiPolygon
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH)
Convert to multipolygon.
Definition: ogrgeometryfactory.cpp:998
OGRGeomTransformerH
struct OGRGeomTransformer * OGRGeomTransformerH
Opaque type for a geometry transformer.
Definition: ogr_api.h:213
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:2049
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:509
OGR_ST_SetParamNum
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2457
OGR_F_GetFieldAsStringList
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:3206
OGR_G_ForceToMultiLineString
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH)
Convert to multilinestring.
Definition: ogrgeometryfactory.cpp:1337
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:383
OGR_G_CoordinateDimension
int OGR_G_CoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:1004
OGR_STBL_Find
const char * OGR_STBL_Find(OGRStyleTableH hStyleTable, const char *pszName)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1105
OGR_G_ForceToPolygon
OGRGeometryH OGR_G_ForceToPolygon(OGRGeometryH)
Convert to polygon.
Definition: ogrgeometryfactory.cpp:830
OGR_G_DestroyGeometry
void OGR_G_DestroyGeometry(OGRGeometryH)
Destroy geometry object.
Definition: ogrgeometryfactory.cpp:688
OGR_GlobFldDomain_GetGlob
const char * OGR_GlobFldDomain_GetGlob(OGRFieldDomainH)
Get the glob expression.
Definition: ogrfielddefn.cpp:2712
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:728
OGR_G_SetCoordinateDimension
void OGR_G_SetCoordinateDimension(OGRGeometryH, int)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:1152
OGR_DS_GetLayerCount
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition: ogrdatasource.cpp:247
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:7053
OGR_GetFieldSubTypeName
const char * OGR_GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition: ogrfielddefn.cpp:943
OGR_L_Union
OGRErr OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Union of two layers.
Definition: ogrlayer.cpp:3507
OGR_ST_SetUnit
void OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit, double dfGroundPaperScale)
Set Style Tool units.
Definition: ogrfeaturestyle.cpp:1678
OGR_RawField_SetUnset
void OGR_RawField_SetUnset(OGRField *)
Mark a raw field as unset.
Definition: ogrfeature.cpp:7510
OGR_G_Intersects
int OGR_G_Intersects(OGRGeometryH, OGRGeometryH)
Do these features intersect?
Definition: ogrgeometry.cpp:612
OGRSFDriverH
void * OGRSFDriverH
Opaque type for a OGR driver (OGRSFDriver)
Definition: ogr_api.h:680
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:1451
OGR_G_ExportToGMLTree
CPLXMLNode * OGR_G_ExportToGMLTree(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1158
OGR_L_GetStyleTable
OGRStyleTableH OGR_L_GetStyleTable(OGRLayerH)
Get style table.
Definition: ogrlayer.cpp:2128
OGR_L_GetSupportedSRSList
OGRSpatialReferenceH * OGR_L_GetSupportedSRSList(OGRLayerH hLayer, int iGeomField, int *pnCount)
Get the list of SRS supported.
Definition: ogrlayer.cpp:5659
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:6712
OGR_RawField_SetNull
void OGR_RawField_SetNull(OGRField *)
Mark a raw field as null.
Definition: ogrfeature.cpp:7534
OGR_F_GetFieldAsInteger
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:2088
OGR_G_CloseRings
void OGR_G_CloseRings(OGRGeometryH)
Force rings to be closed.
Definition: ogrgeometry.cpp:6030
OGRGetDriverCount
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
OGR_DS_TestCapability
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition: ogrdatasource.cpp:234
OGR_FD_IsGeometryIgnored
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1334
OGR_F_SetFieldString
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:4491
OGR_L_ReorderField
OGRErr OGR_L_ReorderField(OGRLayerH, int iOldFieldPos, int iNewFieldPos)
Reorder an existing field on a layer.
Definition: ogrlayer.cpp:1099
OGR_SM_GetPartCount
int OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:613
OGR_F_SetGeometryDirectly
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:493
OGRReleaseDataSource
OGRErr OGRReleaseDataSource(OGRDataSourceH)
Drop a reference to this datasource, and if the reference count drops to zero close (destroy) the dat...
OGR_ST_GetParamNum
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition: ogrfeaturestyle.cpp:2311
OGR_G_ExportToJson
char * OGR_G_ExportToJson(OGRGeometryH)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1607
OGR_G_ExportToWkb
OGRErr OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry well known binary format.
Definition: ogrgeometry.cpp:1611
OGR_Fld_SetTZFlag
void OGR_Fld_SetTZFlag(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:1325
OGRCreatePreparedGeometry
OGRPreparedGeometryH OGRCreatePreparedGeometry(OGRGeometryH hGeom)
Creates a prepared geometry.
Definition: ogrgeometry.cpp:6926
OGR_F_SetGeomField
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:1049
OGR_F_SetFrom
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition: ogrfeature.cpp:6249
OGR_G_Contains
int OGR_G_Contains(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:5916
OGR_Fld_GetType
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:392
OGR_F_SetFieldInteger
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition: ogrfeature.cpp:3754
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:5605
OGRPreparedGeometryContains
int OGRPreparedGeometryContains(OGRPreparedGeometryH hPreparedGeom, OGRGeometryH hOtherGeom)
Returns whether a prepared geometry contains a geometry.
Definition: ogrgeometry.cpp:7026
OGRPreparedGeometryH
struct _OGRPreparedGeometry * OGRPreparedGeometryH
Opaque type for a prepared geometry.
Definition: ogr_api.h:381
OGR_F_GetFieldAsISO8601DateTime
const char * OGR_F_GetFieldAsISO8601DateTime(OGRFeatureH, int, CSLConstList)
Fetch OFTDateTime field value as a ISO8601 representation.
Definition: ogrfeature.cpp:2857
OGR_FD_GetGeomType
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:1002
OGR_GFld_Create
OGRGeomFieldDefnH OGR_GFld_Create(const char *, OGRwkbGeometryType)
Create a new field geometry definition.
Definition: ogrgeomfielddefn.cpp:92
OGR_SM_InitStyleString
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:320
OGRGeomCoordinatePrecisionSet
void OGRGeomCoordinatePrecisionSet(OGRGeomCoordinatePrecisionH, double dfXYResolution, double dfZResolution, double dfMResolution)
Set the resolution of the geometry coordinate components.
Definition: ogrgeomcoordinateprecision.cpp:220
OGRPreparedGeometryIntersects
int OGRPreparedGeometryIntersects(OGRPreparedGeometryH hPreparedGeom, OGRGeometryH hOtherGeom)
Returns whether a prepared geometry intersects with a geometry.
Definition: ogrgeometry.cpp:6990
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:877
OGRStyleTableH
void * OGRStyleTableH
Opaque type for a style table (OGRStyleTable)
Definition: ogr_api.h:412
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:1248
OGR_F_SetFID
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition: ogrfeature.cpp:5913
OGR_F_IsFieldSetAndNotNull
int OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int)
Test if a field is set and not null.
Definition: ogrfeature.cpp:1742
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:5019
OGR_G_ExportToWkbEx
OGRErr OGR_G_ExportToWkbEx(OGRGeometryH, unsigned char *, const OGRwkbExportOptions *)
Convert a geometry into well known binary format.
Definition: ogrgeometry.cpp:1703
OGR_RawField_IsUnset
int OGR_RawField_IsUnset(const OGRField *)
Returns whether a raw field is unset.
Definition: ogrfeature.cpp:7465
OGR_Fld_GetAlternativeNameRef
const char * OGR_Fld_GetAlternativeNameRef(OGRFieldDefnH)
Fetch the alternative name (or "alias") for this field.
Definition: ogrfielddefn.cpp:354
OGRDataSourceH
void * OGRDataSourceH
Opaque type for a OGR datasource (OGRDataSource)
Definition: ogr_api.h:678
OGR_F_DumpReadable
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5786
OGR_Fld_SetJustify
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:1043
OGR_Fld_GetDomainName
const char * OGR_Fld_GetDomainName(OGRFieldDefnH hDefn)
Return the name of the field domain for this field.
Definition: ogrfielddefn.cpp:1764
OGR_G_UnaryUnion
OGRGeometryH OGR_G_UnaryUnion(OGRGeometryH)
Returns the union of all components of a single geometry.
Definition: ogrgeometry.cpp:5258
OGR_G_ImportFromWkb
OGRErr OGR_G_ImportFromWkb(OGRGeometryH, const void *, int)
Assign geometry from well known binary data.
Definition: ogrgeometry.cpp:1536
OGR_GeomTransformer_Destroy
void OGR_GeomTransformer_Destroy(OGRGeomTransformerH hTransformer)
Destroy a geometry transformer allocated with OGR_GeomTransformer_Create()
Definition: ogrgeometryfactory.cpp:4138
OGR_Fld_GetTZFlag
int OGR_Fld_GetTZFlag(OGRFieldDefnH)
Get the time zone flag.
Definition: ogrfielddefn.cpp:1261
OGR_L_DeleteFeature
OGRErr OGR_L_DeleteFeature(OGRLayerH, GIntBig)
Delete feature from layer.
Definition: ogrlayer.cpp:1997
OGRCleanupAll
void OGRCleanupAll(void)
Clean-up all drivers (including raster ones starting with GDAL 2.0.
OGRGetDriverByName
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
OGR_G_ExportEnvelopeToGMLTree
CPLXMLNode * OGR_G_ExportEnvelopeToGMLTree(OGRGeometryH)
Export the envelope of a geometry as a gml:Box.
Definition: ogr2gmlgeometry.cpp:419
OGRRegisterAll
void OGRRegisterAll(void)
Register all drivers.
Definition: ogrregisterall.cpp:20
OGR_DS_GetName
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition: ogrdatasource.cpp:285
OGR_F_SetNativeData
void OGR_F_SetNativeData(OGRFeatureH, const char *)
Sets the native data for the feature.
Definition: ogrfeature.cpp:7387
OGR_GFld_SetNullable
void OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int)
Set whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:718
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:255
OGR_G_GetPointCount
int OGR_G_GetPointCount(OGRGeometryH)
Fetch number of points from a Point or a LineString/LinearRing geometry.
Definition: ogr_api.cpp:96
OGR_STBL_LoadStyleTable
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1050
OGR_G_ForceToMultiPoint
OGRGeometryH OGR_G_ForceToMultiPoint(OGRGeometryH)
Convert to multipoint.
Definition: ogrgeometryfactory.cpp:1089
OGR_Fld_SetIgnored
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1474
OGR_G_CreateGeometryFromJson
OGRGeometryH OGR_G_CreateGeometryFromJson(const char *)
Create a OGR geometry from a GeoJSON geometry object.
OGR_L_GetExtent3D
OGRErr OGR_L_GetExtent3D(OGRLayerH hLayer, int iGeomField, OGREnvelope3D *psExtent3D, int bForce)
Fetch the 3D extent of this layer, on the specified geometry field.
Definition: ogrlayer.cpp:402
OGR_G_CreateFromGML
OGRGeometryH OGR_G_CreateFromGML(const char *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:3826
OGR_F_StealGeometryEx
OGRGeometryH OGR_F_StealGeometryEx(OGRFeatureH, int iGeomField)
Take away ownership of geometry.
Definition: ogrfeature.cpp:679
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_Is3D
int OGR_G_Is3D(OGRGeometryH)
See whether this geometry has Z coordinates.
Definition: ogrgeometry.cpp:1025
OGR_SM_AddPart
int OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:548
OGR_GFld_SetIgnored
void OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:443
OGR_G_HasCurveGeometry
int OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear)
Returns if this geometry is or has curve geometry.
Definition: ogr_api.cpp:1896
OGR_RangeFldDomain_GetMax
const OGRField * OGR_RangeFldDomain_GetMax(OGRFieldDomainH, bool *pbIsInclusiveOut)
Get the maximum value.
Definition: ogrfielddefn.cpp:2678
OGR_G_Union
OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH)
Compute union.
Definition: ogrgeometry.cpp:5056
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:2363
OGR_FldDomain_GetFieldType
OGRFieldType OGR_FldDomain_GetFieldType(OGRFieldDomainH)
Get the field type of the field domain.
Definition: ogrfielddefn.cpp:2489
OGR_STBL_GetNextStyle
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1270
OGR_L_CreateGeomField
OGRErr OGR_L_CreateGeomField(OGRLayerH hLayer, OGRGeomFieldDefnH hFieldDefn, int bForce)
Create a new geometry field on a layer.
Definition: ogrlayer.cpp:1205
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:1308
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:1216
OGR_F_SetFieldInteger64List
void OGR_F_SetFieldInteger64List(OGRFeatureH, int, int, const GIntBig *)
Set field to list of 64 bit integers value.
Definition: ogrfeature.cpp:4794
OGRGetNonLinearGeometriesEnabledFlag
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:2061
OGR_G_PointOnSurface
OGRGeometryH OGR_G_PointOnSurface(OGRGeometryH)
Returns a point guaranteed to lie on the surface.
Definition: ogrgeometry.cpp:6212
OGR_GFld_SetCoordinatePrecision
void OGR_GFld_SetCoordinatePrecision(OGRGeomFieldDefnH, OGRGeomCoordinatePrecisionH)
Set coordinate precision associated to this geometry field.
Definition: ogrgeomfielddefn.cpp:805
OGR_ST_Create
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId)
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1340
OGR_Fld_Create
OGRFieldDefnH OGR_Fld_Create(const char *, OGRFieldType)
Create a new field definition.
Definition: ogrfielddefn.cpp:93
OGR_ST_GetUnit
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1640
OGR_F_SetStyleString
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string.
Definition: ogrfeature.cpp:6729
OGR_DS_ReleaseResultSet
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition: ogrdatasource.cpp:215
OGR_L_DeleteField
OGRErr OGR_L_DeleteField(OGRLayerH, int iField)
Delete an existing field on a layer.
Definition: ogrlayer.cpp:993
OGR_F_GetFID
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:5858
OGR_Dr_GetName
const char * OGR_Dr_GetName(OGRSFDriverH)
Fetch name of driver (file format).
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:7984
OGR_G_FlattenTo2D
void OGR_G_FlattenTo2D(OGRGeometryH)
Convert geometry to strictly 2D.
Definition: ogrgeometry.cpp:3019
OGROpenShared
OGRDataSourceH OGROpenShared(const char *, int, OGRSFDriverH *)
Open a file / data source with one of the registered drivers if not already opened,...
OGR_G_AddGeometryDirectly
OGRErr OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH)
Add a geometry directly to an existing geometry container.
Definition: ogr_api.cpp:1486
OGR_GFld_SetType
void OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType)
Set the geometry type of this field.
Definition: ogrgeomfielddefn.cpp:358
OGR_G_Normalize
OGRGeometryH OGR_G_Normalize(OGRGeometryH)
Attempts to bring geometry into normalized/canonical form.
Definition: ogrgeometry.cpp:4121
OGR_Fld_SetComment
void OGR_Fld_SetComment(OGRFieldDefnH hDefn, const char *)
Set the comment for this field.
Definition: ogrfielddefn.cpp:1916
OGR_L_FindFieldIndex
int OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch)
Find the index of field in a layer.
Definition: ogrlayer.cpp:1325
ogr_core.h
Core portability services for cross-platform OGR code.
OGRFieldSubType
OGRFieldSubType
List of field subtypes.
Definition: ogr_core.h:816
OGRFieldDomainMergePolicy
OGRFieldDomainMergePolicy
Merge policy for field domains.
Definition: ogr_core.h:1271
OGRwkbByteOrder
OGRwkbByteOrder
Enumeration to describe byte order.
Definition: ogr_core.h:615
OGRFieldDomainType
OGRFieldDomainType
Type of field domain.
Definition: ogr_core.h:1236
OGRwkbVariant
OGRwkbVariant
Output variants of WKB we support.
Definition: ogr_core.h:545
OGRJustification
OGRJustification
Display justification for field values.
Definition: ogr_core.h:841
OGRFieldType
OGRFieldType
List of feature field types.
Definition: ogr_core.h:788
OGRwkbGeometryType
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:407
OGRSTClassId
enum ogr_style_tool_class_id OGRSTClassId
OGRStyleTool derived class types (returned by GetType()).
OGRSTUnitId
enum ogr_style_tool_units_id OGRSTUnitId
List of units supported by OGRStyleTools.
OGRErr
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:371
OGRFieldDomainSplitPolicy
OGRFieldDomainSplitPolicy
Split policy for field domains.
Definition: ogr_core.h:1253
CPLXMLNode
Document node structure.
Definition: cpl_minixml.h:55
OGRCodedValue
Associates a code and a value.
Definition: ogr_core.h:1223
OGRGeomCoordinatePrecision
Geometry coordinate precision.
Definition: ogr_geomcoordinateprecision.h:34
OGRGeomCoordinatePrecision::dfZResolution
double dfZResolution
Resolution for the coordinate precision of the Z coordinate.
Definition: ogr_geomcoordinateprecision.h:52
OGRGeomCoordinatePrecision::dfMResolution
double dfMResolution
Resolution for the coordinate precision of the M coordinate.
Definition: ogr_geomcoordinateprecision.h:57
OGRGeomCoordinatePrecision::dfXYResolution
double dfXYResolution
Resolution for the coordinate precision of the X and Y coordinates.
Definition: ogr_geomcoordinateprecision.h:46
OGRGeometryTypeCounter
Result item of OGR_L_GetGeometryTypes.
Definition: ogr_api.h:693
OGRGeometryTypeCounter::nCount
int64_t nCount
Number of geometries of type eGeomType.
Definition: ogr_api.h:697
OGRGeometryTypeCounter::eGeomType
OGRwkbGeometryType eGeomType
Geometry type.
Definition: ogr_api.h:695
OGRwkbExportOptions
WKB export options.
Definition: ogr_geometry.h:330
OGRField
OGRFeature field attribute value union.
Definition: ogr_core.h:905