GDAL
ogr_api.h
Go to the documentation of this file.
1/******************************************************************************
2 * $Id$
3 *
4 * Project: OpenGIS Simple Features Reference Implementation
5 * Purpose: C API for OGR Geometry, Feature, Layers, DataSource and drivers.
6 * Author: Frank Warmerdam, warmerdam@pobox.com
7 *
8 ******************************************************************************
9 * Copyright (c) 2002, Frank Warmerdam
10 * Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included
20 * in all copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28 * DEALINGS IN THE SOFTWARE.
29 ****************************************************************************/
30
31#ifndef OGR_API_H_INCLUDED
32#define OGR_API_H_INCLUDED
33
43#include "cpl_progress.h"
44#include "cpl_minixml.h"
45#include "ogr_core.h"
46
47#include <stdbool.h>
48#include <stddef.h>
49#include <stdint.h>
50
52
53bool CPL_DLL OGRGetGEOSVersion(int *pnMajor, int *pnMinor, int *pnPatch);
54
55/* -------------------------------------------------------------------- */
56/* Geometry related functions (ogr_geometry.h) */
57/* -------------------------------------------------------------------- */
58#ifndef DEFINEH_OGRGeometryH
60#define DEFINEH_OGRGeometryH
62#ifdef DEBUG
63typedef struct OGRGeometryHS *OGRGeometryH;
64#else
66typedef void *OGRGeometryH;
67#endif
68#endif /* DEFINEH_OGRGeometryH */
69
70#ifndef DEFINED_OGRSpatialReferenceH
72#define DEFINED_OGRSpatialReferenceH
75#ifndef DOXYGEN_XML
76#ifdef DEBUG
77typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
78typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
79#else
84#endif
85#endif
86
87#endif /* DEFINED_OGRSpatialReferenceH */
88
89struct _CPLXMLNode;
90
91/* OGRGeomCoordinatePrecisionH */
92
94#define OGR_GEOM_COORD_PRECISION_UNKNOWN 0
95
98
101double CPL_DLL
103double CPL_DLL
105double CPL_DLL
107char CPL_DLL **
110 OGRGeomCoordinatePrecisionH, const char *pszFormatName);
112 double dfXYResolution,
113 double dfZResolution,
114 double dfMResolution);
117 double dfXYMeterResolution,
118 double dfZMeterResolution,
119 double dfMResolution);
121 OGRGeomCoordinatePrecisionH, const char *pszFormatName,
122 CSLConstList papszOptions);
123
124/* From base OGRGeometry class */
125
127 OGRGeometryH *, int);
129 OGRGeometryH *, size_t);
131 OGRGeometryH *);
133 OGRGeometryH *, int, int *);
138 double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius,
139 double dfSecondaryAxis, double dfRotation, double dfStartAngle,
140 double dfEndAngle, double dfMaxAngleStepSizeDegrees) CPL_WARN_UNUSED_RESULT;
141
152 OGRwkbGeometryType eTargetType,
153 char **papszOptions) CPL_WARN_UNUSED_RESULT;
156
161int CPL_DLL OGR_G_Is3D(OGRGeometryH);
162int CPL_DLL OGR_G_IsMeasured(OGRGeometryH);
163void CPL_DLL OGR_G_Set3D(OGRGeometryH, int);
164void CPL_DLL OGR_G_SetMeasured(OGRGeometryH, int);
168OGRErr CPL_DLL OGR_G_ImportFromWkb(OGRGeometryH, const void *, int);
170 unsigned char *);
172 unsigned char *);
173
176
185OGRErr CPL_DLL OGR_G_ExportToWkbEx(OGRGeometryH, unsigned char *,
186 const OGRwkbExportOptions *);
187
188int CPL_DLL OGR_G_WkbSize(OGRGeometryH hGeom);
189size_t CPL_DLL OGR_G_WkbSizeEx(OGRGeometryH hGeom);
190OGRErr CPL_DLL OGR_G_ImportFromWkt(OGRGeometryH, char **);
191OGRErr CPL_DLL OGR_G_ExportToWkt(OGRGeometryH, char **);
194const char CPL_DLL *OGR_G_GetGeometryName(OGRGeometryH);
195void CPL_DLL OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *);
196void CPL_DLL OGR_G_FlattenTo2D(OGRGeometryH);
197void CPL_DLL OGR_G_CloseRings(OGRGeometryH);
198
202 char **papszOptions) CPL_WARN_UNUSED_RESULT;
203
207CPLXMLNode CPL_DLL *
209
210char CPL_DLL *OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
212
215 char **papszOptions) CPL_WARN_UNUSED_RESULT;
222
227
229typedef struct OGRGeomTransformer *OGRGeomTransformerH;
233OGRGeometryH CPL_DLL
236void CPL_DLL OGR_GeomTransformer_Destroy(OGRGeomTransformerH hTransformer);
237
239 double tolerance) CPL_WARN_UNUSED_RESULT;
241 OGRGeometryH hThis, double tolerance) CPL_WARN_UNUSED_RESULT;
242OGRGeometryH CPL_DLL
243OGR_G_DelaunayTriangulation(OGRGeometryH hThis, double dfTolerance,
244 int bOnlyEdges) CPL_WARN_UNUSED_RESULT;
245
246void CPL_DLL OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength);
249/*int CPL_DLL OGR_G_EqualsExact( OGRGeometryH, OGRGeometryH, double );*/
256
259OGRGeometryH CPL_DLL OGR_G_ConcaveHull(OGRGeometryH, double dfRatio,
260 bool bAllowHoles) CPL_WARN_UNUSED_RESULT;
270/*OGRGeometryH CPL_DLL OGR_G_Polygonize( OGRGeometryH *, int);*/
271/*OGRGeometryH CPL_DLL OGR_G_Polygonizer_getCutEdges( OGRGeometryH *, int);*/
272/*OGRGeometryH CPL_DLL OGR_G_LineMerge( OGRGeometryH );*/
273
280double CPL_DLL OGR_G_Length(OGRGeometryH);
281double CPL_DLL OGR_G_Area(OGRGeometryH);
282double CPL_DLL OGR_G_GeodesicArea(OGRGeometryH);
283bool CPL_DLL OGR_G_IsClockwise(OGRGeometryH hGeom);
286 double dfDistance) CPL_WARN_UNUSED_RESULT;
287
288void CPL_DLL OGR_G_Empty(OGRGeometryH);
289int CPL_DLL OGR_G_IsEmpty(OGRGeometryH);
290int CPL_DLL OGR_G_IsValid(OGRGeometryH);
291/*char CPL_DLL *OGR_G_IsValidReason( OGRGeometryH );*/
296int CPL_DLL OGR_G_IsSimple(OGRGeometryH);
297int CPL_DLL OGR_G_IsRing(OGRGeometryH);
298
301#define OGR_GEOS_PREC_NO_TOPO (1 << 0)
302
305#define OGR_GEOS_PREC_KEEP_COLLAPSED (1 << 1)
306
307OGRGeometryH CPL_DLL OGR_G_SetPrecision(OGRGeometryH, double dfGridSize,
308 int nFlags) CPL_WARN_UNUSED_RESULT;
309
311
313/* backward compatibility (non-standard methods) */
314int CPL_DLL OGR_G_Intersect(OGRGeometryH, OGRGeometryH)
315 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Intersects() instead");
316int CPL_DLL OGR_G_Equal(OGRGeometryH, OGRGeometryH)
317 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Equals() instead");
318OGRGeometryH CPL_DLL OGR_G_SymmetricDifference(OGRGeometryH, OGRGeometryH)
319 CPL_WARN_DEPRECATED(
320 "Non standard method. Use OGR_G_SymDifference() instead");
321double CPL_DLL OGR_G_GetArea(OGRGeometryH)
322 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead");
323OGRGeometryH CPL_DLL OGR_G_GetBoundary(OGRGeometryH)
324 CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead");
327/* Methods for getting/setting vertices in points, line strings and rings */
329int CPL_DLL OGR_G_GetPoints(OGRGeometryH hGeom, void *pabyX, int nXStride,
330 void *pabyY, int nYStride, void *pabyZ,
331 int nZStride);
332int CPL_DLL OGR_G_GetPointsZM(OGRGeometryH hGeom, void *pabyX, int nXStride,
333 void *pabyY, int nYStride, void *pabyZ,
334 int nZStride, void *pabyM, int nMStride);
335double CPL_DLL OGR_G_GetX(OGRGeometryH, int);
336double CPL_DLL OGR_G_GetY(OGRGeometryH, int);
337double CPL_DLL OGR_G_GetZ(OGRGeometryH, int);
338double CPL_DLL OGR_G_GetM(OGRGeometryH, int);
339void CPL_DLL OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *,
340 double *);
341void CPL_DLL OGR_G_GetPointZM(OGRGeometryH, int iPoint, double *, double *,
342 double *, double *);
343void CPL_DLL OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount);
344void CPL_DLL OGR_G_SetPoint(OGRGeometryH, int iPoint, double, double, double);
345void CPL_DLL OGR_G_SetPoint_2D(OGRGeometryH, int iPoint, double, double);
346void CPL_DLL OGR_G_SetPointM(OGRGeometryH, int iPoint, double, double, double);
347void CPL_DLL OGR_G_SetPointZM(OGRGeometryH, int iPoint, double, double, double,
348 double);
349void CPL_DLL OGR_G_AddPoint(OGRGeometryH, double, double, double);
350void CPL_DLL OGR_G_AddPoint_2D(OGRGeometryH, double, double);
351void CPL_DLL OGR_G_AddPointM(OGRGeometryH, double, double, double);
352void CPL_DLL OGR_G_AddPointZM(OGRGeometryH, double, double, double, double);
353void CPL_DLL OGR_G_SetPoints(OGRGeometryH hGeom, int nPointsIn,
354 const void *pabyX, int nXStride, const void *pabyY,
355 int nYStride, const void *pabyZ, int nZStride);
356void CPL_DLL OGR_G_SetPointsZM(OGRGeometryH hGeom, int nPointsIn,
357 const void *pabyX, int nXStride,
358 const void *pabyY, int nYStride,
359 const void *pabyZ, int nZStride,
360 const void *pabyM, int nMStride);
361void CPL_DLL OGR_G_SwapXY(OGRGeometryH hGeom);
362
363/* Methods for getting/setting rings and members collections */
364
369OGRErr CPL_DLL OGR_G_RemoveGeometry(OGRGeometryH, int, int);
370
371int CPL_DLL OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear);
372OGRGeometryH CPL_DLL
373OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees,
374 char **papszOptions) CPL_WARN_UNUSED_RESULT;
376 OGRGeometryH hGeom, char **papszOptions) CPL_WARN_UNUSED_RESULT;
377
379 OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose,
380 double dfTolerance, OGRErr *peErr) CPL_WARN_UNUSED_RESULT;
381
383OGRErr CPL_DLL
384OGRSetGenerate_DB2_V72_BYTE_ORDER(int bGenerate_DB2_V72_BYTE_ORDER);
385
386int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(void);
389void CPL_DLL OGRSetNonLinearGeometriesEnabledFlag(int bFlag);
391
393typedef struct _OGRPreparedGeometry *OGRPreparedGeometryH;
394
395int CPL_DLL OGRHasPreparedGeometrySupport(void);
397void CPL_DLL OGRDestroyPreparedGeometry(OGRPreparedGeometryH hPreparedGeom);
399 OGRGeometryH hOtherGeom);
400int CPL_DLL OGRPreparedGeometryContains(OGRPreparedGeometryH hPreparedGeom,
401 OGRGeometryH hOtherGeom);
402
403/* -------------------------------------------------------------------- */
404/* Feature related (ogr_feature.h) */
405/* -------------------------------------------------------------------- */
406
407#ifndef DEFINE_OGRFeatureH
409#define DEFINE_OGRFeatureH
411#ifdef DEBUG
412typedef struct OGRFieldDefnHS *OGRFieldDefnH;
413typedef struct OGRFeatureDefnHS *OGRFeatureDefnH;
414typedef struct OGRFeatureHS *OGRFeatureH;
415typedef struct OGRStyleTableHS *OGRStyleTableH;
416#else
418typedef void *OGRFieldDefnH;
420typedef void *OGRFeatureDefnH;
422typedef void *OGRFeatureH;
424typedef void *OGRStyleTableH;
425#endif
427typedef struct OGRGeomFieldDefnHS *OGRGeomFieldDefnH;
428
430typedef struct OGRFieldDomainHS *OGRFieldDomainH;
431#endif /* DEFINE_OGRFeatureH */
432
433/* OGRFieldDefn */
434
435OGRFieldDefnH CPL_DLL OGR_Fld_Create(const char *,
437void CPL_DLL OGR_Fld_Destroy(OGRFieldDefnH);
438
439void CPL_DLL OGR_Fld_SetName(OGRFieldDefnH, const char *);
440const char CPL_DLL *OGR_Fld_GetNameRef(OGRFieldDefnH);
441void CPL_DLL OGR_Fld_SetAlternativeName(OGRFieldDefnH, const char *);
450void CPL_DLL OGR_Fld_SetWidth(OGRFieldDefnH, int);
452void CPL_DLL OGR_Fld_SetPrecision(OGRFieldDefnH, int);
454void CPL_DLL OGR_Fld_SetTZFlag(OGRFieldDefnH, int);
455void CPL_DLL OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int,
457int CPL_DLL OGR_Fld_IsIgnored(OGRFieldDefnH hDefn);
458void CPL_DLL OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int);
459int CPL_DLL OGR_Fld_IsNullable(OGRFieldDefnH hDefn);
460void CPL_DLL OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int);
461int CPL_DLL OGR_Fld_IsUnique(OGRFieldDefnH hDefn);
462void CPL_DLL OGR_Fld_SetUnique(OGRFieldDefnH hDefn, int);
463const char CPL_DLL *OGR_Fld_GetDefault(OGRFieldDefnH hDefn);
464void CPL_DLL OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *);
466const char CPL_DLL *OGR_Fld_GetDomainName(OGRFieldDefnH hDefn);
467void CPL_DLL OGR_Fld_SetDomainName(OGRFieldDefnH hDefn, const char *);
468const char CPL_DLL *OGR_Fld_GetComment(OGRFieldDefnH hDefn);
469void CPL_DLL OGR_Fld_SetComment(OGRFieldDefnH hDefn, const char *);
470
471const char CPL_DLL *OGR_GetFieldTypeName(OGRFieldType);
472const char CPL_DLL *OGR_GetFieldSubTypeName(OGRFieldSubType);
474 OGRFieldSubType eSubType);
475
476/* OGRGeomFieldDefnH */
477
481
482void CPL_DLL OGR_GFld_SetName(OGRGeomFieldDefnH, const char *);
483const char CPL_DLL *OGR_GFld_GetNameRef(OGRGeomFieldDefnH);
484
487
491
492int CPL_DLL OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn);
493void CPL_DLL OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int);
494
495int CPL_DLL OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn);
496void CPL_DLL OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int);
497
502
503/* OGRFeatureDefn */
504
506void CPL_DLL OGR_FD_Destroy(OGRFeatureDefnH);
507void CPL_DLL OGR_FD_Release(OGRFeatureDefnH);
508const char CPL_DLL *OGR_FD_GetName(OGRFeatureDefnH);
511int CPL_DLL OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *);
513OGRErr CPL_DLL OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField);
515 const int *panMap);
521void CPL_DLL OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int);
525
526int CPL_DLL OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn);
528 int i);
530 const char *pszName);
531
532void CPL_DLL OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn,
533 OGRGeomFieldDefnH hGFldDefn);
535 int iGeomField);
536int CPL_DLL OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn);
537/* OGRFeature */
538
540void CPL_DLL OGR_F_Destroy(OGRFeatureH);
542
547OGRGeometryH CPL_DLL OGR_F_StealGeometryEx(OGRFeatureH, int iGeomField)
551
554int CPL_DLL OGR_F_GetFieldIndex(OGRFeatureH, const char *);
555
556int CPL_DLL OGR_F_IsFieldSet(OGRFeatureH, int);
557void CPL_DLL OGR_F_UnsetField(OGRFeatureH, int);
558
559int CPL_DLL OGR_F_IsFieldNull(OGRFeatureH, int);
561void CPL_DLL OGR_F_SetFieldNull(OGRFeatureH, int);
562
564
565int CPL_DLL OGR_RawField_IsUnset(const OGRField *);
566int CPL_DLL OGR_RawField_IsNull(const OGRField *);
567void CPL_DLL OGR_RawField_SetUnset(OGRField *);
568void CPL_DLL OGR_RawField_SetNull(OGRField *);
569
570int CPL_DLL OGR_F_GetFieldAsInteger(OGRFeatureH, int);
572double CPL_DLL OGR_F_GetFieldAsDouble(OGRFeatureH, int);
573const char CPL_DLL *OGR_F_GetFieldAsString(OGRFeatureH, int);
574const char CPL_DLL *OGR_F_GetFieldAsISO8601DateTime(OGRFeatureH, int,
576const int CPL_DLL *OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *);
577const GIntBig CPL_DLL *OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *);
578const double CPL_DLL *OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *);
579char CPL_DLL **OGR_F_GetFieldAsStringList(OGRFeatureH, int);
580GByte CPL_DLL *OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *);
581int CPL_DLL OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *,
582 int *, int *, int *, int *);
583int CPL_DLL OGR_F_GetFieldAsDateTimeEx(OGRFeatureH hFeat, int iField,
584 int *pnYear, int *pnMonth, int *pnDay,
585 int *pnHour, int *pnMinute,
586 float *pfSecond, int *pnTZFlag);
587
588void CPL_DLL OGR_F_SetFieldInteger(OGRFeatureH, int, int);
590void CPL_DLL OGR_F_SetFieldDouble(OGRFeatureH, int, double);
591void CPL_DLL OGR_F_SetFieldString(OGRFeatureH, int, const char *);
592void CPL_DLL OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *);
593void CPL_DLL OGR_F_SetFieldInteger64List(OGRFeatureH, int, int,
594 const GIntBig *);
595void CPL_DLL OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *);
597void CPL_DLL OGR_F_SetFieldRaw(OGRFeatureH, int, const OGRField *);
598void CPL_DLL OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *);
599void CPL_DLL OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int,
600 int, int);
601void CPL_DLL OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int,
602 float, int);
603
604int CPL_DLL OGR_F_GetGeomFieldCount(OGRFeatureH hFeat);
606 int iField);
607int CPL_DLL OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName);
608
609OGRGeometryH CPL_DLL OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField);
610OGRErr CPL_DLL OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField,
611 OGRGeometryH hGeom);
612OGRErr CPL_DLL OGR_F_SetGeomField(OGRFeatureH hFeat, int iField,
613 OGRGeometryH hGeom);
614
617void CPL_DLL OGR_F_DumpReadable(OGRFeatureH, FILE *);
621OGRErr CPL_DLL OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *);
622
623const char CPL_DLL *OGR_F_GetStyleString(OGRFeatureH);
624void CPL_DLL OGR_F_SetStyleString(OGRFeatureH, const char *);
625void CPL_DLL OGR_F_SetStyleStringDirectly(OGRFeatureH, char *);
632
633const char CPL_DLL *OGR_F_GetNativeData(OGRFeatureH);
634void CPL_DLL OGR_F_SetNativeData(OGRFeatureH, const char *);
635const char CPL_DLL *OGR_F_GetNativeMediaType(OGRFeatureH);
636void CPL_DLL OGR_F_SetNativeMediaType(OGRFeatureH, const char *);
637
638void CPL_DLL OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly,
639 char **papszOptions);
640int CPL_DLL OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError);
641
642/* OGRFieldDomain */
643
645const char CPL_DLL *OGR_FldDomain_GetName(OGRFieldDomainH);
656
658 const char *pszName, const char *pszDescription, OGRFieldType eFieldType,
659 OGRFieldSubType eFieldSubType, const OGRCodedValue *enumeration);
661
663 const char *pszName, const char *pszDescription, OGRFieldType eFieldType,
664 OGRFieldSubType eFieldSubType, const OGRField *psMin, bool bMinIsInclusive,
665 const OGRField *psMax, bool bMaxIsInclusive);
667 bool *pbIsInclusiveOut);
669 bool *pbIsInclusiveOut);
670
671OGRFieldDomainH CPL_DLL OGR_GlobFldDomain_Create(const char *pszName,
672 const char *pszDescription,
673 OGRFieldType eFieldType,
674 OGRFieldSubType eFieldSubType,
675 const char *pszGlob);
676const char CPL_DLL *OGR_GlobFldDomain_GetGlob(OGRFieldDomainH);
677
678/* -------------------------------------------------------------------- */
679/* ogrsf_frmts.h */
680/* -------------------------------------------------------------------- */
681
682#ifdef DEBUG
683typedef struct OGRLayerHS *OGRLayerH;
684typedef struct OGRDataSourceHS *OGRDataSourceH;
685typedef struct OGRDriverHS *OGRSFDriverH;
686#else
688typedef void *OGRLayerH;
690typedef void *OGRDataSourceH;
692typedef void *OGRSFDriverH;
693#endif
694
695/* OGRLayer */
696
697const char CPL_DLL *OGR_L_GetName(OGRLayerH);
699
700/* Defined in gdal.h to avoid circular dependency with ogr_api.h */
701/* GDALDatasetH CPL_DLL OGR_L_GetDataset(OGRLayerH hLayer); */
702
704typedef struct
705{
709 int64_t nCount;
711
714#define OGR_GGT_COUNT_NOT_NEEDED 0x1
717#define OGR_GGT_STOP_IF_MIXED 0x2
720#define OGR_GGT_GEOMCOLLECTIONZ_TINZ 0x4
722OGR_L_GetGeometryTypes(OGRLayerH hLayer, int iGeomField, int nFlags,
723 int *pnEntryCount, GDALProgressFunc pfnProgress,
724 void *pProgressData);
725
728void CPL_DLL OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double,
729 double);
730void CPL_DLL OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField,
731 OGRGeometryH hGeom);
732void CPL_DLL OGR_L_SetSpatialFilterRectEx(OGRLayerH, int iGeomField,
733 double dfMinX, double dfMinY,
734 double dfMaxX, double dfMaxY);
735OGRErr CPL_DLL OGR_L_SetAttributeFilter(OGRLayerH, const char *);
736void CPL_DLL OGR_L_ResetReading(OGRLayerH);
738
765#define OGR_FOR_EACH_FEATURE_BEGIN(hFeat, hLayer) \
766 { \
767 OGRFeatureH hFeat = CPL_NULLPTR; \
768 OGR_L_ResetReading(hLayer); \
769 while (true) \
770 { \
771 if (hFeat) \
772 OGR_F_Destroy(hFeat); \
773 hFeat = OGR_L_GetNextFeature(hLayer); \
774 if (!hFeat) \
775 break;
776
778#define OGR_FOR_EACH_FEATURE_END(hFeat) \
779 } \
780 OGR_F_Destroy(hFeat); \
781 }
782
785struct ArrowArrayStream;
786
787bool CPL_DLL OGR_L_GetArrowStream(OGRLayerH hLayer,
788 struct ArrowArrayStream *out_stream,
789 char **papszOptions);
790
793struct ArrowSchema;
794
795bool CPL_DLL OGR_L_IsArrowSchemaSupported(OGRLayerH hLayer,
796 const struct ArrowSchema *schema,
797 char **papszOptions,
798 char **ppszErrorMsg);
800 const struct ArrowSchema *schema,
801 char **papszOptions);
802
805struct ArrowArray;
806
807bool CPL_DLL OGR_L_WriteArrowBatch(OGRLayerH hLayer,
808 const struct ArrowSchema *schema,
809 struct ArrowArray *array,
810 char **papszOptions);
811
820OGRErr CPL_DLL
821OGR_L_UpdateFeature(OGRLayerH, OGRFeatureH, int nUpdatedFieldsCount,
822 const int *panUpdatedFieldsIdx, int nUpdatedGeomFieldsCount,
823 const int *panUpdatedGeomFieldsIdx,
824 bool bUpdateStyleString) CPL_WARN_UNUSED_RESULT;
827OGRSpatialReferenceH CPL_DLL *
828OGR_L_GetSupportedSRSList(OGRLayerH hLayer, int iGeomField, int *pnCount);
829OGRErr CPL_DLL OGR_L_SetActiveSRS(OGRLayerH hLayer, int iGeomField,
831int CPL_DLL OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch);
834OGRErr CPL_DLL OGR_L_GetExtentEx(OGRLayerH, int iGeomField,
835 OGREnvelope *psExtent, int bForce);
836OGRErr CPL_DLL OGR_L_GetExtent3D(OGRLayerH hLayer, int iGeomField,
837 OGREnvelope3D *psExtent3D, int bForce);
838int CPL_DLL OGR_L_TestCapability(OGRLayerH, const char *);
841 OGRGeomFieldDefnH hFieldDefn, int bForce);
842OGRErr CPL_DLL OGR_L_DeleteField(OGRLayerH, int iField);
843OGRErr CPL_DLL OGR_L_ReorderFields(OGRLayerH, int *panMap);
844OGRErr CPL_DLL OGR_L_ReorderField(OGRLayerH, int iOldFieldPos,
845 int iNewFieldPos);
846OGRErr CPL_DLL OGR_L_AlterFieldDefn(OGRLayerH, int iField,
847 OGRFieldDefnH hNewFieldDefn, int nFlags);
848OGRErr CPL_DLL OGR_L_AlterGeomFieldDefn(OGRLayerH, int iField,
849 OGRGeomFieldDefnH hNewGeomFieldDefn,
850 int nFlags);
854OGRErr CPL_DLL OGR_L_Rename(OGRLayerH hLayer, const char *pszNewName);
855
857int CPL_DLL OGR_L_Reference(OGRLayerH);
858int CPL_DLL OGR_L_Dereference(OGRLayerH);
859int CPL_DLL OGR_L_GetRefCount(OGRLayerH);
863GIntBig CPL_DLL OGR_L_GetFeaturesRead(OGRLayerH);
865const char CPL_DLL *OGR_L_GetFIDColumn(OGRLayerH);
866const char CPL_DLL *OGR_L_GetGeometryColumn(OGRLayerH);
873OGRErr CPL_DLL OGR_L_SetIgnoredFields(OGRLayerH, const char **);
875 GDALProgressFunc, void *);
877 GDALProgressFunc, void *);
879 GDALProgressFunc, void *);
881 GDALProgressFunc, void *);
883 GDALProgressFunc, void *);
885 GDALProgressFunc, void *);
887 GDALProgressFunc, void *);
888
889/* OGRDataSource */
890
891void CPL_DLL OGR_DS_Destroy(OGRDataSourceH);
892const char CPL_DLL *OGR_DS_GetName(OGRDataSourceH);
895OGRLayerH CPL_DLL OGR_DS_GetLayerByName(OGRDataSourceH, const char *);
898OGRLayerH CPL_DLL OGR_DS_CreateLayer(OGRDataSourceH, const char *,
900 char **);
902 char **);
903int CPL_DLL OGR_DS_TestCapability(OGRDataSourceH, const char *);
905 const char *);
908int CPL_DLL OGR_DS_Reference(OGRDataSourceH);
909int CPL_DLL OGR_DS_Dereference(OGRDataSourceH);
910int CPL_DLL OGR_DS_GetRefCount(OGRDataSourceH);
911int CPL_DLL OGR_DS_GetSummaryRefCount(OGRDataSourceH);
921
922/* OGRSFDriver */
923
924const char CPL_DLL *OGR_Dr_GetName(OGRSFDriverH);
927int CPL_DLL OGR_Dr_TestCapability(OGRSFDriverH, const char *);
929 char **) CPL_WARN_UNUSED_RESULT;
931 const char *,
932 char **) CPL_WARN_UNUSED_RESULT;
934
935/* OGRSFDriverRegistrar */
936
937OGRDataSourceH CPL_DLL OGROpen(const char *, int,
939OGRDataSourceH CPL_DLL OGROpenShared(const char *, int,
943void CPL_DLL OGRRegisterDriver(OGRSFDriverH);
944void CPL_DLL OGRDeregisterDriver(OGRSFDriverH);
946int CPL_DLL OGRGetDriverCount(void);
948OGRSFDriverH CPL_DLL OGRGetDriverByName(const char *);
950int CPL_DLL OGRGetOpenDSCount(void);
951OGRDataSourceH CPL_DLL OGRGetOpenDS(int iDS);
954void CPL_DLL OGRRegisterAll(void);
955
958void CPL_DLL OGRCleanupAll(void);
959
960/* -------------------------------------------------------------------- */
961/* ogrsf_featurestyle.h */
962/* -------------------------------------------------------------------- */
963
964#ifdef DEBUG
965typedef struct OGRStyleMgrHS *OGRStyleMgrH;
966typedef struct OGRStyleToolHS *OGRStyleToolH;
967#else
969typedef void *OGRStyleMgrH;
971typedef void *OGRStyleToolH;
972#endif
973
974/* OGRStyleMgr */
975
976OGRStyleMgrH CPL_DLL OGR_SM_Create(OGRStyleTableH hStyleTable)
978void CPL_DLL OGR_SM_Destroy(OGRStyleMgrH hSM);
979
980const char CPL_DLL *OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat);
982 const char *pszStyleString);
983int CPL_DLL OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString);
984OGRStyleToolH CPL_DLL OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId,
985 const char *pszStyleString);
986int CPL_DLL OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST);
987int CPL_DLL OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName,
988 const char *pszStyleString);
989
990/* OGRStyleTool */
991
994void CPL_DLL OGR_ST_Destroy(OGRStyleToolH hST);
995
997
999void CPL_DLL OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit,
1000 double dfGroundPaperScale);
1001
1002const char CPL_DLL *OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam,
1003 int *bValueIsNull);
1004int CPL_DLL OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam,
1005 int *bValueIsNull);
1006double CPL_DLL OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam,
1007 int *bValueIsNull);
1008void CPL_DLL OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam,
1009 const char *pszValue);
1010void CPL_DLL OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue);
1011void CPL_DLL OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue);
1012const char CPL_DLL *OGR_ST_GetStyleString(OGRStyleToolH hST);
1013
1014int CPL_DLL OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor,
1015 int *pnRed, int *pnGreen, int *pnBlue,
1016 int *pnAlpha);
1017
1018/* OGRStyleTable */
1019
1021void CPL_DLL OGR_STBL_Destroy(OGRStyleTableH hSTBL);
1022int CPL_DLL OGR_STBL_AddStyle(OGRStyleTableH hStyleTable, const char *pszName,
1023 const char *pszStyleString);
1024int CPL_DLL OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable,
1025 const char *pszFilename);
1026int CPL_DLL OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable,
1027 const char *pszFilename);
1028const char CPL_DLL *OGR_STBL_Find(OGRStyleTableH hStyleTable,
1029 const char *pszName);
1030void CPL_DLL OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable);
1031const char CPL_DLL *OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable);
1032const char CPL_DLL *OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable);
1033
1035
1036#endif /* ndef OGR_API_H_INCLUDED */
Simple container for a bounding region in 3D.
Definition: ogr_core.h:216
Simple container for a bounding region (rectangle)
Definition: ogr_core.h:61
Definitions for CPL mini XML Parser/Serializer.
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:299
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:295
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1183
#define CPL_WARN_UNUSED_RESULT
Qualifier to warn when the return value of a function is not used.
Definition: cpl_port.h:976
unsigned char GByte
Unsigned byte type.
Definition: cpl_port.h:185
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:215
void OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField, OGRGeometryH hGeom)
Set a new spatial filter.
Definition: ogrlayer.cpp:1544
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:983
OGRErr OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Symmetrical difference of two layers.
Definition: ogrlayer.cpp:3900
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
void OGR_DS_SetStyleTable(OGRDataSourceH, OGRStyleTableH)
Set style table.
Definition: ogrdatasource.cpp:369
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition: ogrdatasource.cpp:280
OGRGeometryH OGR_G_Simplify(OGRGeometryH hThis, double tolerance)
Compute a simplified geometry.
Definition: ogrgeometry.cpp:6078
bool OGR_G_IsClockwise(OGRGeometryH hGeom)
Returns true if the ring has clockwise winding (or less than 2 points)
Definition: ogr_api.cpp:1795
OGRFieldDomainType OGR_FldDomain_GetDomainType(OGRFieldDomainH)
Get the type of the field domain.
Definition: ogrfielddefn.cpp:2487
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_api.h:83
OGRGeomCoordinatePrecisionH OGR_GFld_GetCoordinatePrecision(OGRGeomFieldDefnH)
Return the coordinate precision associated to this geometry field.
Definition: ogrgeomfielddefn.cpp:769
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:157
int OGR_G_Overlaps(OGRGeometryH, OGRGeometryH)
Test for overlap.
Definition: ogrgeometry.cpp:5698
GIntBig OGR_L_GetFeatureCount(OGRLayerH, int)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:194
void OGR_F_SetFieldNull(OGRFeatureH, int)
Clear a field, marking it as null.
Definition: ogrfeature.cpp:1836
void OGRwkbExportOptionsDestroy(OGRwkbExportOptions *)
Destroy object returned by OGRwkbExportOptionsCreate()
Definition: ogrgeometry.cpp:8173
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:2566
OGRwkbGeometryType OGR_L_GetGeomType(OGRLayerH)
Return the layer geometry type.
Definition: ogrlayer.cpp:2232
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:642
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:442
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:1023
OGRFeatureH OGR_F_Create(OGRFeatureDefnH)
Feature factory.
Definition: ogrfeature.cpp:132
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:2017
GIntBig OGR_F_GetFieldAsInteger64(OGRFeatureH, int)
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:2216
void OGR_FldDomain_SetSplitPolicy(OGRFieldDomainH, OGRFieldDomainSplitPolicy)
Set the split policy of the field domain.
Definition: ogrfielddefn.cpp:2558
void OGR_GFld_Destroy(OGRGeomFieldDefnH)
Destroy a geometry field definition.
Definition: ogrgeomfielddefn.cpp:153
OGRErr OGR_L_Erase(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Remove areas that are covered by the method layer.
Definition: ogrlayer.cpp:5230
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1172
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1433
void OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType)
Assign the base geometry type for the passed layer (the same as the feature definition).
Definition: ogrfeaturedefn.cpp:1099
int OGR_Fld_GetPrecision(OGRFieldDefnH)
Get the formatting precision for this field.
Definition: ogrfielddefn.cpp:1179
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:432
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:1235
OGRErr OGR_DS_SyncToDisk(OGRDataSourceH)
Flush pending changes to disk.
Definition: ogrdatasource.cpp:313
void OGR_G_Set3D(OGRGeometryH, int)
Add or remove the Z coordinate dimension.
Definition: ogrgeometry.cpp:1184
double OGRGeomCoordinatePrecisionGetZResolution(OGRGeomCoordinatePrecisionH)
Get the Z resolution of a OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:100
void * OGRGeometryH
Opaque type for a geometry.
Definition: ogr_api.h:66
void OGR_Fld_SetAlternativeName(OGRFieldDefnH, const char *)
Reset the alternative name (or "alias") for this field.
Definition: ogrfielddefn.cpp:315
void OGR_G_AddPointM(OGRGeometryH, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:1220
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:224
OGRGeometryH OGR_G_Clone(OGRGeometryH)
Make a copy of this object.
Definition: ogrgeometry.cpp:2128
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1397
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch a handle to feature geometry.
Definition: ogrfeature.cpp:766
void OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig)
Set field to 64 bit integer value.
Definition: ogrfeature.cpp:3913
OGRGeometryH OGR_G_Buffer(OGRGeometryH, double, int)
Compute buffer of geometry.
Definition: ogrgeometry.cpp:4528
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:1143
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:291
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1293
int OGR_G_GetGeometryCount(OGRGeometryH)
Fetch the number of elements in a geometry or number of geometries in container.
Definition: ogr_api.cpp:1313
OGRErr OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn, int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:898
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:258
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:895
const char * OGR_GFld_GetNameRef(OGRGeomFieldDefnH)
Fetch name of this field.
Definition: ogrgeomfielddefn.cpp:257
OGRwkbExportOptions * OGRwkbExportOptionsCreate(void)
Create geometry WKB export options.
Definition: ogrgeometry.cpp:8157
OGRGeometryH OGR_G_GetCurveGeometry(OGRGeometryH hGeom, char **papszOptions)
Return curve version of this geometry.
Definition: ogr_api.cpp:1917
char * OGR_G_ExportToGML(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1205
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:81
int OGR_G_Centroid(OGRGeometryH, OGRGeometryH)
Compute the geometry centroid.
Definition: ogrgeometry.cpp:5876
OGRErr OGR_L_SetActiveSRS(OGRLayerH hLayer, int iGeomField, OGRSpatialReferenceH hSRS)
Change the active SRS.
Definition: ogrlayer.cpp:5673
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:3286
void OGR_G_AddPoint_2D(OGRGeometryH, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:1178
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1450
OGRFeatureH OGR_L_GetFeature(OGRLayerH, GIntBig)
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:580
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:456
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:1672
void OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH)
Set style table and take ownership.
Definition: ogrfeature.cpp:6870
OGRGeometryH OGR_G_SymDifference(OGRGeometryH, OGRGeometryH)
Compute symmetric difference.
Definition: ogrgeometry.cpp:5207
OGRGeometryH OGR_G_UnionCascaded(OGRGeometryH)
Compute union using cascading.
Definition: ogrgeometry.cpp:4865
const char * OGR_FldDomain_GetDescription(OGRFieldDomainH)
Get the description of the field domain.
Definition: ogrfielddefn.cpp:2470
OGRErr OGR_L_CreateFeature(OGRLayerH, OGRFeatureH)
Create and write a new feature within a layer.
Definition: ogrlayer.cpp:803
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:892
void OGRSetNonLinearGeometriesEnabledFlag(int bFlag)
Set flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1988
OGRwkbGeometryType OGR_GFld_GetType(OGRGeomFieldDefnH)
Fetch geometry type of this field.
Definition: ogrgeomfielddefn.cpp:300
OGRGeometryH OGR_G_ConcaveHull(OGRGeometryH, double dfRatio, bool bAllowHoles)
Compute "concave hull" of a geometry.
Definition: ogrgeometry.cpp:4304
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *)
Set field to binary data.
Definition: ogrfeature.cpp:5092
double OGR_G_GetX(OGRGeometryH, int)
Fetch the x coordinate of a point from a Point or a LineString/LinearRing geometry.
Definition: ogr_api.cpp:225
int OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName, const char *pszStyleString)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:442
void OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList)
Set field to list of strings value.
Definition: ogrfeature.cpp:5005
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:567
OGRGeometryH OGR_L_GetSpatialFilter(OGRLayerH)
This function returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:1428
void OGRwkbExportOptionsSetByteOrder(OGRwkbExportOptions *, OGRwkbByteOrder)
Set the WKB byte order.
Definition: ogrgeometry.cpp:8191
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch a handle to feature geometry.
Definition: ogrfeature.cpp:893
OGRGeometryH OGR_G_CreateGeometryFromEsriJson(const char *)
Create a OGR geometry from a ESRI JSON geometry object.
size_t OGR_G_WkbSizeEx(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:1382
OGRFieldDomainMergePolicy OGR_FldDomain_GetMergePolicy(OGRFieldDomainH)
Get the merge policy of the field domain.
Definition: ogrfielddefn.cpp:2578
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:2428
OGRGeometryH OGR_G_MakeValidEx(OGRGeometryH, CSLConstList)
Attempts to make an invalid geometry valid without losing vertices.
Definition: ogrgeometry.cpp:4013
void OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *)
Dump geometry in well known text format to indicated output file.
Definition: ogrgeometry.cpp:452
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:2652
const char * OGR_FldDomain_GetName(OGRFieldDomainH)
Get the name of the field domain.
Definition: ogrfielddefn.cpp:2453
OGRErr OGR_G_ExportToWkt(OGRGeometryH, char **)
Convert a geometry into well known text format.
Definition: ogrgeometry.cpp:1984
int OGR_G_IsSimple(OGRGeometryH)
Returns TRUE if the geometry is simple.
Definition: ogrgeometry.cpp:2426
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH)
Fetch subtype of this field.
Definition: ogrfielddefn.cpp:512
int OGR_AreTypeSubTypeCompatible(OGRFieldType eType, OGRFieldSubType eSubType)
Return if type and subtype are compatible.
Definition: ogrfielddefn.cpp:978
struct OGRGeomCoordinatePrecision * OGRGeomCoordinatePrecisionH
Opaque type for OGRGeomCoordinatePrecision.
Definition: ogr_api.h:97
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
OGRErr OGR_L_SetAttributeFilter(OGRLayerH, const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:526
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:120
OGRErr OGR_G_ImportFromWkt(OGRGeometryH, char **)
Assign geometry from well known text data.
Definition: ogrgeometry.cpp:1762
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:228
OGRErr OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH)
Transform geometry to new spatial reference system.
Definition: ogrgeometry.cpp:735
void OGRwkbExportOptionsSetPrecision(OGRwkbExportOptions *, OGRGeomCoordinatePrecisionH)
Set precision options.
Definition: ogrgeometry.cpp:8228
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:136
void OGR_SM_Destroy(OGRStyleMgrH hSM)
Destroy Style Manager.
Definition: ogrfeaturestyle.cpp:178
void OGR_Fld_SetDomainName(OGRFieldDefnH hDefn, const char *)
Set the name of the field domain for this field.
Definition: ogrfielddefn.cpp:1839
int OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *, int *, int *, int *, int *)
Fetch field value as date and time.
Definition: ogrfeature.cpp:3413
int OGR_L_TestCapability(OGRLayerH, const char *)
Test if this layer supported the named capability.
Definition: ogrlayer.cpp:1400
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition: ogrdatasource.cpp:59
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:376
void OGR_L_SetSpatialFilterRectEx(OGRLayerH, int iGeomField, double dfMinX, double dfMinY, double dfMaxX, double dfMaxY)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1616
OGRGeometryH OGR_G_Difference(OGRGeometryH, OGRGeometryH)
Compute difference.
Definition: ogrgeometry.cpp:5083
double OGR_G_GetM(OGRGeometryH, int)
Fetch the m coordinate of a point from a geometry.
Definition: ogr_api.cpp:323
OGRErr OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH)
Add a geometry to a geometry container.
Definition: ogr_api.cpp:1441
void OGRGeomCoordinatePrecisionSetFormatSpecificOptions(OGRGeomCoordinatePrecisionH, const char *pszFormatName, CSLConstList papszOptions)
Set format specific coordinate precision options.
Definition: ogrgeomcoordinateprecision.cpp:199
int OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn)
Returns whether the default value is driver specific.
Definition: ogrfielddefn.cpp:813
void OGR_G_SwapXY(OGRGeometryH hGeom)
Swap x and y coordinates.
Definition: ogrgeometry.cpp:6582
OGRErr OGR_L_ReorderFields(OGRLayerH, int *panMap)
Reorder all the fields of a layer.
Definition: ogrlayer.cpp:1040
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
int OGR_G_IsValid(OGRGeometryH)
Test if the geometry is valid.
Definition: ogrgeometry.cpp:2356
void OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:524
OGRGeometryH OGR_G_MakeValid(OGRGeometryH)
Attempts to make an invalid geometry valid without losing vertices.
Definition: ogrgeometry.cpp:3983
OGRGeometryH OGR_G_CreateGeometry(OGRwkbGeometryType)
Create an empty geometry of desired type.
Definition: ogrgeometryfactory.cpp:660
OGRGeometryH OGR_G_ForceTo(OGRGeometryH hGeom, OGRwkbGeometryType eTargetType, char **papszOptions)
Convert to another geometry type.
Definition: ogrgeometryfactory.cpp:5024
void OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount)
Set number of points in a geometry.
Definition: ogr_api.cpp:151
const OGRField * OGR_RangeFldDomain_GetMin(OGRFieldDomainH, bool *pbIsInclusiveOut)
Get the minimum value.
Definition: ogrfielddefn.cpp:2652
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:648
void * OGRStyleMgrH
Style manager opaque type.
Definition: ogr_api.h:969
OGRGeometryH OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees, char **papszOptions)
Return, possibly approximate, linear version of this geometry.
Definition: ogr_api.cpp:1879
void OGR_F_SetFieldRaw(OGRFeatureH, int, const OGRField *)
Set field.
Definition: ogrfeature.cpp:5531
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogrfeature.cpp:1483
OGRErr OGR_G_RemoveGeometry(OGRGeometryH, int, int)
Remove a geometry from an exiting geometry container.
Definition: ogr_api.cpp:1573
int OGR_Fld_IsNullable(OGRFieldDefnH hDefn)
Return whether this field can receive null values.
Definition: ogrfielddefn.cpp:1563
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:295
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:6609
const char * OGR_G_GetGeometryName(OGRGeometryH)
Fetch WKT name for geometry type.
Definition: ogrgeometry.cpp:2092
void OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int, OGRJustification)
Set defining parameters for a field in one call.
Definition: ogrfielddefn.cpp:1414
OGRErr OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH)
Apply arbitrary coordinate transformation to geometry.
Definition: ogrgeometry.cpp:803
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:122
OGRGeometryH OGR_G_Intersection(OGRGeometryH, OGRGeometryH)
Compute intersection.
Definition: ogrgeometry.cpp:4649
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH)
Take away ownership of geometry.
Definition: ogrfeature.cpp:661
OGRFeatureDefnH OGR_FD_Create(const char *)
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:86
OGRErr OGR_L_SetFeature(OGRLayerH, OGRFeatureH)
Rewrite/replace an existing feature.
Definition: ogrlayer.cpp:763
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:2232
void OGR_FldDomain_Destroy(OGRFieldDomainH)
Destroy a field domain.
Definition: ogrfielddefn.cpp:2181
OGRErr OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Intersection of two layers.
Definition: ogrlayer.cpp:2959
void OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double, double)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1596
void OGR_STBL_Destroy(OGRStyleTableH hSTBL)
Destroy Style Table.
Definition: ogrfeaturestyle.cpp:819
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1392
OGRSFDriverH OGR_DS_GetDriver(OGRDataSourceH)
Returns the driver that the dataset was opened with.
Definition: ogrdatasource.cpp:329
void OGR_F_SetNativeMediaType(OGRFeatureH, const char *)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:7372
double OGR_G_Length(OGRGeometryH)
Compute length of a geometry.
Definition: ogr_api.cpp:1617
int OGR_G_WkbSize(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:1347
OGRErr OGR_L_CommitTransaction(OGRLayerH)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: ogrlayer.cpp:1277
OGRStyleTableH OGR_DS_GetStyleTable(OGRDataSourceH)
Get style table.
Definition: ogrdatasource.cpp:342
void OGR_G_GetEnvelope(OGRGeometryH, OGREnvelope *)
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
Definition: ogrgeometry.cpp:1414
OGRStyleToolH OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId, const char *pszStyleString)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:705
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:2328
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:1654
void * OGRFieldDefnH
Opaque type for a field definition (OGRFieldDefn)
Definition: ogr_api.h:418
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:5218
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:521
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition: ogrdatasource.cpp:151
OGRFieldSubType OGR_FldDomain_GetFieldSubType(OGRFieldDomainH)
Get the field subtype of the field domain.
Definition: ogrfielddefn.cpp:2521
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition: ogr_api.h:688
OGRGeometryH OGR_GeomTransformer_Transform(OGRGeomTransformerH hTransformer, OGRGeometryH hGeom)
Transforms a geometry.
Definition: ogrgeometryfactory.cpp:4077
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:194
OGRErr OGR_G_CreateFromWkb(const void *, OGRSpatialReferenceH, OGRGeometryH *, int)
Create a geometry object of the appropriate type from its well known binary representation.
Definition: ogrgeometryfactory.cpp:261
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:2755
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH)
Convert to line string.
Definition: ogrgeometryfactory.cpp:4516
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH)
Fetch the next available feature from this layer.
Definition: ogrlayer.cpp:640
OGRGeometryH OGR_G_Polygonize(OGRGeometryH)
Polygonizes a set of sparse edges.
Definition: ogrgeometry.cpp:6547
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:1138
void OGR_Fld_SetUnique(OGRFieldDefnH hDefn, int)
Set whether this field has a unique constraint.
Definition: ogrfielddefn.cpp:1736
void OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH)
Set a new spatial filter.
Definition: ogrlayer.cpp:1526
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:4313
OGRErr OGR_L_AlterFieldDefn(OGRLayerH, int iField, OGRFieldDefnH hNewFieldDefn, int nFlags)
Alter the definition of an existing field on a layer.
Definition: ogrlayer.cpp:1147
void OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *, double *)
Fetch a point in line string or a point geometry.
Definition: ogr_api.cpp:497
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:954
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1233
double OGRGeomCoordinatePrecisionGetMResolution(OGRGeomCoordinatePrecisionH)
Get the M resolution of a OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:119
OGRGeometryH OGR_G_GetGeometryRef(OGRGeometryH, int)
Fetch geometry from a geometry container.
Definition: ogr_api.cpp:1377
bool OGRGetGEOSVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the GEOS version.
Definition: ogr_api.cpp:68
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1465
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:373
OGRErr OGR_G_CreateFromWkbEx(const void *, OGRSpatialReferenceH, OGRGeometryH *, size_t)
Create a geometry object of the appropriate type from its well known binary representation.
Definition: ogrgeometryfactory.cpp:304
void OGR_GFld_SetName(OGRGeomFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrgeomfielddefn.cpp:218
OGRErr OGR_L_SetIgnoredFields(OGRLayerH, const char **)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrlayer.cpp:2304
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch a handle to the internal field value given the index.
Definition: ogrfeature.cpp:1956
int OGR_G_Touches(OGRGeometryH, OGRGeometryH)
Test for touching.
Definition: ogrgeometry.cpp:5369
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:1282
OGRErr OGR_L_UpsertFeature(OGRLayerH, OGRFeatureH)
Rewrite/replace an existing feature or create a new feature within a layer.
Definition: ogrlayer.cpp:842
int OGR_Fld_IsUnique(OGRFieldDefnH hDefn)
Return whether this field has a unique constraint.
Definition: ogrfielddefn.cpp:1669
CSLConstList OGRGeomCoordinatePrecisionGetFormatSpecificOptions(OGRGeomCoordinatePrecisionH, const char *pszFormatName)
Get format specific coordinate precision options.
Definition: ogrgeomcoordinateprecision.cpp:173
void OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int, float, int)
Set field to datetime.
Definition: ogrfeature.cpp:5258
double OGR_G_Distance3D(OGRGeometryH, OGRGeometryH)
Returns the 3D distance between two geometries.
Definition: ogrgeometry.cpp:3715
OGRFieldDomainSplitPolicy OGR_FldDomain_GetSplitPolicy(OGRFieldDomainH)
Get the split policy of the field domain.
Definition: ogrfielddefn.cpp:2540
int OGR_G_IsEmpty(OGRGeometryH)
Test if the geometry is empty.
Definition: ogrgeometry.cpp:2237
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:3456
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition: ogrdatasource.cpp:186
OGRGeometryH OGRBuildPolygonFromEdges(OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose, double dfTolerance, OGRErr *peErr)
Build a ring from a bunch of arcs.
Definition: ograssemblepolygon.cpp:139
void OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType)
Set the type of this field.
Definition: ogrfielddefn.cpp:478
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition: ogrfeaturestyle.cpp:2516
char * OGR_G_ExportToGMLEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1290
OGRSpatialReferenceH OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH)
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:502
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:1370
int OGR_G_Disjoint(OGRGeometryH, OGRGeometryH)
Test for disjointness.
Definition: ogrgeometry.cpp:5296
OGRGeometryH OGR_G_ConvexHull(OGRGeometryH)
Compute convex hull.
Definition: ogrgeometry.cpp:4202
int OGR_G_Crosses(OGRGeometryH, OGRGeometryH)
Test for crossing.
Definition: ogrgeometry.cpp:5477
void OGR_FldDomain_SetMergePolicy(OGRFieldDomainH, OGRFieldDomainMergePolicy)
Set the merge policy of the field domain.
Definition: ogrfielddefn.cpp:2596
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH)
Fetch the schema information for this layer.
Definition: ogrlayer.cpp:1322
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:576
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:4316
const char * OGR_F_GetNativeData(OGRFeatureH)
Returns the native data for the feature.
Definition: ogrfeature.cpp:7207
char * OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
Convert a geometry into KML format.
Definition: ogr2kmlgeometry.cpp:485
int OGR_G_Within(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:5550
OGRErr OGR_L_StartTransaction(OGRLayerH)
For datasources which support transactions, StartTransaction creates a transaction.
Definition: ogrlayer.cpp:1250
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:730
OGRErr OGR_L_RollbackTransaction(OGRLayerH)
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: ogrlayer.cpp:1304
void * OGRFeatureDefnH
Opaque type for a feature definition (OGRFeatureDefn)
Definition: ogr_api.h:420
int OGRHasPreparedGeometrySupport(void)
Returns if GEOS has prepared geometry support.
Definition: ogrgeometry.cpp:6609
OGRStyleTableH OGR_F_GetStyleTable(OGRFeatureH)
Return style table.
Definition: ogrfeature.cpp:6857
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:4854
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:258
int OGR_G_IsMeasured(OGRGeometryH)
See whether this geometry is measured.
Definition: ogrgeometry.cpp:1057
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:2953
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition: ogrdatasource.cpp:167
const char * OGR_Fld_GetComment(OGRFieldDefnH hDefn)
Return the (optional) comment for this field.
Definition: ogrfielddefn.cpp:1878
OGRErr OGR_L_Update(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Update this layer with features from the update layer.
Definition: ogrlayer.cpp:4657
void OGR_G_SetMeasured(OGRGeometryH, int)
Add or remove the M coordinate dimension.
Definition: ogrgeometry.cpp:1211
OGRGeomCoordinatePrecisionH OGRGeomCoordinatePrecisionCreate(void)
Creates a new instance of OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:47
void OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue)
Set Style Tool parameter value from a string.
Definition: ogrfeaturestyle.cpp:2429
const char * OGR_L_GetName(OGRLayerH)
Return the layer name.
Definition: ogrlayer.cpp:2200
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:938
bool OGR_L_GetArrowStream(OGRLayerH hLayer, struct ArrowArrayStream *out_stream, char **papszOptions)
Get a Arrow C stream.
Definition: ogrlayerarrow.cpp:2609
int OGR_G_GetCoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:989
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH)
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:1382
OGRErr OGR_L_SetNextByIndex(OGRLayerH, GIntBig)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:623
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:6101
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition: ogrfeaturestyle.cpp:2275
OGRGeometryH OGR_G_SimplifyPreserveTopology(OGRGeometryH hThis, double tolerance)
Simplify the geometry while preserving topology.
Definition: ogrgeometry.cpp:6158
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
Fetch geometry type.
Definition: ogrgeometry.cpp:2056
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:6332
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:2614
OGRFeatureH OGR_F_Clone(OGRFeatureH)
Duplicate feature.
Definition: ogrfeature.cpp:1118
void OGR_G_Empty(OGRGeometryH)
Clear geometry information.
Definition: ogrgeometry.cpp:2201
OGRGeometryH OGR_G_CreateFromGMLTree(const CPLXMLNode *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:3742
const OGRCodedValue * OGR_CodedFldDomain_GetEnumeration(OGRFieldDomainH)
Get the enumeration as (code, value) pairs.
Definition: ogrfielddefn.cpp:2617
void * OGRStyleToolH
Style tool opaque type.
Definition: ogr_api.h:971
int OGR_G_GetDimension(OGRGeometryH)
Get the dimension of this geometry.
Definition: ogrgeometry.cpp:919
OGRErr OGR_L_Rename(OGRLayerH hLayer, const char *pszNewName)
Rename layer.
Definition: ogrlayer.cpp:2368
OGRGeometryH OGR_G_Boundary(OGRGeometryH)
Compute boundary.
Definition: ogrgeometry.cpp:4405
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition: ogrfeaturestyle.cpp:2379
const char * OGR_Fld_GetDefault(OGRFieldDefnH hDefn)
Get default field value.
Definition: ogrfielddefn.cpp:749
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:4578
OGRStyleTableH OGR_STBL_Create(void)
OGRStyleTable factory.
Definition: ogrfeaturestyle.cpp:778
OGRLayerH OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: ogrdatasource.cpp:207
void OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int)
Set whether this field can receive null values.
Definition: ogrfielddefn.cpp:1631
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:1327
void OGR_G_GetEnvelope3D(OGRGeometryH, OGREnvelope3D *)
Computes and returns the bounding envelope (3D) for this geometry in the passed psEnvelope structure.
Definition: ogrgeometry.cpp:1450
char ** OGRGeomCoordinatePrecisionGetFormats(OGRGeomCoordinatePrecisionH)
Get the list of format names for coordinate precision format specific options.
Definition: ogrgeomcoordinateprecision.cpp:145
int OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn)
Return whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:671
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *)
Set one feature from another.
Definition: ogrfeature.cpp:6317
void OGR_L_SetStyleTable(OGRLayerH, OGRStyleTableH)
Set style table.
Definition: ogrlayer.cpp:2176
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition: ogrfeature.cpp:4066
const char * OGR_F_GetNativeMediaType(OGRFeatureH)
Returns the native media type for the feature.
Definition: ogrfeature.cpp:7258
OGRGeomTransformerH OGR_GeomTransformer_Create(OGRCoordinateTransformationH, CSLConstList papszOptions)
Create a geometry transformer.
Definition: ogrgeometryfactory.cpp:4053
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:1184
OGRErr OGR_L_SyncToDisk(OGRLayerH)
Flush pending changes to disk.
Definition: ogrlayer.cpp:1993
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:1207
double OGRGeomCoordinatePrecisionGetXYResolution(OGRGeomCoordinatePrecisionH)
Get the X/Y resolution of a OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:81
void OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *)
Set default field value.
Definition: ogrfielddefn.cpp:711
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:828
void OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH)
Set style table.
Definition: ogrfeature.cpp:6883
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:1136
int OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:1015
OGRErr OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn, const int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:602
int OGR_F_IsFieldNull(OGRFeatureH, int)
Test if a field is null.
Definition: ogrfeature.cpp:1690
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition: ogr_api.h:422
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:1091
OGRErr OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int)
Fetch the extent of this layer.
Definition: ogrlayer.cpp:381
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1634
void OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH, OGRSpatialReferenceH hSRS)
Set the spatial reference of this field.
Definition: ogrgeomfielddefn.cpp:578
char * OGR_F_DumpReadableAsString(OGRFeatureH, CSLConstList)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5747
void OGRGeomCoordinatePrecisionDestroy(OGRGeomCoordinatePrecisionH)
Destroy a OGRGeomCoordinatePrecision.
Definition: ogrgeomcoordinateprecision.cpp:64
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1431
int OGR_RawField_IsNull(const OGRField *)
Returns whether a raw field is null.
Definition: ogrfeature.cpp:7414
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1559
OGRErr OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int)
Create a new field on a layer.
Definition: ogrlayer.cpp:974
void OGRGeomCoordinatePrecisionSetFromMeter(OGRGeomCoordinatePrecisionH, OGRSpatialReferenceH hSRS, double dfXYMeterResolution, double dfZMeterResolution, double dfMResolution)
Set the resolution of the geometry coordinate components.
Definition: ogrgeomcoordinateprecision.cpp:267
int OGR_STBL_AddStyle(OGRStyleTableH hStyleTable, const char *pszName, const char *pszStyleString)
Add a new style in the table.
Definition: ogrfeaturestyle.cpp:912
OGRGeometryH OGR_G_Value(OGRGeometryH, double dfDistance)
Fetch point at given distance along curve.
Definition: ogr_api.cpp:1944
OGRSTClassId OGR_ST_GetType(OGRStyleToolH hST)
Determine type of Style Tool.
Definition: ogrfeaturestyle.cpp:1630
bool OGR_L_CreateFieldFromArrowSchema(OGRLayerH hLayer, const struct ArrowSchema *schema, char **papszOptions)
Creates a field from an ArrowSchema.
Definition: ogrlayerarrow.cpp:6169
void OGR_DS_SetStyleTableDirectly(OGRDataSourceH, OGRStyleTableH)
Set style table (and take ownership)
Definition: ogrdatasource.cpp:355
struct OGRFieldDomainHS * OGRFieldDomainH
Opaque type for a field domain definition (OGRFieldDomain)
Definition: ogr_api.h:430
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:1751
double OGR_G_Distance(OGRGeometryH, OGRGeometryH)
Compute distance between two geometries.
Definition: ogrgeometry.cpp:3615
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn)
Definition: ogr_api.h:427
void OGR_L_ResetReading(OGRLayerH)
Reset feature reading to start on the first feature.
Definition: ogrlayer.cpp:1935
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:2101
int OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn)
Test if the feature definition is identical to the other one.
Definition: ogrfeaturedefn.cpp:1556
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:953
int OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:413
OGRStyleMgrH OGR_SM_Create(OGRStyleTableH hStyleTable)
OGRStyleMgr factory.
Definition: ogrfeaturestyle.cpp:146
const double * OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:3129
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:1013
void OGRwkbExportOptionsSetVariant(OGRwkbExportOptions *, OGRwkbVariant)
Set the WKB variant.
Definition: ogrgeometry.cpp:8210
void OGR_L_SetStyleTableDirectly(OGRLayerH, OGRStyleTableH)
Set style table (and take ownership)
Definition: ogrlayer.cpp:2163
int OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError)
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:7136
void OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType)
Set the subtype of this field.
Definition: ogrfielddefn.cpp:586
int OGR_G_IsRing(OGRGeometryH)
Test if the geometry is a ring.
Definition: ogrgeometry.cpp:2497
int OGR_G_Equals(OGRGeometryH, OGRGeometryH)
Returns TRUE if two geometries are equivalent.
Definition: ogrgeometry.cpp:1273
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1556
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition: ogrfeature.cpp:6707
OGRSpatialReferenceH OGR_G_GetSpatialReference(OGRGeometryH)
Returns spatial reference system for geometry.
Definition: ogrgeometry.cpp:2165
void OGRDestroyPreparedGeometry(OGRPreparedGeometryH hPreparedGeom)
Destroys a prepared geometry.
Definition: ogrgeometry.cpp:6670
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:5776
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH)
Convert to multipolygon.
Definition: ogrgeometryfactory.cpp:1013
struct OGRGeomTransformer * OGRGeomTransformerH
Opaque type for a geometry transformer.
Definition: ogr_api.h:229
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:2071
OGRErr OGR_G_CreateFromWkt(char **, OGRSpatialReferenceH, OGRGeometryH *)
Create a geometry object of the appropriate type from its well known text representation.
Definition: ogrgeometryfactory.cpp:524
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2473
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:3213
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH)
Convert to multilinestring.
Definition: ogrgeometryfactory.cpp:1352
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:398
int OGR_G_CoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:1015
const char * OGR_STBL_Find(OGRStyleTableH hStyleTable, const char *pszName)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1121
OGRGeometryH OGR_G_ForceToPolygon(OGRGeometryH)
Convert to polygon.
Definition: ogrgeometryfactory.cpp:845
void OGR_G_DestroyGeometry(OGRGeometryH)
Destroy geometry object.
Definition: ogrgeometryfactory.cpp:703
const char * OGR_GlobFldDomain_GetGlob(OGRFieldDomainH)
Get the glob expression.
Definition: ogrfielddefn.cpp:2727
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:744
void OGR_G_SetCoordinateDimension(OGRGeometryH, int)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:1158
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition: ogrdatasource.cpp:263
void OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly, char **papszOptions)
Fill unset fields with default values that might be defined.
Definition: ogrfeature.cpp:6983
const char * OGR_GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition: ogrfielddefn.cpp:959
OGRErr OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Union of two layers.
Definition: ogrlayer.cpp:3493
void OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit, double dfGroundPaperScale)
Set Style Tool units.
Definition: ogrfeaturestyle.cpp:1694
void OGR_RawField_SetUnset(OGRField *)
Mark a raw field as unset.
Definition: ogrfeature.cpp:7438
int OGR_G_Intersects(OGRGeometryH, OGRGeometryH)
Do these features intersect?
Definition: ogrgeometry.cpp:625
void * OGRSFDriverH
Opaque type for a OGR driver (OGRSFDriver)
Definition: ogr_api.h:692
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:1466
CPLXMLNode * OGR_G_ExportToGMLTree(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1174
OGRStyleTableH OGR_L_GetStyleTable(OGRLayerH)
Get style table.
Definition: ogrlayer.cpp:2150
OGRSpatialReferenceH * OGR_L_GetSupportedSRSList(OGRLayerH hLayer, int iGeomField, int *pnCount)
Get the list of SRS supported.
Definition: ogrlayer.cpp:5582
OGRGeometryH OGR_G_DelaunayTriangulation(OGRGeometryH hThis, double dfTolerance, int bOnlyEdges)
Return a Delaunay triangulation of the vertices of the geometry.
Definition: ogrgeometry.cpp:6416
void OGR_RawField_SetNull(OGRField *)
Mark a raw field as null.
Definition: ogrfeature.cpp:7462
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:2095
void OGR_G_CloseRings(OGRGeometryH)
Force rings to be closed.
Definition: ogrgeometry.cpp:5737
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition: ogrdatasource.cpp:250
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1349
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:4424
OGRErr OGR_L_ReorderField(OGRLayerH, int iOldFieldPos, int iNewFieldPos)
Reorder an existing field on a layer.
Definition: ogrlayer.cpp:1114
int OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:629
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:505
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:2327
char * OGR_G_ExportToJson(OGRGeometryH)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1518
OGRErr OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry well known binary format.
Definition: ogrgeometry.cpp:1617
void OGR_Fld_SetTZFlag(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:1341
OGRPreparedGeometryH OGRCreatePreparedGeometry(OGRGeometryH hGeom)
Creates a prepared geometry.
Definition: ogrgeometry.cpp:6631
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:1061
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition: ogrfeature.cpp:6177
int OGR_G_Contains(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:5623
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:408
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition: ogrfeature.cpp:3756
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:5528
int OGRPreparedGeometryContains(OGRPreparedGeometryH hPreparedGeom, OGRGeometryH hOtherGeom)
Returns whether a prepared geometry contains a geometry.
Definition: ogrgeometry.cpp:6731
struct _OGRPreparedGeometry * OGRPreparedGeometryH
Opaque type for a prepared geometry.
Definition: ogr_api.h:393
const char * OGR_F_GetFieldAsISO8601DateTime(OGRFeatureH, int, CSLConstList)
Fetch OFTDateTime field value as a ISO8601 representation.
Definition: ogrfeature.cpp:2864
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:1017
OGRGeomFieldDefnH OGR_GFld_Create(const char *, OGRwkbGeometryType)
Create a new field geometry definition.
Definition: ogrgeomfielddefn.cpp:108
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:336
void OGRGeomCoordinatePrecisionSet(OGRGeomCoordinatePrecisionH, double dfXYResolution, double dfZResolution, double dfMResolution)
Set the resolution of the geometry coordinate components.
Definition: ogrgeomcoordinateprecision.cpp:236
int OGRPreparedGeometryIntersects(OGRPreparedGeometryH hPreparedGeom, OGRGeometryH hOtherGeom)
Returns whether a prepared geometry intersects with a geometry.
Definition: ogrgeometry.cpp:6695
void OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength)
Modify the geometry such it has no segment longer then the given distance.
Definition: ogrgeometry.cpp:888
void * OGRStyleTableH
Opaque type for a style table (OGRStyleTable)
Definition: ogr_api.h:424
void OGR_G_AddPointZM(OGRGeometryH, double, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:1264
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition: ogrfeature.cpp:5841
int OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int)
Test if a field is set and not null.
Definition: ogrfeature.cpp:1753
OGRErr OGR_L_Clip(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Clip off areas that are not covered by the method layer.
Definition: ogrlayer.cpp:4954
OGRErr OGR_G_ExportToWkbEx(OGRGeometryH, unsigned char *, const OGRwkbExportOptions *)
Convert a geometry into well known binary format.
Definition: ogrgeometry.cpp:1709
int OGR_RawField_IsUnset(const OGRField *)
Returns whether a raw field is unset.
Definition: ogrfeature.cpp:7393
const char * OGR_Fld_GetAlternativeNameRef(OGRFieldDefnH)
Fetch the alternative name (or "alias") for this field.
Definition: ogrfielddefn.cpp:370
void * OGRDataSourceH
Opaque type for a OGR datasource (OGRDataSource)
Definition: ogr_api.h:690
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5714
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:1059
const char * OGR_Fld_GetDomainName(OGRFieldDefnH hDefn)
Return the name of the field domain for this field.
Definition: ogrfielddefn.cpp:1780
OGRGeometryH OGR_G_UnaryUnion(OGRGeometryH)
Returns the union of all components of a single geometry.
Definition: ogrgeometry.cpp:4965
OGRErr OGR_G_ImportFromWkb(OGRGeometryH, const void *, int)
Assign geometry from well known binary data.
Definition: ogrgeometry.cpp:1542
void OGR_GeomTransformer_Destroy(OGRGeomTransformerH hTransformer)
Destroy a geometry transformer allocated with OGR_GeomTransformer_Create()
Definition: ogrgeometryfactory.cpp:4097
int OGR_Fld_GetTZFlag(OGRFieldDefnH)
Get the time zone flag.
Definition: ogrfielddefn.cpp:1277
OGRErr OGR_L_DeleteFeature(OGRLayerH, GIntBig)
Delete feature from layer.
Definition: ogrlayer.cpp:2019
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:435
void OGRRegisterAll(void)
Register all drivers.
Definition: ogrregisterall.cpp:36
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition: ogrdatasource.cpp:301
void OGR_F_SetNativeData(OGRFeatureH, const char *)
Sets the native data for the feature.
Definition: ogrfeature.cpp:7315
void OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int)
Set whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:734
const char * OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat)
Initialize style manager from the style string of a feature.
Definition: ogrfeaturestyle.cpp:271
int OGR_G_GetPointCount(OGRGeometryH)
Fetch number of points from a Point or a LineString/LinearRing geometry.
Definition: ogr_api.cpp:112
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1066
OGRGeometryH OGR_G_ForceToMultiPoint(OGRGeometryH)
Convert to multipoint.
Definition: ogrgeometryfactory.cpp:1104
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1490
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:417
OGRGeometryH OGR_G_CreateFromGML(const char *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:3786
OGRGeometryH OGR_F_StealGeometryEx(OGRFeatureH, int iGeomField)
Take away ownership of geometry.
Definition: ogrfeature.cpp:691
const GIntBig * OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *)
Fetch field value as a list of 64 bit integers.
Definition: ogrfeature.cpp:3043
int OGR_G_Is3D(OGRGeometryH)
See whether this geometry has Z coordinates.
Definition: ogrgeometry.cpp:1036
int OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:564
void OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:459
int OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear)
Returns if this geometry is or has curve geometry.
Definition: ogr_api.cpp:1843
const OGRField * OGR_RangeFldDomain_GetMax(OGRFieldDomainH, bool *pbIsInclusiveOut)
Get the maximum value.
Definition: ogrfielddefn.cpp:2693
OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH)
Compute union.
Definition: ogrgeometry.cpp:4765
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:2378
OGRFieldType OGR_FldDomain_GetFieldType(OGRFieldDomainH)
Get the field type of the field domain.
Definition: ogrfielddefn.cpp:2504
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1286
OGRErr OGR_L_CreateGeomField(OGRLayerH hLayer, OGRGeomFieldDefnH hFieldDefn, int bForce)
Create a new geometry field on a layer.
Definition: ogrlayer.cpp:1220
const char * OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable)
Get the style name of the last style string fetched with OGR_STBL_GetNextStyle.
Definition: ogrfeaturestyle.cpp:1324
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:1227
void OGR_F_SetFieldInteger64List(OGRFeatureH, int, int, const GIntBig *)
Set field to list of 64 bit integers value.
Definition: ogrfeature.cpp:4723
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:2008
OGRGeometryH OGR_G_PointOnSurface(OGRGeometryH)
Returns a point guaranteed to lie on the surface.
Definition: ogrgeometry.cpp:5918
void OGR_GFld_SetCoordinatePrecision(OGRGeomFieldDefnH, OGRGeomCoordinatePrecisionH)
Set coordinate precision associated to this geometry field.
Definition: ogrgeomfielddefn.cpp:821
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId)
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1356
OGRFieldDefnH OGR_Fld_Create(const char *, OGRFieldType)
Create a new field definition.
Definition: ogrfielddefn.cpp:109
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1656
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string.
Definition: ogrfeature.cpp:6661
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition: ogrdatasource.cpp:231
OGRErr OGR_L_DeleteField(OGRLayerH, int iField)
Delete an existing field on a layer.
Definition: ogrlayer.cpp:1008
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:5786
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:7716
void OGR_G_FlattenTo2D(OGRGeometryH)
Convert geometry to strictly 2D.
Definition: ogrgeometry.cpp:3022
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:1502
void OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType)
Set the geometry type of this field.
Definition: ogrgeomfielddefn.cpp:374
OGRGeometryH OGR_G_Normalize(OGRGeometryH)
Attempts to bring geometry into normalized/canonical form.
Definition: ogrgeometry.cpp:4093
void OGR_Fld_SetComment(OGRFieldDefnH hDefn, const char *)
Set the comment for this field.
Definition: ogrfielddefn.cpp:1932
int OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch)
Find the index of field in a layer.
Definition: ogrlayer.cpp:1340
Core portability services for cross-platform OGR code.
OGRFieldSubType
List of field subtypes.
Definition: ogr_core.h:821
OGRFieldDomainMergePolicy
Merge policy for field domains.
Definition: ogr_core.h:1288
OGRwkbByteOrder
Enumeration to describe byte order.
Definition: ogr_core.h:620
OGRFieldDomainType
Type of field domain.
Definition: ogr_core.h:1253
OGRwkbVariant
Output variants of WKB we support.
Definition: ogr_core.h:550
OGRJustification
Display justification for field values.
Definition: ogr_core.h:846
OGRFieldType
List of feature field types.
Definition: ogr_core.h:793
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:416
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:387
OGRFieldDomainSplitPolicy
Split policy for field domains.
Definition: ogr_core.h:1270
Document node structure.
Definition: cpl_minixml.h:71
Associates a code and a value.
Definition: ogr_core.h:1240
Geometry coordinate precision.
Definition: ogr_geomcoordinateprecision.h:50
double dfZResolution
Resolution for the coordinate precision of the Z coordinate.
Definition: ogr_geomcoordinateprecision.h:68
double dfMResolution
Resolution for the coordinate precision of the M coordinate.
Definition: ogr_geomcoordinateprecision.h:73
double dfXYResolution
Resolution for the coordinate precision of the X and Y coordinates.
Definition: ogr_geomcoordinateprecision.h:62
Result item of OGR_L_GetGeometryTypes.
Definition: ogr_api.h:705
int64_t nCount
Number of geometries of type eGeomType.
Definition: ogr_api.h:709
OGRwkbGeometryType eGeomType
Geometry type.
Definition: ogr_api.h:707
WKB export options.
Definition: ogr_geometry.h:346
OGRFeature field attribute value union.
Definition: ogr_core.h:910