GDAL

ogr_api.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Project: OpenGIS Simple Features Reference Implementation
4 * Purpose: C API for OGR Geometry, Feature, Layers, DataSource and drivers.
5 * Author: Frank Warmerdam, warmerdam@pobox.com
6 *
7 ******************************************************************************
8 * Copyright (c) 2002, Frank Warmerdam
9 * Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>
10 *
11 * SPDX-License-Identifier: MIT
12 ****************************************************************************/
13
14#ifndef OGR_API_H_INCLUDED
15#define OGR_API_H_INCLUDED
16
26#include "cpl_progress.h"
27#include "cpl_minixml.h"
28#include "ogr_core.h"
29#include "gdal_fwd.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
43 struct _CPLXMLNode;
44
45/* OGRGeomCoordinatePrecisionH */
46
48#define OGR_GEOM_COORD_PRECISION_UNKNOWN 0
49
50 OGRGeomCoordinatePrecisionH CPL_DLL OGRGeomCoordinatePrecisionCreate(void);
51 void CPL_DLL OGRGeomCoordinatePrecisionDestroy(OGRGeomCoordinatePrecisionH);
52 double CPL_DLL
53 OGRGeomCoordinatePrecisionGetXYResolution(OGRGeomCoordinatePrecisionH);
54 double CPL_DLL
55 OGRGeomCoordinatePrecisionGetZResolution(OGRGeomCoordinatePrecisionH);
56 double CPL_DLL
57 OGRGeomCoordinatePrecisionGetMResolution(OGRGeomCoordinatePrecisionH);
58 char CPL_DLL **
59 OGRGeomCoordinatePrecisionGetFormats(OGRGeomCoordinatePrecisionH);
60 CSLConstList CPL_DLL OGRGeomCoordinatePrecisionGetFormatSpecificOptions(
61 OGRGeomCoordinatePrecisionH, const char *pszFormatName);
62 void CPL_DLL OGRGeomCoordinatePrecisionSet(OGRGeomCoordinatePrecisionH,
63 double dfXYResolution,
64 double dfZResolution,
65 double dfMResolution);
66 void CPL_DLL OGRGeomCoordinatePrecisionSetFromMeter(OGRGeomCoordinatePrecisionH,
67 OGRSpatialReferenceH hSRS,
68 double dfXYMeterResolution,
69 double dfZMeterResolution,
70 double dfMResolution);
71 void CPL_DLL OGRGeomCoordinatePrecisionSetFormatSpecificOptions(
72 OGRGeomCoordinatePrecisionH, const char *pszFormatName,
73 CSLConstList papszOptions);
74
75/* From base OGRGeometry class */
76
77 OGRErr CPL_DLL OGR_G_CreateFromWkb(const void *, OGRSpatialReferenceH,
78 OGRGeometryH *, int);
79 OGRErr CPL_DLL OGR_G_CreateFromWkbEx(const void *, OGRSpatialReferenceH,
80 OGRGeometryH *, size_t);
81 OGRErr CPL_DLL OGR_G_CreateFromWkt(char **, OGRSpatialReferenceH,
82 OGRGeometryH *);
83 OGRErr CPL_DLL OGR_G_CreateFromFgf(const void *, OGRSpatialReferenceH,
84 OGRGeometryH *, int, int *);
85 OGRGeometryH CPL_DLL OGR_G_CreateFromEnvelope(double, double, double, double,
86 OGRSpatialReferenceH);
87 void CPL_DLL OGR_G_DestroyGeometry(OGRGeometryH);
88 OGRGeometryH
89 CPL_DLL OGR_G_CreateGeometry(OGRwkbGeometryType) CPL_WARN_UNUSED_RESULT;
90 OGRGeometryH CPL_DLL OGR_G_ApproximateArcAngles(
91 double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius,
92 double dfSecondaryAxis, double dfRotation, double dfStartAngle,
93 double dfEndAngle, double dfMaxAngleStepSizeDegrees) CPL_WARN_UNUSED_RESULT;
94
95 OGRGeometryH CPL_DLL OGR_G_ForceToPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
96 OGRGeometryH
97 CPL_DLL OGR_G_ForceToLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
98 OGRGeometryH
99 CPL_DLL OGR_G_ForceToMultiPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
100 OGRGeometryH
101 CPL_DLL OGR_G_ForceToMultiPoint(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
102 OGRGeometryH
103 CPL_DLL OGR_G_ForceToMultiLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
104 OGRGeometryH CPL_DLL OGR_G_ForceTo(OGRGeometryH hGeom,
105 OGRwkbGeometryType eTargetType,
106 char **papszOptions) CPL_WARN_UNUSED_RESULT;
107 OGRGeometryH CPL_DLL OGR_G_RemoveLowerDimensionSubGeoms(
108 const OGRGeometryH hGeom) CPL_WARN_UNUSED_RESULT;
109
110 int CPL_DLL OGR_G_GetDimension(OGRGeometryH);
111 int CPL_DLL OGR_G_GetCoordinateDimension(OGRGeometryH);
112 int CPL_DLL OGR_G_CoordinateDimension(OGRGeometryH);
113 void CPL_DLL OGR_G_SetCoordinateDimension(OGRGeometryH, int);
114 int CPL_DLL OGR_G_Is3D(OGRGeometryH);
115 int CPL_DLL OGR_G_IsMeasured(OGRGeometryH);
116 void CPL_DLL OGR_G_Set3D(OGRGeometryH, int);
117 void CPL_DLL OGR_G_SetMeasured(OGRGeometryH, int);
118 OGRGeometryH CPL_DLL OGR_G_Clone(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
119 void CPL_DLL OGR_G_GetEnvelope(OGRGeometryH, OGREnvelope *);
120 void CPL_DLL OGR_G_GetEnvelope3D(OGRGeometryH, OGREnvelope3D *);
121 OGRErr CPL_DLL OGR_G_ImportFromWkb(OGRGeometryH, const void *, int);
122 OGRErr CPL_DLL OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder,
123 unsigned char *);
124 OGRErr CPL_DLL OGR_G_ExportToIsoWkb(OGRGeometryH, OGRwkbByteOrder,
125 unsigned char *);
126
127 OGRwkbExportOptions CPL_DLL *OGRwkbExportOptionsCreate(void);
128 void CPL_DLL OGRwkbExportOptionsDestroy(OGRwkbExportOptions *);
129 void CPL_DLL OGRwkbExportOptionsSetByteOrder(OGRwkbExportOptions *,
130 OGRwkbByteOrder);
131 void CPL_DLL OGRwkbExportOptionsSetVariant(OGRwkbExportOptions *,
132 OGRwkbVariant);
133 void CPL_DLL OGRwkbExportOptionsSetPrecision(OGRwkbExportOptions *,
134 OGRGeomCoordinatePrecisionH);
135 OGRErr CPL_DLL OGR_G_ExportToWkbEx(OGRGeometryH, unsigned char *,
136 const OGRwkbExportOptions *);
137
138 int CPL_DLL OGR_G_WkbSize(OGRGeometryH hGeom);
139 size_t CPL_DLL OGR_G_WkbSizeEx(OGRGeometryH hGeom);
140 OGRErr CPL_DLL OGR_G_ImportFromWkt(OGRGeometryH, char **);
141 OGRErr CPL_DLL OGR_G_ExportToWkt(OGRGeometryH, char **);
142 OGRErr CPL_DLL OGR_G_ExportToIsoWkt(OGRGeometryH, char **);
143 OGRwkbGeometryType CPL_DLL OGR_G_GetGeometryType(OGRGeometryH);
144 const char CPL_DLL *OGR_G_GetGeometryName(OGRGeometryH);
145 void CPL_DLL OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *);
146 void CPL_DLL OGR_G_FlattenTo2D(OGRGeometryH);
147 void CPL_DLL OGR_G_CloseRings(OGRGeometryH);
148
149 OGRGeometryH CPL_DLL OGR_G_CreateFromGML(const char *) CPL_WARN_UNUSED_RESULT;
150 char CPL_DLL *OGR_G_ExportToGML(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
151 char CPL_DLL *OGR_G_ExportToGMLEx(OGRGeometryH,
152 char **papszOptions) CPL_WARN_UNUSED_RESULT;
153
154 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree(const CPLXMLNode *)
155 CPL_WARN_UNUSED_RESULT;
156 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
157 CPLXMLNode CPL_DLL *
158 OGR_G_ExportEnvelopeToGMLTree(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
159
160 char CPL_DLL *OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
161 CPL_WARN_UNUSED_RESULT;
162
163 char CPL_DLL *OGR_G_ExportToJson(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
164 char CPL_DLL *OGR_G_ExportToJsonEx(OGRGeometryH,
165 char **papszOptions) CPL_WARN_UNUSED_RESULT;
167 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromJson(const char *)
168 CPL_WARN_UNUSED_RESULT;
170 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromEsriJson(const char *)
171 CPL_WARN_UNUSED_RESULT;
172
173 void CPL_DLL OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH);
174 OGRSpatialReferenceH CPL_DLL OGR_G_GetSpatialReference(OGRGeometryH);
175 OGRErr CPL_DLL OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH);
176 OGRErr CPL_DLL OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH);
177
178 OGRGeomTransformerH CPL_DLL
179 OGR_GeomTransformer_Create(OGRCoordinateTransformationH,
180 CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
181 OGRGeometryH CPL_DLL
182 OGR_GeomTransformer_Transform(OGRGeomTransformerH hTransformer,
183 OGRGeometryH hGeom) CPL_WARN_UNUSED_RESULT;
184 void CPL_DLL OGR_GeomTransformer_Destroy(OGRGeomTransformerH hTransformer);
185
186 OGRGeometryH CPL_DLL OGR_G_Simplify(OGRGeometryH hThis,
187 double tolerance) CPL_WARN_UNUSED_RESULT;
188 OGRGeometryH CPL_DLL OGR_G_SimplifyPreserveTopology(
189 OGRGeometryH hThis, double tolerance) CPL_WARN_UNUSED_RESULT;
190 OGRGeometryH CPL_DLL
191 OGR_G_DelaunayTriangulation(OGRGeometryH hThis, double dfTolerance,
192 int bOnlyEdges) CPL_WARN_UNUSED_RESULT;
193 OGRGeometryH CPL_DLL OGR_G_ConstrainedDelaunayTriangulation(OGRGeometryH hThis)
194 CPL_WARN_UNUSED_RESULT;
195
196 void CPL_DLL OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength);
197 int CPL_DLL OGR_G_Intersects(OGRGeometryH, OGRGeometryH);
198 int CPL_DLL OGR_G_Equals(OGRGeometryH, OGRGeometryH);
199/*int CPL_DLL OGR_G_EqualsExact( OGRGeometryH, OGRGeometryH, double );*/
200 int CPL_DLL OGR_G_Disjoint(OGRGeometryH, OGRGeometryH);
201 int CPL_DLL OGR_G_Touches(OGRGeometryH, OGRGeometryH);
202 int CPL_DLL OGR_G_Crosses(OGRGeometryH, OGRGeometryH);
203 int CPL_DLL OGR_G_Within(OGRGeometryH, OGRGeometryH);
204 int CPL_DLL OGR_G_Contains(OGRGeometryH, OGRGeometryH);
205 int CPL_DLL OGR_G_Overlaps(OGRGeometryH, OGRGeometryH);
206
207 OGRGeometryH CPL_DLL OGR_G_Boundary(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
208 OGRGeometryH CPL_DLL OGR_G_ConvexHull(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
209 OGRGeometryH CPL_DLL OGR_G_ConcaveHull(OGRGeometryH, double dfRatio,
210 bool bAllowHoles) CPL_WARN_UNUSED_RESULT;
211 OGRGeometryH CPL_DLL OGR_G_Buffer(OGRGeometryH, double dfDist,
212 int nQuadSegs) CPL_WARN_UNUSED_RESULT;
213 OGRGeometryH CPL_DLL OGR_G_BufferEx(OGRGeometryH, double dfDist,
214 CSLConstList papszOptions)
215 CPL_WARN_UNUSED_RESULT;
216 OGRGeometryH CPL_DLL OGR_G_Intersection(OGRGeometryH,
217 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
218 OGRGeometryH CPL_DLL OGR_G_Union(OGRGeometryH,
219 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
220 OGRGeometryH CPL_DLL OGR_G_UnionCascaded(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
221 OGRGeometryH CPL_DLL OGR_G_UnaryUnion(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
222 OGRGeometryH CPL_DLL OGR_G_PointOnSurface(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
223/*OGRGeometryH CPL_DLL OGR_G_Polygonize( OGRGeometryH *, int);*/
224/*OGRGeometryH CPL_DLL OGR_G_Polygonizer_getCutEdges( OGRGeometryH *, int);*/
225/*OGRGeometryH CPL_DLL OGR_G_LineMerge( OGRGeometryH );*/
226
227 OGRGeometryH CPL_DLL OGR_G_Difference(OGRGeometryH,
228 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
229 OGRGeometryH CPL_DLL OGR_G_SymDifference(OGRGeometryH,
230 OGRGeometryH) CPL_WARN_UNUSED_RESULT;
231 double CPL_DLL OGR_G_Distance(OGRGeometryH, OGRGeometryH);
232 double CPL_DLL OGR_G_Distance3D(OGRGeometryH, OGRGeometryH);
233 double CPL_DLL OGR_G_Length(OGRGeometryH);
234 double CPL_DLL OGR_G_GeodesicLength(OGRGeometryH);
235 double CPL_DLL OGR_G_Area(OGRGeometryH);
236 double CPL_DLL OGR_G_GeodesicArea(OGRGeometryH);
237 bool CPL_DLL OGR_G_IsClockwise(OGRGeometryH hGeom);
238 int CPL_DLL OGR_G_Centroid(OGRGeometryH, OGRGeometryH);
239 OGRGeometryH CPL_DLL OGR_G_Value(OGRGeometryH,
240 double dfDistance) CPL_WARN_UNUSED_RESULT;
241
242 void CPL_DLL OGR_G_Empty(OGRGeometryH);
243 int CPL_DLL OGR_G_IsEmpty(OGRGeometryH);
244 int CPL_DLL OGR_G_IsValid(OGRGeometryH);
245/*char CPL_DLL *OGR_G_IsValidReason( OGRGeometryH );*/
246 OGRGeometryH CPL_DLL OGR_G_MakeValid(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
247 OGRGeometryH CPL_DLL OGR_G_MakeValidEx(OGRGeometryH,
248 CSLConstList) CPL_WARN_UNUSED_RESULT;
249 OGRGeometryH CPL_DLL OGR_G_Normalize(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
250 int CPL_DLL OGR_G_IsSimple(OGRGeometryH);
251 int CPL_DLL OGR_G_IsRing(OGRGeometryH);
252
255#define OGR_GEOS_PREC_NO_TOPO (1 << 0)
256
259#define OGR_GEOS_PREC_KEEP_COLLAPSED (1 << 1)
260
261 OGRGeometryH CPL_DLL OGR_G_SetPrecision(OGRGeometryH, double dfGridSize,
262 int nFlags) CPL_WARN_UNUSED_RESULT;
263
264 OGRGeometryH CPL_DLL OGR_G_Polygonize(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
265 OGRGeometryH CPL_DLL OGR_G_BuildArea(OGRGeometryH) CPL_WARN_UNUSED_RESULT;
266
268/* backward compatibility (non-standard methods) */
269 int CPL_DLL OGR_G_Intersect(OGRGeometryH, OGRGeometryH)
270 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Intersects() instead");
271 int CPL_DLL OGR_G_Equal(OGRGeometryH, OGRGeometryH)
272 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Equals() instead");
273 OGRGeometryH CPL_DLL OGR_G_SymmetricDifference(OGRGeometryH, OGRGeometryH)
274 CPL_WARN_DEPRECATED(
275 "Non standard method. Use OGR_G_SymDifference() instead");
276 double CPL_DLL OGR_G_GetArea(OGRGeometryH)
277 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead");
278 OGRGeometryH CPL_DLL OGR_G_GetBoundary(OGRGeometryH)
279 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead");
282/* Methods for getting/setting vertices in points, line strings and rings */
283 int CPL_DLL OGR_G_GetPointCount(OGRGeometryH);
284 int CPL_DLL OGR_G_GetPoints(OGRGeometryH hGeom, void *pabyX, int nXStride,
285 void *pabyY, int nYStride, void *pabyZ,
286 int nZStride);
287 int CPL_DLL OGR_G_GetPointsZM(OGRGeometryH hGeom, void *pabyX, int nXStride,
288 void *pabyY, int nYStride, void *pabyZ,
289 int nZStride, void *pabyM, int nMStride);
290 double CPL_DLL OGR_G_GetX(OGRGeometryH, int);
291 double CPL_DLL OGR_G_GetY(OGRGeometryH, int);
292 double CPL_DLL OGR_G_GetZ(OGRGeometryH, int);
293 double CPL_DLL OGR_G_GetM(OGRGeometryH, int);
294 void CPL_DLL OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *,
295 double *);
296 void CPL_DLL OGR_G_GetPointZM(OGRGeometryH, int iPoint, double *, double *,
297 double *, double *);
298 void CPL_DLL OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount);
299 void CPL_DLL OGR_G_SetPoint(OGRGeometryH, int iPoint, double, double, double);
300 void CPL_DLL OGR_G_SetPoint_2D(OGRGeometryH, int iPoint, double, double);
301 void CPL_DLL OGR_G_SetPointM(OGRGeometryH, int iPoint, double, double, double);
302 void CPL_DLL OGR_G_SetPointZM(OGRGeometryH, int iPoint, double, double, double,
303 double);
304 void CPL_DLL OGR_G_AddPoint(OGRGeometryH, double, double, double);
305 void CPL_DLL OGR_G_AddPoint_2D(OGRGeometryH, double, double);
306 void CPL_DLL OGR_G_AddPointM(OGRGeometryH, double, double, double);
307 void CPL_DLL OGR_G_AddPointZM(OGRGeometryH, double, double, double, double);
308 void CPL_DLL OGR_G_SetPoints(OGRGeometryH hGeom, int nPointsIn,
309 const void *pabyX, int nXStride, const void *pabyY,
310 int nYStride, const void *pabyZ, int nZStride);
311 void CPL_DLL OGR_G_SetPointsZM(OGRGeometryH hGeom, int nPointsIn,
312 const void *pabyX, int nXStride,
313 const void *pabyY, int nYStride,
314 const void *pabyZ, int nZStride,
315 const void *pabyM, int nMStride);
316 void CPL_DLL OGR_G_SwapXY(OGRGeometryH hGeom);
317
318/* Methods for getting/setting rings and members collections */
319
320 int CPL_DLL OGR_G_GetGeometryCount(OGRGeometryH);
321 OGRGeometryH CPL_DLL OGR_G_GetGeometryRef(OGRGeometryH, int);
322 OGRErr CPL_DLL OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH);
323 OGRErr CPL_DLL OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH);
324 OGRErr CPL_DLL OGR_G_RemoveGeometry(OGRGeometryH, int, int);
325
326 int CPL_DLL OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear);
327 OGRGeometryH CPL_DLL
328 OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees,
329 char **papszOptions) CPL_WARN_UNUSED_RESULT;
330 OGRGeometryH CPL_DLL OGR_G_GetCurveGeometry(
331 OGRGeometryH hGeom, char **papszOptions) CPL_WARN_UNUSED_RESULT;
332
333 OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges(
334 OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose,
335 double dfTolerance, OGRErr *peErr) CPL_WARN_UNUSED_RESULT;
336
338 OGRErr CPL_DLL
339OGRSetGenerate_DB2_V72_BYTE_ORDER(int bGenerate_DB2_V72_BYTE_ORDER);
340
341 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(void);
344 void CPL_DLL OGRSetNonLinearGeometriesEnabledFlag(int bFlag);
345 int CPL_DLL OGRGetNonLinearGeometriesEnabledFlag(void);
346
347 int CPL_DLL OGRHasPreparedGeometrySupport(void);
348 OGRPreparedGeometryH CPL_DLL OGRCreatePreparedGeometry(OGRGeometryH hGeom);
349 void CPL_DLL OGRDestroyPreparedGeometry(OGRPreparedGeometryH hPreparedGeom);
350 int CPL_DLL OGRPreparedGeometryIntersects(OGRPreparedGeometryH hPreparedGeom,
351 OGRGeometryH hOtherGeom);
352 int CPL_DLL OGRPreparedGeometryContains(OGRPreparedGeometryH hPreparedGeom,
353 OGRGeometryH hOtherGeom);
354
355/* -------------------------------------------------------------------- */
356/* Feature related (ogr_feature.h) */
357/* -------------------------------------------------------------------- */
358
359/* OGRFieldDefn */
360
361 OGRFieldDefnH CPL_DLL OGR_Fld_Create(const char *,
362 OGRFieldType) CPL_WARN_UNUSED_RESULT;
363 void CPL_DLL OGR_Fld_Destroy(OGRFieldDefnH);
364
365 void CPL_DLL OGR_Fld_SetName(OGRFieldDefnH, const char *);
366 const char CPL_DLL *OGR_Fld_GetNameRef(OGRFieldDefnH);
367 void CPL_DLL OGR_Fld_SetAlternativeName(OGRFieldDefnH, const char *);
368 const char CPL_DLL *OGR_Fld_GetAlternativeNameRef(OGRFieldDefnH);
369 OGRFieldType CPL_DLL OGR_Fld_GetType(OGRFieldDefnH);
370 void CPL_DLL OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType);
371 OGRFieldSubType CPL_DLL OGR_Fld_GetSubType(OGRFieldDefnH);
372 void CPL_DLL OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType);
373 OGRJustification CPL_DLL OGR_Fld_GetJustify(OGRFieldDefnH);
374 void CPL_DLL OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification);
375 int CPL_DLL OGR_Fld_GetWidth(OGRFieldDefnH);
376 void CPL_DLL OGR_Fld_SetWidth(OGRFieldDefnH, int);
377 int CPL_DLL OGR_Fld_GetPrecision(OGRFieldDefnH);
378 void CPL_DLL OGR_Fld_SetPrecision(OGRFieldDefnH, int);
379 int CPL_DLL OGR_Fld_GetTZFlag(OGRFieldDefnH);
380 void CPL_DLL OGR_Fld_SetTZFlag(OGRFieldDefnH, int);
381 void CPL_DLL OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int,
382 OGRJustification);
383 int CPL_DLL OGR_Fld_IsIgnored(OGRFieldDefnH hDefn);
384 void CPL_DLL OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int);
385 int CPL_DLL OGR_Fld_IsNullable(OGRFieldDefnH hDefn);
386 void CPL_DLL OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int);
387 void CPL_DLL OGR_Fld_SetGenerated(OGRFieldDefnH hDefn, int);
388 int CPL_DLL OGR_Fld_IsGenerated(OGRFieldDefnH hDefn);
389 int CPL_DLL OGR_Fld_IsUnique(OGRFieldDefnH hDefn);
390 void CPL_DLL OGR_Fld_SetUnique(OGRFieldDefnH hDefn, int);
391 const char CPL_DLL *OGR_Fld_GetDefault(OGRFieldDefnH hDefn);
392 void CPL_DLL OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *);
393 int CPL_DLL OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn);
394 const char CPL_DLL *OGR_Fld_GetDomainName(OGRFieldDefnH hDefn);
395 void CPL_DLL OGR_Fld_SetDomainName(OGRFieldDefnH hDefn, const char *);
396 const char CPL_DLL *OGR_Fld_GetComment(OGRFieldDefnH hDefn);
397 void CPL_DLL OGR_Fld_SetComment(OGRFieldDefnH hDefn, const char *);
398
399 const char CPL_DLL *OGR_GetFieldTypeName(OGRFieldType);
400 OGRFieldType CPL_DLL OGR_GetFieldTypeByName(const char *);
401 const char CPL_DLL *OGR_GetFieldSubTypeName(OGRFieldSubType);
402 OGRFieldSubType CPL_DLL OGR_GetFieldSubTypeByName(const char *);
403 int CPL_DLL OGR_AreTypeSubTypeCompatible(OGRFieldType eType,
404 OGRFieldSubType eSubType);
405
406/* OGRGeomFieldDefnH */
407
408 OGRGeomFieldDefnH CPL_DLL OGR_GFld_Create(const char *, OGRwkbGeometryType)
409 CPL_WARN_UNUSED_RESULT;
410 void CPL_DLL OGR_GFld_Destroy(OGRGeomFieldDefnH);
411
412 void CPL_DLL OGR_GFld_SetName(OGRGeomFieldDefnH, const char *);
413 const char CPL_DLL *OGR_GFld_GetNameRef(OGRGeomFieldDefnH);
414
415 OGRwkbGeometryType CPL_DLL OGR_GFld_GetType(OGRGeomFieldDefnH);
416 void CPL_DLL OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType);
417
418 OGRSpatialReferenceH CPL_DLL OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH);
419 void CPL_DLL OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH,
420 OGRSpatialReferenceH hSRS);
421
422 int CPL_DLL OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn);
423 void CPL_DLL OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int);
424
425 int CPL_DLL OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn);
426 void CPL_DLL OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int);
427
428 OGRGeomCoordinatePrecisionH
429 CPL_DLL OGR_GFld_GetCoordinatePrecision(OGRGeomFieldDefnH);
430 void CPL_DLL OGR_GFld_SetCoordinatePrecision(OGRGeomFieldDefnH,
431 OGRGeomCoordinatePrecisionH);
432
433/* OGRFeatureDefn */
434
435 OGRFeatureDefnH CPL_DLL OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT;
436 void CPL_DLL OGR_FD_Destroy(OGRFeatureDefnH);
437 void CPL_DLL OGR_FD_Release(OGRFeatureDefnH);
438 const char CPL_DLL *OGR_FD_GetName(OGRFeatureDefnH);
439 int CPL_DLL OGR_FD_GetFieldCount(OGRFeatureDefnH);
440 OGRFieldDefnH CPL_DLL OGR_FD_GetFieldDefn(OGRFeatureDefnH, int);
441 int CPL_DLL OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *);
442 void CPL_DLL OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH);
443 OGRErr CPL_DLL OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField);
444 OGRErr CPL_DLL OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn,
445 const int *panMap);
446 OGRwkbGeometryType CPL_DLL OGR_FD_GetGeomType(OGRFeatureDefnH);
447 void CPL_DLL OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType);
448 int CPL_DLL OGR_FD_IsGeometryIgnored(OGRFeatureDefnH);
449 void CPL_DLL OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int);
450 int CPL_DLL OGR_FD_IsStyleIgnored(OGRFeatureDefnH);
451 void CPL_DLL OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int);
452 int CPL_DLL OGR_FD_Reference(OGRFeatureDefnH);
453 int CPL_DLL OGR_FD_Dereference(OGRFeatureDefnH);
454 int CPL_DLL OGR_FD_GetReferenceCount(OGRFeatureDefnH);
455
456 int CPL_DLL OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn);
457 OGRGeomFieldDefnH CPL_DLL OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn,
458 int i);
459 int CPL_DLL OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn,
460 const char *pszName);
461
462 void CPL_DLL OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn,
463 OGRGeomFieldDefnH hGFldDefn);
464 OGRErr CPL_DLL OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn,
465 int iGeomField);
466 int CPL_DLL OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn);
467/* OGRFeature */
468
469 OGRFeatureH CPL_DLL OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT;
470 void CPL_DLL OGR_F_Destroy(OGRFeatureH);
471 OGRFeatureDefnH CPL_DLL OGR_F_GetDefnRef(OGRFeatureH);
472
473 OGRErr CPL_DLL OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH);
474 OGRErr CPL_DLL OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH);
475 OGRGeometryH CPL_DLL OGR_F_GetGeometryRef(OGRFeatureH);
476 OGRGeometryH CPL_DLL OGR_F_StealGeometry(OGRFeatureH) CPL_WARN_UNUSED_RESULT;
477 OGRGeometryH CPL_DLL OGR_F_StealGeometryEx(OGRFeatureH, int iGeomField)
478 CPL_WARN_UNUSED_RESULT;
479 OGRFeatureH CPL_DLL OGR_F_Clone(OGRFeatureH) CPL_WARN_UNUSED_RESULT;
480 int CPL_DLL OGR_F_Equal(OGRFeatureH, OGRFeatureH);
481
482 int CPL_DLL OGR_F_GetFieldCount(OGRFeatureH);
483 OGRFieldDefnH CPL_DLL OGR_F_GetFieldDefnRef(OGRFeatureH, int);
484 int CPL_DLL OGR_F_GetFieldIndex(OGRFeatureH, const char *);
485
486 int CPL_DLL OGR_F_IsFieldSet(OGRFeatureH, int);
487 void CPL_DLL OGR_F_UnsetField(OGRFeatureH, int);
488
489 int CPL_DLL OGR_F_IsFieldNull(OGRFeatureH, int);
490 int CPL_DLL OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int);
491 void CPL_DLL OGR_F_SetFieldNull(OGRFeatureH, int);
492
493 OGRField CPL_DLL *OGR_F_GetRawFieldRef(OGRFeatureH, int);
494
495 int CPL_DLL OGR_RawField_IsUnset(const OGRField *);
496 int CPL_DLL OGR_RawField_IsNull(const OGRField *);
497 void CPL_DLL OGR_RawField_SetUnset(OGRField *);
498 void CPL_DLL OGR_RawField_SetNull(OGRField *);
499
500 int CPL_DLL OGR_F_GetFieldAsInteger(OGRFeatureH, int);
501 GIntBig CPL_DLL OGR_F_GetFieldAsInteger64(OGRFeatureH, int);
502 double CPL_DLL OGR_F_GetFieldAsDouble(OGRFeatureH, int);
503 const char CPL_DLL *OGR_F_GetFieldAsString(OGRFeatureH, int);
504 const char CPL_DLL *OGR_F_GetFieldAsISO8601DateTime(OGRFeatureH, int,
505 CSLConstList);
506 const int CPL_DLL *OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *);
507 const GIntBig CPL_DLL *OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *);
508 const double CPL_DLL *OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *);
509 char CPL_DLL **OGR_F_GetFieldAsStringList(OGRFeatureH, int);
510 GByte CPL_DLL *OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *);
511 int CPL_DLL OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *,
512 int *, int *, int *, int *);
513 int CPL_DLL OGR_F_GetFieldAsDateTimeEx(OGRFeatureH hFeat, int iField,
514 int *pnYear, int *pnMonth, int *pnDay,
515 int *pnHour, int *pnMinute,
516 float *pfSecond, int *pnTZFlag);
517
518 void CPL_DLL OGR_F_SetFieldInteger(OGRFeatureH, int, int);
519 void CPL_DLL OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig);
520 void CPL_DLL OGR_F_SetFieldDouble(OGRFeatureH, int, double);
521 void CPL_DLL OGR_F_SetFieldString(OGRFeatureH, int, const char *);
522 void CPL_DLL OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *);
523 void CPL_DLL OGR_F_SetFieldInteger64List(OGRFeatureH, int, int,
524 const GIntBig *);
525 void CPL_DLL OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *);
526 void CPL_DLL OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList);
527 void CPL_DLL OGR_F_SetFieldRaw(OGRFeatureH, int, const OGRField *);
528 void CPL_DLL OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *);
529 void CPL_DLL OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int,
530 int, int);
531 void CPL_DLL OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int,
532 float, int);
533
534 int CPL_DLL OGR_F_GetGeomFieldCount(OGRFeatureH hFeat);
535 OGRGeomFieldDefnH CPL_DLL OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat,
536 int iField);
537 int CPL_DLL OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName);
538
539 OGRGeometryH CPL_DLL OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField);
540 OGRErr CPL_DLL OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField,
541 OGRGeometryH hGeom);
542 OGRErr CPL_DLL OGR_F_SetGeomField(OGRFeatureH hFeat, int iField,
543 OGRGeometryH hGeom);
544
545 GIntBig CPL_DLL OGR_F_GetFID(OGRFeatureH);
546 OGRErr CPL_DLL OGR_F_SetFID(OGRFeatureH, GIntBig);
547 void CPL_DLL OGR_F_DumpReadable(OGRFeatureH, FILE *);
548 char CPL_DLL *OGR_F_DumpReadableAsString(OGRFeatureH,
549 CSLConstList) CPL_WARN_UNUSED_RESULT;
550 OGRErr CPL_DLL OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int);
551 OGRErr CPL_DLL OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *);
552
553 const char CPL_DLL *OGR_F_GetStyleString(OGRFeatureH);
554 void CPL_DLL OGR_F_SetStyleString(OGRFeatureH, const char *);
555 void CPL_DLL OGR_F_SetStyleStringDirectly(OGRFeatureH, char *);
557 OGRStyleTableH CPL_DLL OGR_F_GetStyleTable(OGRFeatureH);
559 void CPL_DLL OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH);
561 void CPL_DLL OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH);
562
563 const char CPL_DLL *OGR_F_GetNativeData(OGRFeatureH);
564 void CPL_DLL OGR_F_SetNativeData(OGRFeatureH, const char *);
565 const char CPL_DLL *OGR_F_GetNativeMediaType(OGRFeatureH);
566 void CPL_DLL OGR_F_SetNativeMediaType(OGRFeatureH, const char *);
567
568 void CPL_DLL OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly,
569 char **papszOptions);
570 int CPL_DLL OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError);
571
572/* OGRFieldDomain */
573
574 void CPL_DLL OGR_FldDomain_Destroy(OGRFieldDomainH);
575 const char CPL_DLL *OGR_FldDomain_GetName(OGRFieldDomainH);
576 const char CPL_DLL *OGR_FldDomain_GetDescription(OGRFieldDomainH);
577 OGRFieldDomainType CPL_DLL OGR_FldDomain_GetDomainType(OGRFieldDomainH);
578 OGRFieldType CPL_DLL OGR_FldDomain_GetFieldType(OGRFieldDomainH);
579 OGRFieldSubType CPL_DLL OGR_FldDomain_GetFieldSubType(OGRFieldDomainH);
580 OGRFieldDomainSplitPolicy CPL_DLL OGR_FldDomain_GetSplitPolicy(OGRFieldDomainH);
581 void CPL_DLL OGR_FldDomain_SetSplitPolicy(OGRFieldDomainH,
582 OGRFieldDomainSplitPolicy);
583 OGRFieldDomainMergePolicy CPL_DLL OGR_FldDomain_GetMergePolicy(OGRFieldDomainH);
584 void CPL_DLL OGR_FldDomain_SetMergePolicy(OGRFieldDomainH,
585 OGRFieldDomainMergePolicy);
586
587 OGRFieldDomainH CPL_DLL OGR_CodedFldDomain_Create(
588 const char *pszName, const char *pszDescription, OGRFieldType eFieldType,
589 OGRFieldSubType eFieldSubType, const OGRCodedValue *enumeration);
590 const OGRCodedValue CPL_DLL *OGR_CodedFldDomain_GetEnumeration(OGRFieldDomainH);
591
592 OGRFieldDomainH CPL_DLL OGR_RangeFldDomain_Create(
593 const char *pszName, const char *pszDescription, OGRFieldType eFieldType,
594 OGRFieldSubType eFieldSubType, const OGRField *psMin, bool bMinIsInclusive,
595 const OGRField *psMax, bool bMaxIsInclusive);
596 const OGRField CPL_DLL *OGR_RangeFldDomain_GetMin(OGRFieldDomainH,
597 bool *pbIsInclusiveOut);
598 const OGRField CPL_DLL *OGR_RangeFldDomain_GetMax(OGRFieldDomainH,
599 bool *pbIsInclusiveOut);
600
601 OGRFieldDomainH CPL_DLL OGR_GlobFldDomain_Create(const char *pszName,
602 const char *pszDescription,
603 OGRFieldType eFieldType,
604 OGRFieldSubType eFieldSubType,
605 const char *pszGlob);
606 const char CPL_DLL *OGR_GlobFldDomain_GetGlob(OGRFieldDomainH);
607
608/* -------------------------------------------------------------------- */
609/* ogrsf_frmts.h */
610/* -------------------------------------------------------------------- */
611
612/* OGRLayer */
613
614 const char CPL_DLL *OGR_L_GetName(OGRLayerH);
615 OGRwkbGeometryType CPL_DLL OGR_L_GetGeomType(OGRLayerH);
616
617/* Defined in gdal.h to avoid circular dependency with ogr_api.h */
618/* GDALDatasetH CPL_DLL OGR_L_GetDataset(OGRLayerH hLayer); */
619
621 typedef struct
622{
624 OGRwkbGeometryType eGeomType;
626 int64_t nCount;
627} OGRGeometryTypeCounter;
628
631#define OGR_GGT_COUNT_NOT_NEEDED 0x1
634#define OGR_GGT_STOP_IF_MIXED 0x2
637#define OGR_GGT_GEOMCOLLECTIONZ_TINZ 0x4
638 OGRGeometryTypeCounter CPL_DLL *
639 OGR_L_GetGeometryTypes(OGRLayerH hLayer, int iGeomField, int nFlags,
640 int *pnEntryCount, GDALProgressFunc pfnProgress,
641 void *pProgressData);
642
643 OGRGeometryH CPL_DLL OGR_L_GetSpatialFilter(OGRLayerH);
644 void CPL_DLL OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH);
645 void CPL_DLL OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double,
646 double);
647 void CPL_DLL OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField,
648 OGRGeometryH hGeom);
649 void CPL_DLL OGR_L_SetSpatialFilterRectEx(OGRLayerH, int iGeomField,
650 double dfMinX, double dfMinY,
651 double dfMaxX, double dfMaxY);
652 OGRErr CPL_DLL OGR_L_SetAttributeFilter(OGRLayerH, const char *);
653 void CPL_DLL OGR_L_ResetReading(OGRLayerH);
654 OGRFeatureH CPL_DLL OGR_L_GetNextFeature(OGRLayerH) CPL_WARN_UNUSED_RESULT;
655
681#define OGR_FOR_EACH_FEATURE_BEGIN(hFeat, hLayer) \
682 { \
683 OGRFeatureH hFeat = CPL_NULLPTR; \
684 OGR_L_ResetReading(hLayer); \
685 while (true) \
686 { \
687 if (hFeat) \
688 OGR_F_Destroy(hFeat); \
689 hFeat = OGR_L_GetNextFeature(hLayer); \
690 if (!hFeat) \
691 break;
692
694#define OGR_FOR_EACH_FEATURE_END(hFeat) \
695 } \
696 OGR_F_Destroy(hFeat); \
697 }
698
701 struct ArrowArrayStream;
702
703 bool CPL_DLL OGR_L_GetArrowStream(OGRLayerH hLayer,
704 struct ArrowArrayStream *out_stream,
705 char **papszOptions);
706
709 struct ArrowSchema;
710
711 bool CPL_DLL OGR_L_IsArrowSchemaSupported(OGRLayerH hLayer,
712 const struct ArrowSchema *schema,
713 char **papszOptions,
714 char **ppszErrorMsg);
715 bool CPL_DLL OGR_L_CreateFieldFromArrowSchema(OGRLayerH hLayer,
716 const struct ArrowSchema *schema,
717 char **papszOptions);
718
721 struct ArrowArray;
722
723 bool CPL_DLL OGR_L_WriteArrowBatch(OGRLayerH hLayer,
724 const struct ArrowSchema *schema,
725 struct ArrowArray *array,
726 char **papszOptions);
727
728 OGRErr CPL_DLL OGR_L_SetNextByIndex(OGRLayerH, GIntBig);
729 OGRFeatureH CPL_DLL OGR_L_GetFeature(OGRLayerH, GIntBig) CPL_WARN_UNUSED_RESULT;
730 OGRErr CPL_DLL OGR_L_SetFeature(OGRLayerH, OGRFeatureH) CPL_WARN_UNUSED_RESULT;
731 OGRErr CPL_DLL OGR_L_CreateFeature(OGRLayerH,
732 OGRFeatureH) CPL_WARN_UNUSED_RESULT;
733 OGRErr CPL_DLL OGR_L_DeleteFeature(OGRLayerH, GIntBig) CPL_WARN_UNUSED_RESULT;
734 OGRErr CPL_DLL OGR_L_UpsertFeature(OGRLayerH,
735 OGRFeatureH) CPL_WARN_UNUSED_RESULT;
736 OGRErr CPL_DLL
737 OGR_L_UpdateFeature(OGRLayerH, OGRFeatureH, int nUpdatedFieldsCount,
738 const int *panUpdatedFieldsIdx, int nUpdatedGeomFieldsCount,
739 const int *panUpdatedGeomFieldsIdx,
740 bool bUpdateStyleString) CPL_WARN_UNUSED_RESULT;
741 OGRFeatureDefnH CPL_DLL OGR_L_GetLayerDefn(OGRLayerH);
742 OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef(OGRLayerH);
743 OGRSpatialReferenceH CPL_DLL *
744 OGR_L_GetSupportedSRSList(OGRLayerH hLayer, int iGeomField, int *pnCount);
745 OGRErr CPL_DLL OGR_L_SetActiveSRS(OGRLayerH hLayer, int iGeomField,
746 OGRSpatialReferenceH hSRS);
747 int CPL_DLL OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch);
748 GIntBig CPL_DLL OGR_L_GetFeatureCount(OGRLayerH, int);
749 OGRErr CPL_DLL OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int);
750 OGRErr CPL_DLL OGR_L_GetExtentEx(OGRLayerH, int iGeomField,
751 OGREnvelope *psExtent, int bForce);
752 OGRErr CPL_DLL OGR_L_GetExtent3D(OGRLayerH hLayer, int iGeomField,
753 OGREnvelope3D *psExtent3D, int bForce);
754 int CPL_DLL OGR_L_TestCapability(OGRLayerH, const char *);
755 OGRErr CPL_DLL OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int);
756 OGRErr CPL_DLL OGR_L_CreateGeomField(OGRLayerH hLayer,
757 OGRGeomFieldDefnH hFieldDefn, int bForce);
758 OGRErr CPL_DLL OGR_L_DeleteField(OGRLayerH, int iField);
759 OGRErr CPL_DLL OGR_L_ReorderFields(OGRLayerH, int *panMap);
760 OGRErr CPL_DLL OGR_L_ReorderField(OGRLayerH, int iOldFieldPos,
761 int iNewFieldPos);
762 OGRErr CPL_DLL OGR_L_AlterFieldDefn(OGRLayerH, int iField,
763 OGRFieldDefnH hNewFieldDefn, int nFlags);
764 OGRErr CPL_DLL OGR_L_AlterGeomFieldDefn(OGRLayerH, int iField,
765 OGRGeomFieldDefnH hNewGeomFieldDefn,
766 int nFlags);
767 OGRErr CPL_DLL OGR_L_StartTransaction(OGRLayerH) CPL_WARN_UNUSED_RESULT;
768 OGRErr CPL_DLL OGR_L_CommitTransaction(OGRLayerH) CPL_WARN_UNUSED_RESULT;
769 OGRErr CPL_DLL OGR_L_RollbackTransaction(OGRLayerH);
770 OGRErr CPL_DLL OGR_L_Rename(OGRLayerH hLayer, const char *pszNewName);
771
773 int CPL_DLL OGR_L_Reference(OGRLayerH);
774 int CPL_DLL OGR_L_Dereference(OGRLayerH);
775 int CPL_DLL OGR_L_GetRefCount(OGRLayerH);
777 OGRErr CPL_DLL OGR_L_SyncToDisk(OGRLayerH);
779 GIntBig CPL_DLL OGR_L_GetFeaturesRead(OGRLayerH);
781 const char CPL_DLL *OGR_L_GetFIDColumn(OGRLayerH);
782 const char CPL_DLL *OGR_L_GetGeometryColumn(OGRLayerH);
784 OGRStyleTableH CPL_DLL OGR_L_GetStyleTable(OGRLayerH);
786 void CPL_DLL OGR_L_SetStyleTableDirectly(OGRLayerH, OGRStyleTableH);
788 void CPL_DLL OGR_L_SetStyleTable(OGRLayerH, OGRStyleTableH);
789 OGRErr CPL_DLL OGR_L_SetIgnoredFields(OGRLayerH, const char **);
790 OGRErr CPL_DLL OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **,
791 GDALProgressFunc, void *);
792 OGRErr CPL_DLL OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **,
793 GDALProgressFunc, void *);
794 OGRErr CPL_DLL OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **,
795 GDALProgressFunc, void *);
796 OGRErr CPL_DLL OGR_L_Identity(OGRLayerH, OGRLayerH, OGRLayerH, char **,
797 GDALProgressFunc, void *);
798 OGRErr CPL_DLL OGR_L_Update(OGRLayerH, OGRLayerH, OGRLayerH, char **,
799 GDALProgressFunc, void *);
800 OGRErr CPL_DLL OGR_L_Clip(OGRLayerH, OGRLayerH, OGRLayerH, char **,
801 GDALProgressFunc, void *);
802 OGRErr CPL_DLL OGR_L_Erase(OGRLayerH, OGRLayerH, OGRLayerH, char **,
803 GDALProgressFunc, void *);
804
805/* OGRDataSource */
806
807 void CPL_DLL OGR_DS_Destroy(OGRDataSourceH);
808 const char CPL_DLL *OGR_DS_GetName(OGRDataSourceH);
809 int CPL_DLL OGR_DS_GetLayerCount(OGRDataSourceH);
810 OGRLayerH CPL_DLL OGR_DS_GetLayer(OGRDataSourceH, int);
811 OGRLayerH CPL_DLL OGR_DS_GetLayerByName(OGRDataSourceH, const char *);
812 OGRErr CPL_DLL OGR_DS_DeleteLayer(OGRDataSourceH, int);
813 OGRSFDriverH CPL_DLL OGR_DS_GetDriver(OGRDataSourceH);
814 OGRLayerH CPL_DLL OGR_DS_CreateLayer(OGRDataSourceH, const char *,
815 OGRSpatialReferenceH, OGRwkbGeometryType,
816 char **);
817 OGRLayerH CPL_DLL OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *,
818 char **);
819 int CPL_DLL OGR_DS_TestCapability(OGRDataSourceH, const char *);
820 OGRLayerH CPL_DLL OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH,
821 const char *);
822 void CPL_DLL OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH);
824 int CPL_DLL OGR_DS_Reference(OGRDataSourceH);
825 int CPL_DLL OGR_DS_Dereference(OGRDataSourceH);
826 int CPL_DLL OGR_DS_GetRefCount(OGRDataSourceH);
827 int CPL_DLL OGR_DS_GetSummaryRefCount(OGRDataSourceH);
830 OGRErr CPL_DLL OGR_DS_SyncToDisk(OGRDataSourceH);
832 OGRStyleTableH CPL_DLL OGR_DS_GetStyleTable(OGRDataSourceH);
834 void CPL_DLL OGR_DS_SetStyleTableDirectly(OGRDataSourceH, OGRStyleTableH);
836 void CPL_DLL OGR_DS_SetStyleTable(OGRDataSourceH, OGRStyleTableH);
837
838/* OGRSFDriver */
839
840 const char CPL_DLL *OGR_Dr_GetName(OGRSFDriverH);
841 OGRDataSourceH CPL_DLL OGR_Dr_Open(OGRSFDriverH, const char *,
842 int) CPL_WARN_UNUSED_RESULT;
843 int CPL_DLL OGR_Dr_TestCapability(OGRSFDriverH, const char *);
844 OGRDataSourceH CPL_DLL OGR_Dr_CreateDataSource(OGRSFDriverH, const char *,
845 char **) CPL_WARN_UNUSED_RESULT;
846 OGRDataSourceH CPL_DLL OGR_Dr_CopyDataSource(OGRSFDriverH, OGRDataSourceH,
847 const char *,
848 char **) CPL_WARN_UNUSED_RESULT;
849 OGRErr CPL_DLL OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *);
850
851/* OGRSFDriverRegistrar */
852
853 OGRDataSourceH CPL_DLL OGROpen(const char *, int,
854 OGRSFDriverH *) CPL_WARN_UNUSED_RESULT;
855 OGRDataSourceH CPL_DLL OGROpenShared(const char *, int,
856 OGRSFDriverH *) CPL_WARN_UNUSED_RESULT;
857 OGRErr CPL_DLL OGRReleaseDataSource(OGRDataSourceH);
859 void CPL_DLL OGRRegisterDriver(OGRSFDriverH);
860 void CPL_DLL OGRDeregisterDriver(OGRSFDriverH);
862 int CPL_DLL OGRGetDriverCount(void);
863 OGRSFDriverH CPL_DLL OGRGetDriver(int);
864 OGRSFDriverH CPL_DLL OGRGetDriverByName(const char *);
866 int CPL_DLL OGRGetOpenDSCount(void);
867 OGRDataSourceH CPL_DLL OGRGetOpenDS(int iDS);
870 void CPL_DLL OGRRegisterAll(void);
871
874 void CPL_DLL OGRCleanupAll(void);
875
876/* -------------------------------------------------------------------- */
877/* ogrsf_featurestyle.h */
878/* -------------------------------------------------------------------- */
879
880/* OGRStyleMgr */
881
882 OGRStyleMgrH CPL_DLL OGR_SM_Create(OGRStyleTableH hStyleTable)
883 CPL_WARN_UNUSED_RESULT;
884 void CPL_DLL OGR_SM_Destroy(OGRStyleMgrH hSM);
885
886 const char CPL_DLL *OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat);
887 int CPL_DLL OGR_SM_InitStyleString(OGRStyleMgrH hSM,
888 const char *pszStyleString);
889 int CPL_DLL OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString);
890 OGRStyleToolH CPL_DLL OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId,
891 const char *pszStyleString);
892 int CPL_DLL OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST);
893 int CPL_DLL OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName,
894 const char *pszStyleString);
895
896/* OGRStyleTool */
897
898 OGRStyleToolH CPL_DLL OGR_ST_Create(OGRSTClassId eClassId)
899 CPL_WARN_UNUSED_RESULT;
900 void CPL_DLL OGR_ST_Destroy(OGRStyleToolH hST);
901
902 OGRSTClassId CPL_DLL OGR_ST_GetType(OGRStyleToolH hST);
903
904 OGRSTUnitId CPL_DLL OGR_ST_GetUnit(OGRStyleToolH hST);
905 void CPL_DLL OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit,
906 double dfGroundPaperScale);
907
908 const char CPL_DLL *OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam,
909 int *bValueIsNull);
910 int CPL_DLL OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam,
911 int *bValueIsNull);
912 double CPL_DLL OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam,
913 int *bValueIsNull);
914 void CPL_DLL OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam,
915 const char *pszValue);
916 void CPL_DLL OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue);
917 void CPL_DLL OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue);
918 const char CPL_DLL *OGR_ST_GetStyleString(OGRStyleToolH hST);
919
920 int CPL_DLL OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor,
921 int *pnRed, int *pnGreen, int *pnBlue,
922 int *pnAlpha);
923
924/* OGRStyleTable */
925
926 OGRStyleTableH CPL_DLL OGR_STBL_Create(void) CPL_WARN_UNUSED_RESULT;
927 void CPL_DLL OGR_STBL_Destroy(OGRStyleTableH hSTBL);
928 int CPL_DLL OGR_STBL_AddStyle(OGRStyleTableH hStyleTable, const char *pszName,
929 const char *pszStyleString);
930 int CPL_DLL OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable,
931 const char *pszFilename);
932 int CPL_DLL OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable,
933 const char *pszFilename);
934 const char CPL_DLL *OGR_STBL_Find(OGRStyleTableH hStyleTable,
935 const char *pszName);
936 void CPL_DLL OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable);
937 const char CPL_DLL *OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable);
938 const char CPL_DLL *OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable);
939
940 CPL_C_END
941
942#endif /* ndef OGR_API_H_INCLUDED */
OGREnvelope3D
Simple container for a bounding region in 3D.
Definition ogr_core.h:199
OGREnvelope
Simple container for a bounding region (rectangle)
Definition ogr_core.h:44
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:289
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285
CSLConstList
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition cpl_port.h:1087
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:870
GByte
unsigned char GByte
Unsigned byte type.
Definition cpl_port.h:175
GIntBig
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition cpl_port.h:205
gdal_fwd.h
Forward definitions of GDAL/OGR/OSR C handle types.
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition gdal_fwd.h:197
OGRGeometryH
void * OGRGeometryH
Opaque type for a geometry.
Definition gdal_fwd.h:96
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition gdal_fwd.h:195
OGRStyleMgrH
void * OGRStyleMgrH
Style manager opaque type.
Definition gdal_fwd.h:177
OGRFieldDefnH
void * OGRFieldDefnH
Opaque type for a field definition (OGRFieldDefn)
Definition gdal_fwd.h:122
OGRLayerH
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition gdal_fwd.h:157
OGRFeatureDefnH
void * OGRFeatureDefnH
Opaque type for a feature definition (OGRFeatureDefn)
Definition gdal_fwd.h:124
OGRStyleToolH
void * OGRStyleToolH
Style tool opaque type.
Definition gdal_fwd.h:179
OGRFeatureH
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition gdal_fwd.h:141
OGRFieldDomainH
struct OGRFieldDomainHS * OGRFieldDomainH
Opaque type for a field domain definition (OGRFieldDomain)
Definition gdal_fwd.h:131
OGRGeomFieldDefnH
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn)
Definition gdal_fwd.h:128
OGRGeomTransformerH
struct OGRGeomTransformer * OGRGeomTransformerH
Opaque type for a geometry transformer.
Definition gdal_fwd.h:100
OGRSFDriverH
void * OGRSFDriverH
Opaque type for a OGR driver (OGRSFDriver) (deprecated)
Definition gdal_fwd.h:161
OGRPreparedGeometryH
struct _OGRPreparedGeometry * OGRPreparedGeometryH
Opaque type for a prepared geometry.
Definition gdal_fwd.h:109
OGRStyleTableH
void * OGRStyleTableH
Opaque type for a style table (OGRStyleTable)
Definition gdal_fwd.h:181
OGRDataSourceH
void * OGRDataSourceH
Opaque type for a OGR datasource (OGRDataSource) (deprecated)
Definition gdal_fwd.h:159
OGR_L_SetSpatialFilterEx
void OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField, OGRGeometryH hGeom)
Set a new spatial filter.
Definition ogrlayer.cpp:3500
OGR_F_SetGeomFieldDirectly
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition ogrfeature.cpp:985
OGR_L_SymDifference
OGRErr OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Symmetrical difference of two layers.
Definition ogrlayer.cpp:6496
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:1076
OGR_DS_SetStyleTable
void OGR_DS_SetStyleTable(OGRDataSourceH, OGRStyleTableH)
Set style table.
Definition ogrdatasource.cpp:595
OGR_DS_GetLayer
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition ogrdatasource.cpp:478
OGR_G_Simplify
OGRGeometryH OGR_G_Simplify(OGRGeometryH hThis, double tolerance)
Compute a simplified geometry.
Definition ogrgeometry.cpp:6378
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:1874
OGR_FldDomain_GetDomainType
OGRFieldDomainType OGR_FldDomain_GetDomainType(OGRFieldDomainH)
Get the type of the field domain.
Definition ogrfielddefn.cpp:2664
OGR_GFld_GetCoordinatePrecision
OGRGeomCoordinatePrecisionH OGR_GFld_GetCoordinatePrecision(OGRGeomFieldDefnH)
Return the coordinate precision associated to this geometry field.
Definition ogrgeomfielddefn.cpp:787
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:5999
OGR_L_GetFeatureCount
GIntBig OGR_L_GetFeatureCount(OGRLayerH, int)
Fetch the feature count in this layer.
Definition ogrlayer.cpp:250
OGR_Fld_SetGenerated
void OGR_Fld_SetGenerated(OGRFieldDefnH hDefn, int)
Set whether this field is a generated field.
Definition ogrfielddefn.cpp:1787
OGR_F_SetFieldNull
void OGR_F_SetFieldNull(OGRFeatureH, int)
Clear a field, marking it as null.
Definition ogrfeature.cpp:1837
OGRwkbExportOptionsDestroy
void OGRwkbExportOptionsDestroy(OGRwkbExportOptions *)
Destroy object returned by OGRwkbExportOptionsCreate()
Definition ogrgeometry.cpp:8777
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.
Definition ogrsfdriver.cpp:71
OGR_ST_GetStyleString
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition ogrfeaturestyle.cpp:2589
OGR_L_GetGeomType
OGRwkbGeometryType OGR_L_GetGeomType(OGRLayerH)
Return the layer geometry type.
Definition ogrlayer.cpp:4721
OGR_FD_GetGeomFieldCount
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition ogrfeaturedefn.cpp:678
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:429
OGR_Fld_GetJustify
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition ogrfielddefn.cpp:1155
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:2028
OGR_F_GetFieldAsInteger64
GIntBig OGR_F_GetFieldAsInteger64(OGRFeatureH, int)
Fetch field value as integer 64 bit.
Definition ogrfeature.cpp:2214
OGR_FldDomain_SetSplitPolicy
void OGR_FldDomain_SetSplitPolicy(OGRFieldDomainH, OGRFieldDomainSplitPolicy)
Set the split policy of the field domain.
Definition ogrfielddefn.cpp:2735
OGR_GFld_Destroy
void OGR_GFld_Destroy(OGRGeomFieldDefnH)
Destroy a geometry field definition.
Definition ogrgeomfielddefn.cpp:183
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:7878
OGR_FD_Dereference
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition ogrfeaturedefn.cpp:1201
OGR_F_GetGeomFieldDefnRef
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition ogrfeature.cpp:1442
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:1128
OGR_Fld_GetPrecision
int OGR_Fld_GetPrecision(OGRFieldDefnH)
Get the formatting precision for this field.
Definition ogrfielddefn.cpp:1311
OGR_G_BuildArea
OGRGeometryH OGR_G_BuildArea(OGRGeometryH)
Polygonize a linework assuming inner polygons are holes.
Definition ogrgeometry.cpp:7018
OGROpen
OGRDataSourceH OGROpen(const char *, int, OGRSFDriverH *)
Open a file / data source with one of the registered drivers.
Definition ogrsfdriverregistrar.cpp:124
OGR_F_GetDefnRef
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition ogrfeature.cpp:419
OGR_GetFieldTypeByName
OGRFieldType OGR_GetFieldTypeByName(const char *)
Fetch field type by name.
Definition ogrfielddefn.cpp:969
OGR_Fld_SetPrecision
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition ogrfielddefn.cpp:1367
OGR_DS_SyncToDisk
OGRErr OGR_DS_SyncToDisk(OGRDataSourceH)
Flush pending changes to disk.
Definition ogrdatasource.cpp:526
OGR_G_Set3D
void OGR_G_Set3D(OGRGeometryH, int)
Add or remove the Z coordinate dimension.
Definition ogrgeometry.cpp:1198
OGRGeomCoordinatePrecisionGetZResolution
double OGRGeomCoordinatePrecisionGetZResolution(OGRGeomCoordinatePrecisionH)
Get the Z resolution of a OGRGeomCoordinatePrecision.
Definition ogrgeomcoordinateprecision.cpp:84
OGR_Fld_SetAlternativeName
void OGR_Fld_SetAlternativeName(OGRFieldDefnH, const char *)
Reset the alternative name (or "alias") for this field.
Definition ogrfielddefn.cpp:360
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:1229
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:2139
OGR_FD_SetGeometryIgnored
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition ogrfeaturedefn.cpp:1426
OGR_F_GetGeometryRef
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch a handle to feature geometry.
Definition ogrfeature.cpp:783
OGR_F_SetFieldInteger64
void OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig)
Set field to 64 bit integer value.
Definition ogrfeature.cpp:3930
OGR_Fld_SetWidth
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition ogrfielddefn.cpp:1275
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:1322
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:1325
OGR_FD_DeleteGeomFieldDefn
OGRErr OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn, int iGeomField)
Delete an existing geometry field definition.
Definition ogrfeaturedefn.cpp:927
OGR_FD_GetName
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition ogrfeaturedefn.cpp:242
OGR_GetFieldTypeName
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition ogrfielddefn.cpp:987
OGR_GFld_GetNameRef
const char * OGR_GFld_GetNameRef(OGRGeomFieldDefnH)
Fetch name of this field.
Definition ogrgeomfielddefn.cpp:283
OGRwkbExportOptionsCreate
OGRwkbExportOptions * OGRwkbExportOptionsCreate(void)
Create geometry WKB export options.
Definition ogrgeometry.cpp:8761
OGR_G_GetCurveGeometry
OGRGeometryH OGR_G_GetCurveGeometry(OGRGeometryH hGeom, char **papszOptions)
Return curve version of this geometry.
Definition ogr_api.cpp:1993
OGR_G_ExportToGML
char * OGR_G_ExportToGML(OGRGeometryH)
Convert a geometry into GML format.
Definition ogr2gmlgeometry.cpp:1189
OGR_G_Centroid
int OGR_G_Centroid(OGRGeometryH, OGRGeometryH)
Compute the geometry centroid.
Definition ogrgeometry.cpp:6177
OGR_L_SetActiveSRS
OGRErr OGR_L_SetActiveSRS(OGRLayerH hLayer, int iGeomField, OGRSpatialReferenceH hSRS)
Change the active SRS.
Definition ogrlayer.cpp:8323
OGR_F_GetFieldAsBinary
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition ogrfeature.cpp:3282
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:1184
OGR_Fld_IsIgnored
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition ogrfielddefn.cpp:1582
OGR_L_GetFeature
OGRFeatureH OGR_L_GetFeature(OGRLayerH, GIntBig)
Fetch a feature by its identifier.
Definition ogrlayer.cpp:985
OGR_FD_AddFieldDefn
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition ogrfeaturedefn.cpp:463
OGR_G_Area
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition ogr_api.cpp:1750
OGR_F_SetStyleTableDirectly
void OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH)
Set style table and take ownership.
Definition ogrfeature.cpp:6934
OGR_G_SymDifference
OGRGeometryH OGR_G_SymDifference(OGRGeometryH, OGRGeometryH)
Compute symmetric difference.
Definition ogrgeometry.cpp:5508
OGR_G_UnionCascaded
OGRGeometryH OGR_G_UnionCascaded(OGRGeometryH)
Compute union using cascading.
Definition ogrgeometry.cpp:5167
OGR_FldDomain_GetDescription
const char * OGR_FldDomain_GetDescription(OGRFieldDomainH)
Get the description of the field domain.
Definition ogrfielddefn.cpp:2647
OGR_L_CreateFeature
OGRErr OGR_L_CreateFeature(OGRLayerH, OGRFeatureH)
Create and write a new feature within a layer.
Definition ogrlayer.cpp:1494
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:886
OGRSetNonLinearGeometriesEnabledFlag
void OGRSetNonLinearGeometriesEnabledFlag(int bFlag)
Set flag to enable/disable returning non-linear geometries in the C API.
Definition ogr_api.cpp:2062
OGR_GFld_GetType
OGRwkbGeometryType OGR_GFld_GetType(OGRGeomFieldDefnH)
Fetch geometry type of this field.
Definition ogrgeomfielddefn.cpp:324
OGR_G_ConcaveHull
OGRGeometryH OGR_G_ConcaveHull(OGRGeometryH, double dfRatio, bool bAllowHoles)
Compute "concave hull" of a geometry.
Definition ogrgeometry.cpp:4343
OGR_GetFieldSubTypeByName
OGRFieldSubType OGR_GetFieldSubTypeByName(const char *)
Fetch field subtype by name.
Definition ogrfielddefn.cpp:1073
OGR_F_SetFieldBinary
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *)
Set field to binary data.
Definition ogrfeature.cpp:5160
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:5074
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:558
OGR_L_GetSpatialFilter
OGRGeometryH OGR_L_GetSpatialFilter(OGRLayerH)
This function returns the current spatial filter for this layer.
Definition ogrlayer.cpp:3222
OGRwkbExportOptionsSetByteOrder
void OGRwkbExportOptionsSetByteOrder(OGRwkbExportOptions *, OGRwkbByteOrder)
Set the WKB byte order.
Definition ogrgeometry.cpp:8795
OGR_F_GetGeomFieldRef
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch a handle to feature geometry.
Definition ogrfeature.cpp:905
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:4566
OGR_G_WkbSizeEx
size_t OGR_G_WkbSizeEx(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition ogrgeometry.cpp:1395
OGR_FldDomain_GetMergePolicy
OGRFieldDomainMergePolicy OGR_FldDomain_GetMergePolicy(OGRFieldDomainH)
Get the merge policy of the field domain.
Definition ogrfielddefn.cpp:2755
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:2605
OGR_G_MakeValidEx
OGRGeometryH OGR_G_MakeValidEx(OGRGeometryH, CSLConstList)
Attempts to make an invalid geometry valid without losing vertices.
Definition ogrgeometry.cpp:4053
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:466
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:2768
OGR_FldDomain_GetName
const char * OGR_FldDomain_GetName(OGRFieldDomainH)
Get the name of the field domain.
Definition ogrfielddefn.cpp:2630
OGR_G_ExportToWkt
OGRErr OGR_G_ExportToWkt(OGRGeometryH, char **)
Convert a geometry into well known text format.
Definition ogrgeometry.cpp:1996
OGR_G_IsSimple
int OGR_G_IsSimple(OGRGeometryH)
Returns TRUE if the geometry is simple.
Definition ogrgeometry.cpp:2437
OGR_Fld_GetSubType
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH)
Fetch subtype of this field.
Definition ogrfielddefn.cpp:555
OGR_AreTypeSubTypeCompatible
int OGR_AreTypeSubTypeCompatible(OGRFieldType eType, OGRFieldSubType eSubType)
Return if type and subtype are compatible.
Definition ogrfielddefn.cpp:1110
OGRGetDriver
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
Definition ogrsfdriverregistrar.cpp:475
OGR_L_SetAttributeFilter
OGRErr OGR_L_SetAttributeFilter(OGRLayerH, const char *)
Set a new attribute query.
Definition ogrlayer.cpp:871
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:169
OGR_G_ImportFromWkt
OGRErr OGR_G_ImportFromWkt(OGRGeometryH, char **)
Assign geometry from well known text data.
Definition ogrgeometry.cpp:1771
OGR_Fld_GetNameRef
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition ogrfielddefn.cpp:273
OGR_G_TransformTo
OGRErr OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH)
Transform geometry to new spatial reference system.
Definition ogrgeometry.cpp:749
OGRwkbExportOptionsSetPrecision
void OGRwkbExportOptionsSetPrecision(OGRwkbExportOptions *, OGRGeomCoordinatePrecisionH)
Set precision options.
Definition ogrgeometry.cpp:8832
OGR_Fld_Destroy
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition ogrfielddefn.cpp:181
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:2016
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:3409
OGR_L_TestCapability
int OGR_L_TestCapability(OGRLayerH, const char *)
Test if this layer supported the named capability.
Definition ogrlayer.cpp:3171
OGR_DS_Destroy
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition ogrdatasource.cpp:56
OGR_FD_GetFieldDefn
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition ogrfeaturedefn.cpp:359
OGR_G_ConstrainedDelaunayTriangulation
OGRGeometryH OGR_G_ConstrainedDelaunayTriangulation(OGRGeometryH hThis)
Return a constrained Delaunay triangulation of the vertices of the given polygon(s).
Definition ogrgeometry.cpp:6798
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:3675
OGR_G_Difference
OGRGeometryH OGR_G_Difference(OGRGeometryH, OGRGeometryH)
Compute difference.
Definition ogrgeometry.cpp:5386
OGR_Fld_IsGenerated
int OGR_Fld_IsGenerated(OGRFieldDefnH hDefn)
Return whether this field is a generated field.
Definition ogrfielddefn.cpp:1808
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:1453
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:848
OGR_G_SwapXY
void OGR_G_SwapXY(OGRGeometryH hGeom)
Swap x and y coordinates.
Definition ogrgeometry.cpp:7050
OGR_L_ReorderFields
OGRErr OGR_L_ReorderFields(OGRLayerH, int *panMap)
Reorder all the fields of a layer.
Definition ogrlayer.cpp:2125
OGR_Dr_DeleteDataSource
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
Definition ogrsfdriver.cpp:137
OGR_G_IsValid
int OGR_G_IsValid(OGRGeometryH)
Test if the geometry is valid.
Definition ogrgeometry.cpp:2367
OGR_G_AssignSpatialReference
void OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH)
Assign spatial reference to this object.
Definition ogrgeometry.cpp:538
OGR_G_MakeValid
OGRGeometryH OGR_G_MakeValid(OGRGeometryH)
Attempts to make an invalid geometry valid without losing vertices.
Definition ogrgeometry.cpp:4023
OGR_G_CreateGeometry
OGRGeometryH OGR_G_CreateGeometry(OGRwkbGeometryType)
Create an empty geometry of desired type.
Definition ogrgeometryfactory.cpp:711
OGR_G_ForceTo
OGRGeometryH OGR_G_ForceTo(OGRGeometryH hGeom, OGRwkbGeometryType eTargetType, char **papszOptions)
Convert to another geometry type.
Definition ogrgeometryfactory.cpp:5311
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:2829
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:639
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:1956
OGR_F_SetFieldRaw
void OGR_F_SetFieldRaw(OGRFeatureH, int, const OGRField *)
Set field.
Definition ogrfeature.cpp:5598
OGR_F_GetGeomFieldIndex
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition ogrfeature.cpp:1490
OGR_G_RemoveGeometry
OGRErr OGR_G_RemoveGeometry(OGRGeometryH, int, int)
Remove a geometry from an exiting geometry container.
Definition ogr_api.cpp:1585
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:1693
OGR_Fld_IsNullable
int OGR_Fld_IsNullable(OGRFieldDefnH hDefn)
Return whether this field can receive null values.
Definition ogrfielddefn.cpp:1693
OGR_FD_GetFieldCount
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition ogrfeaturedefn.cpp:279
OGR_F_GetStyleString
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition ogrfeature.cpp:6671
OGR_G_GetGeometryName
const char * OGR_G_GetGeometryName(OGRGeometryH)
Fetch WKT name for geometry type.
Definition ogrgeometry.cpp:2103
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:1546
OGR_G_Transform
OGRErr OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH)
Apply arbitrary coordinate transformation to geometry.
Definition ogrgeometry.cpp:817
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:4950
OGR_F_StealGeometry
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH)
Take away ownership of geometry.
Definition ogrfeature.cpp:680
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:1391
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:2408
OGR_FldDomain_Destroy
void OGR_FldDomain_Destroy(OGRFieldDomainH)
Destroy a field domain.
Definition ogrfielddefn.cpp:2357
OGR_L_Intersection
OGRErr OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Intersection of two layers.
Definition ogrlayer.cpp:5528
OGR_L_SetSpatialFilterRect
void OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double, double)
Set a new rectangular spatial filter.
Definition ogrlayer.cpp:3627
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:555
OGR_F_SetNativeMediaType
void OGR_F_SetNativeMediaType(OGRFeatureH, const char *)
Sets the native media type for the feature.
Definition ogrfeature.cpp:7426
OGR_G_Length
double OGR_G_Length(OGRGeometryH)
Compute length of a geometry.
Definition ogr_api.cpp:1633
OGR_G_WkbSize
int OGR_G_WkbSize(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition ogrgeometry.cpp:1360
OGR_L_CommitTransaction
OGRErr OGR_L_CommitTransaction(OGRLayerH)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition ogrlayer.cpp:2681
OGR_DS_GetStyleTable
OGRStyleTableH OGR_DS_GetStyleTable(OGRDataSourceH)
Get style table.
Definition ogrdatasource.cpp:568
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:1427
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:2326
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:1663
OGR_F_SetFieldDateTime
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition ogrfeature.cpp:5286
OGR_FD_DeleteFieldDefn
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition ogrfeaturedefn.cpp:562
OGR_DS_CopyLayer
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition ogrdatasource.cpp:221
OGR_FldDomain_GetFieldSubType
OGRFieldSubType OGR_FldDomain_GetFieldSubType(OGRFieldDomainH)
Get the field subtype of the field domain.
Definition ogrfielddefn.cpp:2698
OGR_GeomTransformer_Transform
OGRGeometryH OGR_GeomTransformer_Transform(OGRGeomTransformerH hTransformer, OGRGeometryH hGeom)
Transforms a geometry.
Definition ogrgeometryfactory.cpp:4341
OGR_Fld_SetName
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition ogrfielddefn.cpp:239
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:2754
OGR_G_ForceToLineString
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH)
Convert to line string.
Definition ogrgeometryfactory.cpp:4802
OGR_L_GetNextFeature
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH)
Fetch the next available feature from this layer.
Definition ogrlayer.cpp:1175
OGR_G_Polygonize
OGRGeometryH OGR_G_Polygonize(OGRGeometryH)
Polygonizes a set of sparse edges.
Definition ogrgeometry.cpp:6923
OGR_FD_Reference
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition ogrfeaturedefn.cpp:1167
OGR_Fld_SetUnique
void OGR_Fld_SetUnique(OGRFieldDefnH hDefn, int)
Set whether this field has a unique constraint.
Definition ogrfielddefn.cpp:1913
OGR_L_SetSpatialFilter
void OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH)
Set a new spatial filter.
Definition ogrlayer.cpp:3445
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:6925
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:2359
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:488
OGR_FD_GetGeomFieldIndex
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition ogrfeaturedefn.cpp:983
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:1389
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:1494
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:246
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:4836
OGR_G_CreateFromEnvelope
OGRGeometryH OGR_G_CreateFromEnvelope(double, double, double, double, OGRSpatialReferenceH)
Create a Polygon geometry from an envelope.
Definition ogrgeometryfactory.cpp:568
OGR_F_GetRawFieldRef
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch a handle to the internal field value given the index.
Definition ogrfeature.cpp:1952
OGR_G_Touches
int OGR_G_Touches(OGRGeometryH, OGRGeometryH)
Test for touching.
Definition ogrgeometry.cpp:5670
OGR_F_GetFieldDefnRef
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition ogrfeature.cpp:1309
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:1593
OGR_Fld_IsUnique
int OGR_Fld_IsUnique(OGRFieldDefnH hDefn)
Return whether this field has a unique constraint.
Definition ogrfielddefn.cpp:1846
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:5325
OGR_G_Distance3D
double OGR_G_Distance3D(OGRGeometryH, OGRGeometryH)
Returns the 3D distance between two geometries.
Definition ogrgeometry.cpp:3737
OGR_FldDomain_GetSplitPolicy
OGRFieldDomainSplitPolicy OGR_FldDomain_GetSplitPolicy(OGRFieldDomainH)
Get the split policy of the field domain.
Definition ogrfielddefn.cpp:2717
OGR_G_IsEmpty
int OGR_G_IsEmpty(OGRGeometryH)
Test if the geometry is empty.
Definition ogrgeometry.cpp:2248
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:3451
OGR_DS_GetLayerByName
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition ogrdatasource.cpp:286
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:523
OGR_ST_SetParamDbl
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition ogrfeaturestyle.cpp:2539
OGR_G_ExportToGMLEx
char * OGR_G_ExportToGMLEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GML format.
Definition ogr2gmlgeometry.cpp:1273
OGR_GFld_GetSpatialRef
OGRSpatialReferenceH OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH)
Fetch spatial reference system of this field.
Definition ogrgeomfielddefn.cpp:518
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:1396
OGR_G_Disjoint
int OGR_G_Disjoint(OGRGeometryH, OGRGeometryH)
Test for disjointness.
Definition ogrgeometry.cpp:5597
OGR_G_ConvexHull
OGRGeometryH OGR_G_ConvexHull(OGRGeometryH)
Compute convex hull.
Definition ogrgeometry.cpp:4240
OGR_G_Crosses
int OGR_G_Crosses(OGRGeometryH, OGRGeometryH)
Test for crossing.
Definition ogrgeometry.cpp:5778
OGR_FldDomain_SetMergePolicy
void OGR_FldDomain_SetMergePolicy(OGRFieldDomainH, OGRFieldDomainMergePolicy)
Set the merge policy of the field domain.
Definition ogrfielddefn.cpp:2773
OGR_L_GetLayerDefn
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH)
Fetch the schema information for this layer.
Definition ogrlayer.cpp:2825
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:4602
OGR_F_GetNativeData
const char * OGR_F_GetNativeData(OGRFeatureH)
Returns the native data for the feature.
Definition ogrfeature.cpp:7267
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:5851
OGR_L_StartTransaction
OGRErr OGR_L_StartTransaction(OGRLayerH)
For datasources which support transactions, StartTransaction creates a transaction.
Definition ogrlayer.cpp:2630
OGR_FD_GetGeomFieldDefn
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition ogrfeaturedefn.cpp:763
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:2757
OGRHasPreparedGeometrySupport
int OGRHasPreparedGeometrySupport(void)
Returns if GEOS has prepared geometry support.
Definition ogrgeometry.cpp:7077
OGR_F_GetStyleTable
OGRStyleTableH OGR_F_GetStyleTable(OGRFeatureH)
Return style table.
Definition ogrfeature.cpp:6921
OGR_F_SetFieldDoubleList
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *)
Set field to list of doubles value.
Definition ogrfeature.cpp:4922
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:1069
OGR_F_GetFieldAsIntegerList
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition ogrfeature.cpp:2952
OGR_DS_DeleteLayer
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition ogrdatasource.cpp:252
OGR_Fld_GetComment
const char * OGR_Fld_GetComment(OGRFieldDefnH hDefn)
Return the (optional) comment for this field.
Definition ogrfielddefn.cpp:2055
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:7281
OGR_G_SetMeasured
void OGR_G_SetMeasured(OGRGeometryH, int)
Add or remove the M coordinate dimension.
Definition ogrgeometry.cpp:1224
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:2452
OGR_L_GetName
const char * OGR_L_GetName(OGRLayerH)
Return the layer name.
Definition ogrlayer.cpp:4648
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:1850
OGR_L_GetArrowStream
bool OGR_L_GetArrowStream(OGRLayerH hLayer, struct ArrowArrayStream *out_stream, char **papszOptions)
Get a Arrow C stream.
Definition ogrlayerarrow.cpp:2791
OGR_G_GetCoordinateDimension
int OGR_G_GetCoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition ogrgeometry.cpp:1004
OGR_L_GetSpatialRef
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH)
Fetch the spatial reference system for this layer.
Definition ogrlayer.cpp:2948
OGR_L_SetNextByIndex
OGRErr OGR_L_SetNextByIndex(OGRLayerH, GIntBig)
Move read cursor to the nIndex'th feature in the current resultset.
Definition ogrlayer.cpp:1086
OGR_F_Equal
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition ogrfeature.cpp:6167
OGR_ST_GetParamStr
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition ogrfeaturestyle.cpp:2298
OGR_G_SimplifyPreserveTopology
OGRGeometryH OGR_G_SimplifyPreserveTopology(OGRGeometryH hThis, double tolerance)
Simplify the geometry while preserving topology.
Definition ogrgeometry.cpp:6457
OGR_G_GetGeometryType
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
Fetch geometry type.
Definition ogrgeometry.cpp:2067
OGR_Dr_TestCapability
int OGR_Dr_TestCapability(OGRSFDriverH, const char *)
Test if capability is available.
Definition ogrsfdriver.cpp:257
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:6633
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:2637
OGR_F_Clone
OGRFeatureH OGR_F_Clone(OGRFeatureH)
Duplicate feature.
Definition ogrfeature.cpp:1158
OGR_G_Empty
void OGR_G_Empty(OGRGeometryH)
Clear geometry information.
Definition ogrgeometry.cpp:2212
OGR_G_CreateFromGMLTree
OGRGeometryH OGR_G_CreateFromGMLTree(const CPLXMLNode *)
Create geometry from GML.
Definition gml2ogrgeometry.cpp:3887
OGR_CodedFldDomain_GetEnumeration
const OGRCodedValue * OGR_CodedFldDomain_GetEnumeration(OGRFieldDomainH)
Get the enumeration as (code, value) pairs.
Definition ogrfielddefn.cpp:2794
OGR_G_GetDimension
int OGR_G_GetDimension(OGRGeometryH)
Get the dimension of this geometry.
Definition ogrgeometry.cpp:935
OGR_L_Rename
OGRErr OGR_L_Rename(OGRLayerH hLayer, const char *pszNewName)
Rename layer.
Definition ogrlayer.cpp:4900
OGR_G_Boundary
OGRGeometryH OGR_G_Boundary(OGRGeometryH)
Compute boundary.
Definition ogrgeometry.cpp:4441
OGR_ST_GetParamDbl
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition ogrfeaturestyle.cpp:2402
OGR_Fld_GetDefault
const char * OGR_Fld_GetDefault(OGRFieldDefnH hDefn)
Get default field value.
Definition ogrfielddefn.cpp:786
OGR_F_SetFieldIntegerList
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *)
Set field to list of integers value.
Definition ogrfeature.cpp:4645
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:338
OGR_Fld_SetNullable
void OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int)
Set whether this field can receive null values.
Definition ogrfielddefn.cpp:1759
OGR_F_GetFieldIndex
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition ogrfeature.cpp:1355
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:1461
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:691
OGR_F_SetFromWithMap
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *)
Set one feature from another.
Definition ogrfeature.cpp:6383
OGR_L_SetStyleTable
void OGR_L_SetStyleTable(OGRLayerH, OGRStyleTableH)
Set style table.
Definition ogrlayer.cpp:4596
OGR_F_SetFieldDouble
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition ogrfeature.cpp:4130
OGR_F_GetNativeMediaType
const char * OGR_F_GetNativeMediaType(OGRFeatureH)
Returns the native media type for the feature.
Definition ogrfeature.cpp:7316
OGR_GeomTransformer_Create
OGRGeomTransformerH OGR_GeomTransformer_Create(OGRCoordinateTransformationH, CSLConstList papszOptions)
Create a geometry transformer.
Definition ogrgeometryfactory.cpp:4317
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:2470
OGR_L_SyncToDisk
OGRErr OGR_L_SyncToDisk(OGRLayerH)
Flush pending changes to disk.
Definition ogrlayer.cpp:4303
OGR_FD_GetReferenceCount
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition ogrfeaturedefn.cpp:1236
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:750
OGR_FD_AddGeomFieldDefn
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition ogrfeaturedefn.cpp:859
OGR_F_SetStyleTable
void OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH)
Set style table.
Definition ogrfeature.cpp:6947
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.
Definition ogrsfdriver.cpp:302
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:1139
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:640
OGR_F_IsFieldNull
int OGR_F_IsFieldNull(OGRFeatureH, int)
Test if a field is null.
Definition ogrfeature.cpp:1695
OGR_Fld_GetWidth
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition ogrfielddefn.cpp:1223
OGR_L_GetExtent
OGRErr OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int)
Fetch the extent of this layer.
Definition ogrlayer.cpp:462
OGR_G_BufferEx
OGRGeometryH OGR_G_BufferEx(OGRGeometryH, double dfDist, CSLConstList papszOptions)
Compute buffer of geometry.
Definition ogrgeometry.cpp:4827
OGR_F_UnsetField
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition ogrfeature.cpp:1641
OGR_GFld_SetSpatialRef
void OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH, OGRSpatialReferenceH hSRS)
Set the spatial reference of this field.
Definition ogrgeomfielddefn.cpp:601
OGR_F_DumpReadableAsString
char * OGR_F_DumpReadableAsString(OGRFeatureH, CSLConstList)
Dump this feature in a human readable form.
Definition ogrfeature.cpp:5815
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:1460
OGR_RawField_IsNull
int OGR_RawField_IsNull(const OGRField *)
Returns whether a raw field is null.
Definition ogrfeature.cpp:7466
OGR_G_ExportToJsonEx
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GeoJSON-style format.
Definition ogrgeojsonwriter.cpp:1818
OGR_L_CreateField
OGRErr OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int)
Create a new field on a layer.
Definition ogrlayer.cpp:1943
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:2019
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:6468
OGR_DS_SetStyleTableDirectly
void OGR_DS_SetStyleTableDirectly(OGRDataSourceH, OGRStyleTableH)
Set style table (and take ownership)
Definition ogrdatasource.cpp:581
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:1831
OGR_G_Distance
double OGR_G_Distance(OGRGeometryH, OGRGeometryH)
Compute distance between two geometries.
Definition ogrgeometry.cpp:3639
OGR_L_ResetReading
void OGR_L_ResetReading(OGRLayerH)
Reset feature reading to start on the first feature.
Definition ogrlayer.cpp:4198
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:4490
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:1584
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:947
OGR_GFld_IsIgnored
int OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition ogrgeomfielddefn.cpp:433
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:3125
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:1010
OGRwkbExportOptionsSetVariant
void OGRwkbExportOptionsSetVariant(OGRwkbExportOptions *, OGRwkbVariant)
Set the WKB variant.
Definition ogrgeometry.cpp:8814
OGR_L_SetStyleTableDirectly
void OGR_L_SetStyleTableDirectly(OGRLayerH, OGRStyleTableH)
Set style table (and take ownership)
Definition ogrlayer.cpp:4583
OGR_F_Validate
int OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError)
Validate that a feature meets constraints of its schema.
Definition ogrfeature.cpp:7198
OGR_Fld_SetSubType
void OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType)
Set the subtype of this field.
Definition ogrfielddefn.cpp:627
OGR_G_IsRing
int OGR_G_IsRing(OGRGeometryH)
Test if the geometry is a ring.
Definition ogrgeometry.cpp:2510
OGR_G_Equals
int OGR_G_Equals(OGRGeometryH, OGRGeometryH)
Returns TRUE if two geometries are equivalent.
Definition ogrgeometry.cpp:1286
OGR_F_IsFieldSet
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition ogrfeature.cpp:1563
OGR_F_SetStyleStringDirectly
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition ogrfeature.cpp:6769
OGR_G_GetSpatialReference
OGRSpatialReferenceH OGR_G_GetSpatialReference(OGRGeometryH)
Returns spatial reference system for geometry.
Definition ogrgeometry.cpp:2176
OGRDestroyPreparedGeometry
void OGRDestroyPreparedGeometry(OGRPreparedGeometryH hPreparedGeom)
Destroys a prepared geometry.
Definition ogrgeometry.cpp:7138
OGR_Dr_Open
OGRDataSourceH OGR_Dr_Open(OGRSFDriverH, const char *, int)
Attempt to open file with this driver.
Definition ogrsfdriver.cpp:205
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:6047
OGR_G_ForceToMultiPolygon
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH)
Convert to multipolygon.
Definition ogrgeometryfactory.cpp:1064
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:4434
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:539
OGR_ST_SetParamNum
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition ogrfeaturestyle.cpp:2496
OGR_F_GetFieldAsStringList
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition ogrfeature.cpp:3209
OGR_G_ForceToMultiLineString
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH)
Convert to multilinestring.
Definition ogrgeometryfactory.cpp:1403
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:510
OGR_G_CoordinateDimension
int OGR_G_CoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition ogrgeometry.cpp:1029
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:896
OGR_G_DestroyGeometry
void OGR_G_DestroyGeometry(OGRGeometryH)
Destroy geometry object.
Definition ogrgeometryfactory.cpp:754
OGR_GlobFldDomain_GetGlob
const char * OGR_GlobFldDomain_GetGlob(OGRFieldDomainH)
Get the glob expression.
Definition ogrfielddefn.cpp:2904
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:735
OGR_G_SetCoordinateDimension
void OGR_G_SetCoordinateDimension(OGRGeometryH, int)
Set the coordinate dimension.
Definition ogrgeometry.cpp:1173
OGR_DS_GetLayerCount
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition ogrdatasource.cpp:446
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:7045
OGR_GetFieldSubTypeName
const char * OGR_GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition ogrfielddefn.cpp:1092
OGR_L_Union
OGRErr OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Union of two layers.
Definition ogrlayer.cpp:6078
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:7489
OGR_G_Intersects
int OGR_G_Intersects(OGRGeometryH, OGRGeometryH)
Do these features intersect?
Definition ogrgeometry.cpp:639
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:1517
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:4570
OGR_L_GetSupportedSRSList
OGRSpatialReferenceH * OGR_L_GetSupportedSRSList(OGRLayerH hLayer, int iGeomField, int *pnCount)
Get the list of SRS supported.
Definition ogrlayer.cpp:8230
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:7512
OGR_F_GetFieldAsInteger
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition ogrfeature.cpp:2095
OGR_G_CloseRings
void OGR_G_CloseRings(OGRGeometryH)
Force rings to be closed.
Definition ogrgeometry.cpp:6038
OGRGetDriverCount
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
Definition ogrsfdriverregistrar.cpp:424
OGR_DS_TestCapability
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition ogrdatasource.cpp:424
OGR_FD_IsGeometryIgnored
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition ogrfeaturedefn.cpp:1378
OGR_F_SetFieldString
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition ogrfeature.cpp:4490
OGR_L_ReorderField
OGRErr OGR_L_ReorderField(OGRLayerH, int iOldFieldPos, int iNewFieldPos)
Reorder an existing field on a layer.
Definition ogrlayer.cpp:2265
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...
Definition ogrsfdriverregistrar.cpp:224
OGR_ST_GetParamNum
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition ogrfeaturestyle.cpp:2350
OGR_G_ExportToJson
char * OGR_G_ExportToJson(OGRGeometryH)
Convert a geometry into GeoJSON format.
Definition ogrgeojsonwriter.cpp:1755
OGR_G_ExportToWkb
OGRErr OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry well known binary format.
Definition ogrgeometry.cpp:1627
OGR_Fld_SetTZFlag
void OGR_Fld_SetTZFlag(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition ogrfielddefn.cpp:1473
OGRCreatePreparedGeometry
OGRPreparedGeometryH OGRCreatePreparedGeometry(OGRGeometryH hGeom)
Creates a prepared geometry.
Definition ogrgeometry.cpp:7098
OGR_F_SetGeomField
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition ogrfeature.cpp:1062
OGR_F_SetFrom
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition ogrfeature.cpp:6243
OGR_G_Contains
int OGR_G_Contains(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition ogrgeometry.cpp:5924
OGR_Fld_GetType
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition ogrfielddefn.cpp:453
OGR_F_SetFieldInteger
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition ogrfeature.cpp:3755
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:8176
OGRPreparedGeometryContains
int OGRPreparedGeometryContains(OGRPreparedGeometryH hPreparedGeom, OGRGeometryH hOtherGeom)
Returns whether a prepared geometry contains a geometry.
Definition ogrgeometry.cpp:7200
OGR_F_GetFieldAsISO8601DateTime
const char * OGR_F_GetFieldAsISO8601DateTime(OGRFeatureH, int, CSLConstList)
Fetch OFTDateTime field value as a ISO8601 representation.
Definition ogrfeature.cpp:2863
OGR_FD_GetGeomType
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition ogrfeaturedefn.cpp:1046
OGR_GFld_Create
OGRGeomFieldDefnH OGR_GFld_Create(const char *, OGRwkbGeometryType)
Create a new field geometry definition.
Definition ogrgeomfielddefn.cpp:89
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:7163
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:904
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:1276
OGR_F_SetFID
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition ogrfeature.cpp:5907
OGR_F_IsFieldSetAndNotNull
int OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int)
Test if a field is set and not null.
Definition ogrfeature.cpp:1756
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:7590
OGR_G_ExportToWkbEx
OGRErr OGR_G_ExportToWkbEx(OGRGeometryH, unsigned char *, const OGRwkbExportOptions *)
Convert a geometry into well known binary format.
Definition ogrgeometry.cpp:1718
OGR_RawField_IsUnset
int OGR_RawField_IsUnset(const OGRField *)
Returns whether a raw field is unset.
Definition ogrfeature.cpp:7446
OGR_Fld_GetAlternativeNameRef
const char * OGR_Fld_GetAlternativeNameRef(OGRFieldDefnH)
Fetch the alternative name (or "alias") for this field.
Definition ogrfielddefn.cpp:415
OGR_F_DumpReadable
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition ogrfeature.cpp:5782
OGR_Fld_SetJustify
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition ogrfielddefn.cpp:1191
OGR_Fld_GetDomainName
const char * OGR_Fld_GetDomainName(OGRFieldDefnH hDefn)
Return the name of the field domain for this field.
Definition ogrfielddefn.cpp:1957
OGR_G_UnaryUnion
OGRGeometryH OGR_G_UnaryUnion(OGRGeometryH)
Returns the union of all components of a single geometry.
Definition ogrgeometry.cpp:5268
OGR_G_ImportFromWkb
OGRErr OGR_G_ImportFromWkb(OGRGeometryH, const void *, int)
Assign geometry from well known binary data.
Definition ogrgeometry.cpp:1552
OGR_GeomTransformer_Destroy
void OGR_GeomTransformer_Destroy(OGRGeomTransformerH hTransformer)
Destroy a geometry transformer allocated with OGR_GeomTransformer_Create()
Definition ogrgeometryfactory.cpp:4361
OGR_Fld_GetTZFlag
int OGR_Fld_GetTZFlag(OGRFieldDefnH)
Get the time zone flag.
Definition ogrfielddefn.cpp:1409
OGR_L_DeleteFeature
OGRErr OGR_L_DeleteFeature(OGRLayerH, GIntBig)
Delete feature from layer.
Definition ogrlayer.cpp:4365
OGRCleanupAll
void OGRCleanupAll(void)
Clean-up all drivers, including raster ones.
Definition ogrsfdriverregistrar.cpp:65
OGRGetDriverByName
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
Definition ogrsfdriverregistrar.cpp:520
OGR_G_ExportEnvelopeToGMLTree
CPLXMLNode * OGR_G_ExportEnvelopeToGMLTree(OGRGeometryH)
Export the envelope of a geometry as a gml:Box.
Definition ogr2gmlgeometry.cpp:419
OGR_DS_GetName
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition ogrdatasource.cpp:514
OGR_F_SetNativeData
void OGR_F_SetNativeData(OGRFeatureH, const char *)
Sets the native data for the feature.
Definition ogrfeature.cpp:7371
OGR_GFld_SetNullable
void OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int)
Set whether this geometry field can receive null values.
Definition ogrgeomfielddefn.cpp:752
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:1155
OGR_Fld_SetIgnored
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition ogrfielddefn.cpp:1622
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:703
OGR_G_CreateFromGML
OGRGeometryH OGR_G_CreateFromGML(const char *)
Create geometry from GML.
Definition gml2ogrgeometry.cpp:3933
OGR_F_StealGeometryEx
OGRGeometryH OGR_F_StealGeometryEx(OGRFeatureH, int iGeomField)
Take away ownership of geometry.
Definition ogrfeature.cpp:710
OGR_F_GetFieldAsInteger64List
const GIntBig * OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *)
Fetch field value as a list of 64 bit integers.
Definition ogrfeature.cpp:3039
OGR_G_Is3D
int OGR_G_Is3D(OGRGeometryH)
See whether this geometry has Z coordinates.
Definition ogrgeometry.cpp:1049
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:477
OGRRegisterAll
void OGRRegisterAll(void)
Register all drivers.
Definition ogrregisterall.cpp:25
OGR_G_HasCurveGeometry
int OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear)
Returns if this geometry is or has curve geometry.
Definition ogr_api.cpp:1921
OGR_RangeFldDomain_GetMax
const OGRField * OGR_RangeFldDomain_GetMax(OGRFieldDomainH, bool *pbIsInclusiveOut)
Get the maximum value.
Definition ogrfielddefn.cpp:2870
OGR_G_Union
OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH)
Compute union.
Definition ogrgeometry.cpp:5067
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:2555
OGR_FldDomain_GetFieldType
OGRFieldType OGR_FldDomain_GetFieldType(OGRFieldDomainH)
Get the field type of the field domain.
Definition ogrfielddefn.cpp:2681
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:2563
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:1268
OGR_F_SetFieldInteger64List
void OGR_F_SetFieldInteger64List(OGRFeatureH, int, int, const GIntBig *)
Set field to list of 64 bit integers value.
Definition ogrfeature.cpp:4791
OGRGetNonLinearGeometriesEnabledFlag
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition ogr_api.cpp:2081
OGR_G_PointOnSurface
OGRGeometryH OGR_G_PointOnSurface(OGRGeometryH)
Returns a point guaranteed to lie on the surface.
Definition ogrgeometry.cpp:6218
OGR_GFld_SetCoordinatePrecision
void OGR_GFld_SetCoordinatePrecision(OGRGeomFieldDefnH, OGRGeomCoordinatePrecisionH)
Set coordinate precision associated to this geometry field.
Definition ogrgeomfielddefn.cpp:839
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:94
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:6723
OGR_DS_ReleaseResultSet
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition ogrdatasource.cpp:377
OGR_L_DeleteField
OGRErr OGR_L_DeleteField(OGRLayerH, int iField)
Delete an existing field on a layer.
Definition ogrlayer.cpp:2032
OGR_F_GetFID
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition ogrfeature.cpp:5852
OGR_Dr_GetName
const char * OGR_Dr_GetName(OGRSFDriverH)
Fetch name of driver (file format).
Definition ogrsfdriver.cpp:173
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:8189
OGR_G_FlattenTo2D
void OGR_G_FlattenTo2D(OGRGeometryH)
Convert geometry to strictly 2D.
Definition ogrgeometry.cpp:3034
OGROpenShared
OGRDataSourceH OGROpenShared(const char *, int, OGRSFDriverH *)
Open a file / data source with one of the registered drivers if not already opened,...
Definition ogrsfdriverregistrar.cpp:190
OGR_G_AddGeometryDirectly
OGRErr OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH)
Add a geometry directly to an existing geometry container.
Definition ogr_api.cpp:1514
OGR_GFld_SetType
void OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType)
Set the geometry type of this field.
Definition ogrgeomfielddefn.cpp:396
OGR_G_Normalize
OGRGeometryH OGR_G_Normalize(OGRGeometryH)
Attempts to bring geometry into normalized/canonical form.
Definition ogrgeometry.cpp:4132
OGR_Fld_SetComment
void OGR_Fld_SetComment(OGRFieldDefnH hDefn, const char *)
Set the comment for this field.
Definition ogrfielddefn.cpp:2109
OGR_L_FindFieldIndex
int OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch)
Find the index of field in a layer.
Definition ogrlayer.cpp:2858
ogr_core.h
Core portability services for cross-platform OGR code.
OGRFieldSubType
OGRFieldSubType
List of field subtypes.
Definition ogr_core.h:799
OGRFieldDomainMergePolicy
OGRFieldDomainMergePolicy
Merge policy for field domains.
Definition ogr_core.h:1251
OGRwkbByteOrder
OGRwkbByteOrder
Enumeration to describe byte order.
Definition ogr_core.h:607
OGRFieldDomainType
OGRFieldDomainType
Type of field domain.
Definition ogr_core.h:1216
OGRwkbVariant
OGRwkbVariant
Output variants of WKB we support.
Definition ogr_core.h:540
OGRJustification
OGRJustification
Display justification for field values.
Definition ogr_core.h:823
OGRFieldType
OGRFieldType
List of feature field types.
Definition ogr_core.h:772
OGRwkbGeometryType
OGRwkbGeometryType
List of well known binary geometry types.
Definition ogr_core.h:405
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:370
OGRFieldDomainSplitPolicy
OGRFieldDomainSplitPolicy
Split policy for field domains.
Definition ogr_core.h:1233
CPLXMLNode
Document node structure.
Definition cpl_minixml.h:54
OGRCodedValue
Associates a code and a value.
Definition ogr_core.h:1203
OGRGeomCoordinatePrecision
Geometry coordinate precision.
Definition ogr_geomcoordinateprecision.h:40
OGRGeometryTypeCounter
Result item of OGR_L_GetGeometryTypes.
Definition ogr_api.h:622
OGRGeometryTypeCounter::nCount
int64_t nCount
Number of geometries of type eGeomType.
Definition ogr_api.h:626
OGRGeometryTypeCounter::eGeomType
OGRwkbGeometryType eGeomType
Geometry type.
Definition ogr_api.h:624
OGRwkbExportOptions
WKB export options.
Definition ogr_geometry.h:326
OGRField
OGRFeature field attribute value union.
Definition ogr_core.h:886