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