31 #ifndef OGR_API_H_INCLUDED
32 #define OGR_API_H_INCLUDED
43 #include "cpl_progress.h"
53 typedef struct OGRGeometryHS *OGRGeometryH;
55 typedef void *OGRGeometryH;
58 #ifndef _DEFINED_OGRSpatialReferenceH
59 #define _DEFINED_OGRSpatialReferenceH
62 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
63 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
65 typedef void *OGRSpatialReferenceH;
66 typedef void *OGRCoordinateTransformationH;
76 OGRGeometryH *,
int );
79 OGRErr CPL_DLL OGR_G_CreateFromFgf(
unsigned char *, OGRSpatialReferenceH,
80 OGRGeometryH *,
int,
int * );
85 double dfCenterX,
double dfCenterY,
double dfZ,
86 double dfPrimaryRadius,
double dfSecondaryAxis,
double dfRotation,
87 double dfStartAngle,
double dfEndAngle,
88 double dfMaxAngleStepSizeDegrees );
97 char** papszOptions );
106 OGRErr CPL_DLL
OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder,
unsigned char*);
122 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree(
const CPLXMLNode * );
123 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree( OGRGeometryH );
124 CPLXMLNode CPL_DLL *OGR_G_ExportEnvelopeToGMLTree( OGRGeometryH );
130 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromJson(
const char* );
133 OGRSpatialReferenceH );
135 OGRErr CPL_DLL
OGR_G_Transform( OGRGeometryH, OGRCoordinateTransformationH );
138 OGRGeometryH CPL_DLL
OGR_G_Simplify( OGRGeometryH hThis,
double tolerance );
154 OGRGeometryH CPL_DLL
OGR_G_Buffer( OGRGeometryH,
double,
int );
156 OGRGeometryH CPL_DLL
OGR_G_Union( OGRGeometryH, OGRGeometryH );
169 OGRGeometryH CPL_DLL
OGR_G_Value( OGRGeometryH,
double dfDistance );
181 int CPL_DLL OGR_G_Intersect( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use
OGR_G_Intersects() instead");
182 int CPL_DLL OGR_G_Equal( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use
OGR_G_Equals() instead");
184 double CPL_DLL
OGR_G_GetArea( OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use
OGR_G_Area() instead");
190 void* pabyX,
int nXStride,
191 void* pabyY,
int nYStride,
192 void* pabyZ,
int nZStride);
193 double CPL_DLL
OGR_G_GetX( OGRGeometryH,
int );
194 double CPL_DLL
OGR_G_GetY( OGRGeometryH,
int );
195 double CPL_DLL
OGR_G_GetZ( OGRGeometryH,
int );
197 double *,
double *,
double * );
200 double,
double,
double );
203 void CPL_DLL
OGR_G_AddPoint( OGRGeometryH,
double,
double,
double );
206 void* pabyX,
int nXStride,
207 void* pabyY,
int nYStride,
208 void* pabyZ,
int nZStride );
220 double dfMaxAngleStepSizeDegrees,
221 char** papszOptions);
223 char** papszOptions );
232 int bGenerate_DB2_V72_BYTE_ORDER );
234 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(
void);
244 typedef struct OGRFieldDefnHS *OGRFieldDefnH;
245 typedef struct OGRFeatureDefnHS *OGRFeatureDefnH;
246 typedef struct OGRFeatureHS *OGRFeatureH;
247 typedef struct OGRStyleTableHS *OGRStyleTableH;
249 typedef void *OGRFieldDefnH;
250 typedef void *OGRFeatureDefnH;
251 typedef void *OGRFeatureH;
252 typedef void *OGRStyleTableH;
254 typedef struct OGRGeomFieldDefnHS *OGRGeomFieldDefnH;
273 void CPL_DLL
OGR_Fld_Set( OGRFieldDefnH, const
char *, OGRFieldType,
274 int,
int, OGRJustification );
286 OGRFieldSubType eSubType );
301 OGRSpatialReferenceH hSRS );
311 OGRFeatureDefnH CPL_DLL
OGR_FD_Create( const
char * ) CPL_WARN_UNUSED_RESULT;
320 OGRErr CPL_DLL OGR_FD_ReorderFieldDefns( OGRFeatureDefnH hDefn,
int* panMap );
335 const
char *pszName);
338 OGRGeomFieldDefnH hGFldDefn);
342 OGRFeatureDefnH hOtherFDefn );
345 OGRFeatureH CPL_DLL
OGR_F_Create( OGRFeatureDefnH ) CPL_WARN_UNUSED_RESULT;
354 int CPL_DLL
OGR_F_Equal( OGRFeatureH, OGRFeatureH );
374 int *,
int *,
int *,
int * );
376 int *pnYear,
int *pnMonth,
int *pnDay,
377 int *pnHour,
int *pnMinute,
float *pfSecond,
391 int,
int,
int,
int,
int,
int,
int );
393 int,
int,
int,
int,
int,
float,
int );
399 const
char *pszName);
405 OGRGeometryH hGeom );
407 int iField, OGRGeometryH hGeom );
412 OGRErr CPL_DLL
OGR_F_SetFrom( OGRFeatureH, OGRFeatureH,
int );
418 OGRStyleTableH CPL_DLL OGR_F_GetStyleTable( OGRFeatureH );
419 void CPL_DLL OGR_F_SetStyleTableDirectly( OGRFeatureH, OGRStyleTableH );
420 void CPL_DLL OGR_F_SetStyleTable( OGRFeatureH, OGRStyleTableH );
423 int bNotNullableOnly,
424 char** papszOptions );
425 int CPL_DLL
OGR_F_Validate( OGRFeatureH,
int nValidateFlags,
int bEmitError );
432 typedef struct OGRLayerHS *OGRLayerH;
433 typedef struct OGRDataSourceHS *OGRDataSourceH;
434 typedef struct OGRDriverHS *OGRSFDriverH;
436 typedef void *OGRLayerH;
437 typedef void *OGRDataSourceH;
438 typedef void *OGRSFDriverH;
448 double,
double,
double,
double );
450 OGRGeometryH hGeom );
452 double dfMinX,
double dfMinY,
453 double dfMaxX,
double dfMaxY );
472 OGRGeomFieldDefnH hFieldDefn,
int bForce );
476 OGRErr CPL_DLL
OGR_L_AlterFieldDefn( OGRLayerH,
int iField, OGRFieldDefnH hNewFieldDefn,
int nFlags );
480 int CPL_DLL OGR_L_Reference( OGRLayerH );
481 int CPL_DLL OGR_L_Dereference( OGRLayerH );
482 int CPL_DLL OGR_L_GetRefCount( OGRLayerH );
484 GIntBig CPL_DLL OGR_L_GetFeaturesRead( OGRLayerH );
487 OGRStyleTableH CPL_DLL OGR_L_GetStyleTable( OGRLayerH );
488 void CPL_DLL OGR_L_SetStyleTableDirectly( OGRLayerH, OGRStyleTableH );
489 void CPL_DLL OGR_L_SetStyleTable( OGRLayerH, OGRStyleTableH );
491 OGRErr CPL_DLL
OGR_L_Intersection( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
492 OGRErr CPL_DLL
OGR_L_Union( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
493 OGRErr CPL_DLL
OGR_L_SymDifference( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
494 OGRErr CPL_DLL
OGR_L_Identity( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
495 OGRErr CPL_DLL
OGR_L_Update( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
496 OGRErr CPL_DLL
OGR_L_Clip( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
497 OGRErr CPL_DLL
OGR_L_Erase( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
509 OGRSpatialReferenceH, OGRwkbGeometryType,
511 OGRLayerH CPL_DLL
OGR_DS_CopyLayer( OGRDataSourceH, OGRLayerH,
const char *,
515 OGRGeometryH,
const char * );
517 int CPL_DLL OGR_DS_Reference( OGRDataSourceH );
518 int CPL_DLL OGR_DS_Dereference( OGRDataSourceH );
519 int CPL_DLL OGR_DS_GetRefCount( OGRDataSourceH );
520 int CPL_DLL OGR_DS_GetSummaryRefCount( OGRDataSourceH );
521 OGRErr CPL_DLL OGR_DS_SyncToDisk( OGRDataSourceH );
522 OGRStyleTableH CPL_DLL OGR_DS_GetStyleTable( OGRDataSourceH );
523 void CPL_DLL OGR_DS_SetStyleTableDirectly( OGRDataSourceH, OGRStyleTableH );
524 void CPL_DLL OGR_DS_SetStyleTable( OGRDataSourceH, OGRStyleTableH );
529 OGRDataSourceH CPL_DLL
OGR_Dr_Open( OGRSFDriverH,
const char *,
int ) CPL_WARN_UNUSED_RESULT;
532 char ** ) CPL_WARN_UNUSED_RESULT;
534 const
char *,
char ** ) CPL_WARN_UNUSED_RESULT;
539 OGRDataSourceH CPL_DLL
OGROpen( const
char *,
int, OGRSFDriverH * ) CPL_WARN_UNUSED_RESULT;
540 OGRDataSourceH CPL_DLL OGROpenShared( const
char *,
int, OGRSFDriverH * ) CPL_WARN_UNUSED_RESULT;
542 void CPL_DLL OGRRegisterDriver( OGRSFDriverH );
543 void CPL_DLL OGRDeregisterDriver( OGRSFDriverH );
547 int CPL_DLL OGRGetOpenDSCount(
void);
548 OGRDataSourceH CPL_DLL OGRGetOpenDS(
int iDS );
560 typedef struct OGRStyleMgrHS *OGRStyleMgrH;
561 typedef struct OGRStyleToolHS *OGRStyleToolH;
563 typedef void *OGRStyleMgrH;
564 typedef void *OGRStyleToolH;
569 OGRStyleMgrH CPL_DLL
OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT;
575 const char *pszStyleString);
577 const char *pszStyleString);
578 OGRStyleToolH CPL_DLL
OGR_SM_GetPart(OGRStyleMgrH hSM,
int nPartId,
579 const char *pszStyleString);
581 int CPL_DLL
OGR_SM_AddStyle(OGRStyleMgrH hSM,
const char *pszStyleName,
582 const char *pszStyleString);
593 double dfGroundPaperScale);
595 const char CPL_DLL *
OGR_ST_GetParamStr(OGRStyleToolH hST,
int eParam,
int *bValueIsNull);
604 int *pnRed,
int *pnGreen,
int *pnBlue,
613 const
char *pszStyleString);
615 const
char *pszFilename );
617 const
char *pszFilename );
618 const
char CPL_DLL *
OGR_STBL_Find( OGRStyleTableH hStyleTable, const
char *pszName );
OGRSpatialReferenceH OGR_G_GetSpatialReference(OGRGeometryH)
Returns spatial reference system for geometry.
Definition: ogrgeometry.cpp:1497
OGRFeatureH OGR_L_GetFeature(OGRLayerH, GIntBig)
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:481
OGRFieldDefnH OGR_Fld_Create(const char *, OGRFieldType) CPL_WARN_UNUSED_RESULT
Create a new field definition.
Definition: ogrfielddefn.cpp:97
char * OGR_G_ExportToGMLEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1090
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:1957
OGRErr OGR_L_ReorderFields(OGRLayerH, int *panMap)
Reorder all the fields of a layer.
Definition: ogrlayer.cpp:740
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1210
OGRErr OGRSetGenerate_DB2_V72_BYTE_ORDER(int bGenerate_DB2_V72_BYTE_ORDER)
Special entry point to enable the hack for generating DB2 V7.2 style WKB.
Definition: ogrgeometry.cpp:2258
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:135
OGRErr OGR_L_ReorderField(OGRLayerH, int iOldFieldPos, int iNewFieldPos)
Reorder an existing field on a layer.
Definition: ogrlayer.cpp:815
int OGR_G_GetCoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:741
OGRErr OGR_G_ImportFromWkb(OGRGeometryH, unsigned char *, int)
Assign geometry from well known binary data.
Definition: ogrgeometry.cpp:1013
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:407
OGRErr OGR_G_ImportFromWkt(OGRGeometryH, char **)
Assign geometry from well known text data.
Definition: ogrgeometry.cpp:1162
OGRGeometryH OGR_L_GetSpatialFilter(OGRLayerH)
This function returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:1086
double OGR_G_Distance(OGRGeometryH, OGRGeometryH)
Compute distance between two geometries.
Definition: ogrgeometry.cpp:2547
OGRFieldSubType
List of field subtypes.
Definition: ogr_core.h:540
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
Fetch geometry type.
Definition: ogrgeometry.cpp:1389
Document node structure.
Definition: cpl_minixml.h:65
void OGR_G_CloseRings(OGRGeometryH)
Force rings to be closed.
Definition: ogrgeometry.cpp:3948
Definitions for CPL mini XML Parser/Serializer.
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:2788
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH)
Fetch subtype of this field.
Definition: ogrfielddefn.cpp:338
OGRErr OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int)
Create a new field on a layer.
Definition: ogrlayer.cpp:673
OGRErr OGR_G_ExportToWkt(OGRGeometryH, char **)
Convert a geometry into well known text format.
Definition: ogrgeometry.cpp:1321
OGRFeatureH OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT
Feature factory.
Definition: ogrfeature.cpp:103
double OGR_G_GetArea(OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead")
Compute geometry area (deprecated)
Definition: ogr_api.cpp:995
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition: ogrfeaturestyle.cpp:2461
void OGR_F_SetFieldStringList(OGRFeatureH, int, char **)
Set field to list of strings value.
Definition: ogrfeature.cpp:3377
OGRGeometryH OGR_G_SimplifyPreserveTopology(OGRGeometryH hThis, double tolerance)
Simplify the geometry while preserving topology.
Definition: ogrgeometry.cpp:4357
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition: ogrfeature.cpp:2611
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:143
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:282
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:344
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition: ogrdatasource.cpp:60
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:395
OGRErr OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int)
Fetch the extent of this layer.
Definition: ogrlayer.cpp:305
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition: ogrfeature.cpp:2825
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1198
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1147
int OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:1049
void OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int)
Set whether this field can receive null values.
Definition: ogrfielddefn.cpp:1213
OGRErr OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH)
Add a geometry to a geometry container.
Definition: ogr_api.cpp:757
OGRDataSourceH OGR_Dr_Open(OGRSFDriverH, const char *, int) CPL_WARN_UNUSED_RESULT
Attempt to open file with this driver.
Definition: ogrsfdriver.cpp:134
OGRErr OGR_G_TransformTo(OGRGeometryH, OGRSpatialReferenceH)
Transform geometry to new spatial reference system.
Definition: ogrgeometry.cpp:527
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:335
OGRErr OGR_L_AlterFieldDefn(OGRLayerH, int iField, OGRFieldDefnH hNewFieldDefn, int nFlags)
Alter the definition of an existing field on a layer.
Definition: ogrlayer.cpp:850
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:3894
int OGR_G_Centroid(OGRGeometryH, OGRGeometryH)
Compute the geometry centroid.
Definition: ogrgeometry.cpp:4088
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:837
void OGR_G_AddPoint_2D(OGRGeometryH, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:608
OGRGeometryH OGR_G_ForceTo(OGRGeometryH hGeom, OGRwkbGeometryType eTargetType, char **papszOptions)
Convert to another geometry type.
Definition: ogrgeometryfactory.cpp:3209
OGRErr OGR_L_StartTransaction(OGRLayerH)
For datasources which support transactions, StartTransaction creates a transaction.
Definition: ogrlayer.cpp:915
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:764
OGRGeometryH OGR_G_UnionCascaded(OGRGeometryH)
Compute union using cascading.
Definition: ogrgeometry.cpp:3174
OGRErr OGR_L_SetFeature(OGRLayerH, OGRFeatureH)
Rewrite an existing feature.
Definition: ogrlayer.cpp:600
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:597
void OGR_G_GetEnvelope3D(OGRGeometryH, OGREnvelope3D *)
Computes and returns the bounding envelope (3D) for this geometry in the passed psEnvelope structure...
Definition: ogrgeometry.cpp:960
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1098
OGRGeometryH OGR_G_Boundary(OGRGeometryH)
Compute boundary.
Definition: ogrgeometry.cpp:2760
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
Definition: ogrsfdriverregistrar.cpp:347
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:333
GIntBig OGR_F_GetFieldAsInteger64(OGRFeatureH, int)
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:1497
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:2549
int OGR_G_Overlaps(OGRGeometryH, OGRGeometryH)
Test for overlap.
Definition: ogrgeometry.cpp:3909
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:4212
int OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:579
OGRErr OGR_G_CreateFromWkb(unsigned char *, OGRSpatialReferenceH, OGRGeometryH *, int)
Create a geometry object of the appropriate type from it's well known binary representation.
Definition: ogrgeometryfactory.cpp:195
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:3022
OGRErr OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Symmetrical difference of two layers.
Definition: ogrlayer.cpp:2867
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:245
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogrfeature.cpp:1091
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1103
void OGR_GFld_SetName(OGRGeomFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrgeomfielddefn.cpp:182
int OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn)
Test if the feature definition is identical to the other one.
Definition: ogrfeaturedefn.cpp:1392
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH)
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:1041
void OGR_G_Empty(OGRGeometryH)
Clear geometry information.
Definition: ogrgeometry.cpp:1533
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1276
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:999
OGRSTClassId OGR_ST_GetType(OGRStyleToolH hST)
Determine type of Style Tool.
Definition: ogrfeaturestyle.cpp:1626
void OGR_L_SetSpatialFilter(OGRLayerH, OGRGeometryH)
Set a new spatial filter.
Definition: ogrlayer.cpp:1139
void OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit, double dfGroundPaperScale)
Set Style Tool units.
Definition: ogrfeaturestyle.cpp:1676
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1645
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:1351
void OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int, float, int)
Set field to datetime.
Definition: ogrfeature.cpp:3568
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
Definition: ogrsfdriverregistrar.cpp:409
const char * OGR_L_GetName(OGRLayerH)
Return the layer name.
Definition: ogrlayer.cpp:1718
void OGR_G_AddPoint(OGRGeometryH, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:567
void OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig)
Set field to 64 bit integer value.
Definition: ogrfeature.cpp:2721
OGRDataSourceH OGR_Dr_CreateDataSource(OGRSFDriverH, const char *, char **) CPL_WARN_UNUSED_RESULT
This function attempts to create a new data source based on the passed driver.
Definition: ogrsfdriver.cpp:64
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1066
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH)
Convert to multipolygon.
Definition: ogrgeometryfactory.cpp:771
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:172
OGRGeometryH OGR_G_GetCurveGeometry(OGRGeometryH hGeom, char **papszOptions)
Return curve version of this geometry.
Definition: ogr_api.cpp:1123
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1244
OGRFeatureDefnH OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:85
int OGR_G_IsEmpty(OGRGeometryH)
Test if the geometry is empty.
Definition: ogrgeometry.cpp:1569
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:1590
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH)
Take away ownership of geometry.
Definition: ogrfeature.cpp:463
const char * OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable)
Get the style name of the last style string fetched with OGR_STBL_GetNextStyle.
Definition: ogrfeaturestyle.cpp:1360
double OGR_G_GetZ(OGRGeometryH, int)
Fetch the z coordinate of a point from a geometry.
Definition: ogr_api.cpp:207
void OGR_G_Segmentize(OGRGeometryH hGeom, double dfMaxLength)
Modify the geometry such it has no segment longer then the given distance.
Definition: ogrgeometry.cpp:663
const char * OGR_G_GetGeometryName(OGRGeometryH)
Fetch WKT name for geometry type.
Definition: ogrgeometry.cpp:1425
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1058
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition: ogrfeature.cpp:3987
void OGR_F_SetFieldRaw(OGRFeatureH, int, OGRField *)
Set field.
Definition: ogrfeature.cpp:3773
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:511
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch an handle to the internal field value given the index.
Definition: ogrfeature.cpp:1285
int OGR_STBL_AddStyle(OGRStyleTableH hStyleTable, const char *pszName, const char *pszStyleString)
Add a new style in the table.
Definition: ogrfeaturestyle.cpp:945
OGRGeometryH OGR_G_SymDifference(OGRGeometryH, OGRGeometryH)
Compute symmetric difference.
Definition: ogrgeometry.cpp:3396
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:2474
OGRErr OGR_L_SyncToDisk(OGRLayerH)
Flush pending changes to disk.
Definition: ogrlayer.cpp:1515
OGRGeomFieldDefnH OGR_GFld_Create(const char *, OGRwkbGeometryType) CPL_WARN_UNUSED_RESULT
Create a new field geometry definition.
Definition: ogrgeomfielddefn.cpp:94
OGRGeometryH OGR_G_PointOnSurface(OGRGeometryH)
Returns a point guaranteed to lie on the surface.
Definition: ogrgeometry.cpp:4133
void OGR_G_GetEnvelope(OGRGeometryH, OGREnvelope *)
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure...
Definition: ogrgeometry.cpp:926
OGRErr OGR_L_SetIgnoredFields(OGRLayerH, const char **)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrlayer.cpp:1827
enum ogr_style_tool_class_id OGRSTClassId
OGRStyleTool derived class types (returned by GetType()).
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition: ogrdatasource.cpp:269
void OGR_L_SetSpatialFilterRectEx(OGRLayerH, int iGeomField, double dfMinX, double dfMinY, double dfMaxX, double dfMaxY)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1228
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:3317
void OGR_GFld_SetNullable(OGRGeomFieldDefnH hDefn, int)
Set whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:616
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition: ogrdatasource.cpp:158
void OGR_F_SetFieldInteger64List(OGRFeatureH, int, int, const GIntBig *)
Set field to list of 64 bit integers value.
Definition: ogrfeature.cpp:3228
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:955
OGRGeometryH OGR_G_GetBoundary(OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead")
Compute boundary (deprecated)
Definition: ogrgeometry.cpp:2775
int OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName, const char *pszStyleString)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:451
void OGR_G_SetCoordinateDimension(OGRGeometryH, int)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:787
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:454
int OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:649
OGRGeometryH OGR_G_ConvexHull(OGRGeometryH)
Compute convex hull.
Definition: ogrgeometry.cpp:2655
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition: ogrfeaturestyle.cpp:2270
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string.
Definition: ogrfeature.cpp:4702
int OGR_Fld_GetPrecision(OGRFieldDefnH)
Get the formatting precision for this field.
Definition: ogrfielddefn.cpp:937
OGRGeometryH OGR_G_Simplify(OGRGeometryH hThis, double tolerance)
Compute a simplified geometry.
Definition: ogrgeometry.cpp:4271
OGRErr OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry well known binary format.
Definition: ogrgeometry.cpp:1075
OGRErr OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Union of two layers.
Definition: ogrlayer.cpp:2554
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition: ogrfeaturestyle.cpp:2322
int OGR_Dr_TestCapability(OGRSFDriverH, const char *)
Test if capability is available.
Definition: ogrsfdriver.cpp:163
OGRDataSourceH OGROpen(const char *, int, OGRSFDriverH *) CPL_WARN_UNUSED_RESULT
Open a file / data source with one of the registered drivers.
Definition: ogrsfdriverregistrar.cpp:110
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:3932
int OGR_G_HasCurveGeometry(OGRGeometryH, int bLookForNonLinear)
Returns if this geometry is or has curve geometry.
Definition: ogr_api.cpp:1050
OGRErr OGR_L_Clip(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Clip off areas that are not covered by the method layer.
Definition: ogrlayer.cpp:3657
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
Definition: ogrsfdriver.cpp:104
enum ogr_style_tool_units_id OGRSTUnitId
List of units supported by OGRStyleTools.
const char * OGR_GFld_GetNameRef(OGRGeomFieldDefnH)
Fetch name of this field.
Definition: ogrgeomfielddefn.cpp:220
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:1109
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:309
int OGR_G_Crosses(OGRGeometryH, OGRGeometryH)
Test for crossing.
Definition: ogrgeometry.cpp:3661
OGRGeometryH OGR_G_CreateFromGML(const char *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:3370
void OGR_L_ResetReading(OGRLayerH)
Reset feature reading to start on the first feature.
Definition: ogrlayer.cpp:1460
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:653
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition: ogrfeaturestyle.cpp:2218
int OGR_G_IsSimple(OGRGeometryH)
Returns TRUE if the geometry is simple.
Definition: ogrgeometry.cpp:1715
OGRGeometryH OGR_G_Difference(OGRGeometryH, OGRGeometryH)
Compute difference.
Definition: ogrgeometry.cpp:3275
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition: ogrdatasource.cpp:239
OGRGeometryH OGR_G_ForceToMultiPoint(OGRGeometryH)
Convert to multipoint.
Definition: ogrgeometryfactory.cpp:869
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:187
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH)
Fetch the next available feature from this layer.
Definition: ogrlayer.cpp:540
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:865
void OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:318
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:475
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition: ogrfeaturestyle.cpp:2502
OGRGeometryH OGR_G_Buffer(OGRGeometryH, double, int)
Compute buffer of geometry.
Definition: ogrgeometry.cpp:2890
int OGR_G_Touches(OGRGeometryH, OGRGeometryH)
Test for touching.
Definition: ogrgeometry.cpp:3578
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition: ogrdatasource.cpp:256
int OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:359
const char * OGR_Fld_GetDefault(OGRFieldDefnH hDefn)
Get default field value.
Definition: ogrfielddefn.cpp:540
char * OGR_G_ExportToJson(OGRGeometryH)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:584
void OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int, OGRJustification)
Set defining parameters for a field in one call.
Definition: ogrfielddefn.cpp:1029
void OGR_GFld_Destroy(OGRGeomFieldDefnH)
Destroy a geometry field definition.
Definition: ogrgeomfielddefn.cpp:140
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:1398
const char * OGR_Dr_GetName(OGRSFDriverH)
Fetch name of driver (file format).
Definition: ogrsfdriver.cpp:122
OGRErr OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH)
Apply arbitrary coordinate transformation to geometry.
Definition: ogrgeometry.cpp:585
void OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH, OGRSpatialReferenceH hSRS)
Set the spatial reference of this field.
Definition: ogrgeomfielddefn.cpp:491
OGRErr OGR_G_AddGeometryDirectly(OGRGeometryH, OGRGeometryH)
Add a geometry directly to an existing geometry container.
Definition: ogr_api.cpp:812
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2418
OGRwkbGeometryType OGR_L_GetGeomType(OGRLayerH)
Return the layer geometry type.
Definition: ogrlayer.cpp:1750
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:957
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1167
OGRErr OGR_L_CommitTransaction(OGRLayerH)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: ogrlayer.cpp:942
int OGR_G_Contains(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:3825
OGRErr OGR_L_Erase(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Remove areas that are covered by the method layer.
Definition: ogrlayer.cpp:3903
OGRErr OGR_G_RemoveGeometry(OGRGeometryH, int, int)
Remove a geometry from an exiting geometry container.
Definition: ogr_api.cpp:871
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1044
int OGR_L_TestCapability(OGRLayerH, const char *)
Test if this layer supported the named capability.
Definition: ogrlayer.cpp:1058
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:912
OGRStyleMgrH OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT
OGRStyleMgr factory.
Definition: ogrfeaturestyle.cpp:149
OGRErr OGR_L_SetAttributeFilter(OGRLayerH, const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:429
int OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn)
Returns whether the default value is driver specific.
Definition: ogrfielddefn.cpp:602
OGRSFDriverH OGR_DS_GetDriver(OGRDataSourceH)
Returns the driver that the dataset was opened with.
Definition: ogrdatasource.cpp:333
OGRErr OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn, int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:798
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition: ogrdatasource.cpp:286
void OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:396
OGRErr OGR_L_DeleteFeature(OGRLayerH, GIntBig)
Delete feature from layer.
Definition: ogrlayer.cpp:1541
int OGR_G_GetGeometryCount(OGRGeometryH)
Fetch the number of elements in a geometry or number of geometries in container.
Definition: ogr_api.cpp:651
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:268
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition: ogrdatasource.cpp:195
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:801
GIntBig OGR_L_GetFeatureCount(OGRLayerH, int)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:195
Core portability services for cross-platform OGR code.
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:3139
char * OGR_G_ExportToGML(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:1043
OGRErr OGR_L_Update(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Update this layer with features from the update layer.
Definition: ogrlayer.cpp:3421
OGRGeometryH OGR_G_Intersection(OGRGeometryH, OGRGeometryH)
Compute intersection.
Definition: ogrgeometry.cpp:2992
void OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount)
Set number of points in a geometry.
Definition: ogr_api.cpp:82
OGRJustification
Display justification for field values.
Definition: ogr_core.h:556
OGRStyleTableH OGR_STBL_Create(void) CPL_WARN_UNUSED_RESULT
OGRStyleTable factory.
Definition: ogrfeaturestyle.cpp:804
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:180
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:973
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:3129
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition: ogrfeature.cpp:271
OGRGeometryH OGR_G_Value(OGRGeometryH, double dfDistance)
Fetch point at given distance along curve.
Definition: ogr_api.cpp:1149
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:1590
OGRFeatureH OGR_F_Clone(OGRFeatureH)
Duplicate feature.
Definition: ogrfeature.cpp:826
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:1024
const double * OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:2171
OGRGeometryH OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees, char **papszOptions)
Return, possibly approximate, linear version of this geometry.
Definition: ogr_api.cpp:1086
OGRSpatialReferenceH OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH)
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:436
char * OGR_G_ExportToKML(OGRGeometryH, const char *pszAltitudeMode)
Convert a geometry into KML format.
Definition: ogr2kmlgeometry.cpp:471
OGRGeometryH OGR_G_CreateGeometry(OGRwkbGeometryType)
Create an empty geometry of desired type.
Definition: ogrgeometryfactory.cpp:482
OGRFieldType
List of feature field types.
Definition: ogr_core.h:512
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:2243
Simple container for a bounding region in 3D.
Definition: ogr_core.h:162
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition: ogrdatasource.cpp:305
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:2318
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:1093
void OGRRegisterAll(void)
Register all drivers.
Definition: ogrregisterall.cpp:39
OGRErr OGR_L_Intersection(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Intersection of two layers.
Definition: ogrlayer.cpp:2210
OGRGeometryH OGR_G_Polygonize(OGRGeometryH)
Polygonizes a set of sparse edges.
Definition: ogrgeometry.cpp:4490
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1277
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, GByte *)
Set field to binary data.
Definition: ogrfeature.cpp:3447
void OGR_G_SetPoints(OGRGeometryH hGeom, int nPointsIn, void *pabyX, int nXStride, void *pabyY, int nYStride, void *pabyZ, int nZStride)
Assign all points in a point or a line string geometry.
Definition: ogr_api.cpp:387
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:2027
void OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *, double *)
Fetch a point in line string or a point geometry.
Definition: ogr_api.cpp:317
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1433
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:681
int OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError)
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:5152
OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH)
Compute union.
Definition: ogrgeometry.cpp:3091
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH)
Convert to multilinestring.
Definition: ogrgeometryfactory.cpp:1113
double OGR_G_Length(OGRGeometryH)
Compute length of a geometry.
Definition: ogr_api.cpp:911
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
Definition: ogrsfdriverregistrar.cpp:381
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH)
Convert to line string.
Definition: ogrgeometryfactory.cpp:2987
void OGR_STBL_Destroy(OGRStyleTableH hSTBL)
Destroy Style Table.
Definition: ogrfeaturestyle.cpp:846
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition: ogrfeature.cpp:4307
void OGRCleanupAll(void)
Cleanup all OGR related resources.
Definition: ogrsfdriverregistrar.cpp:90
OGRLayerH OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: ogrdatasource.cpp:214
void OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double, double)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1208
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:728
int OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch)
Find the index of field in a layer.
Definition: ogrlayer.cpp:1003
Simple container for a bounding region.
Definition: ogr_core.h:48
int OGR_AreTypeSubTypeCompatible(OGRFieldType eType, OGRFieldSubType eSubType)
Return if type and subtype are compatible.
Definition: ogrfielddefn.cpp:760
OGRFeature field attribute value union.
Definition: ogr_core.h:574
OGRGeometryH OGR_G_ForceToPolygon(OGRGeometryH)
Convert to polygon.
Definition: ogrgeometryfactory.cpp:643
const char * OGR_GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition: ogrfielddefn.cpp:741
int OGR_G_WkbSize(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:896
OGRErr OGR_G_CreateFromWkt(char **, OGRSpatialReferenceH, OGRGeometryH *)
Create a geometry object of the appropriate type from it's well known text representation.
Definition: ogrgeometryfactory.cpp:384
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:686
int OGR_G_Within(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:3743
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:608
OGRStyleToolH OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId, const char *pszStyleString)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:733
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:4652
OGRGeometryH OGRBuildPolygonFromEdges(OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose, double dfTolerance, OGRErr *peErr)
Build a ring from a bunch of arcs.
Definition: ograssemblepolygon.cpp:134
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH)
Fetch the schema information for this layer.
Definition: ogrlayer.cpp:986
OGRErr OGRReleaseDataSource(OGRDataSourceH)
Drop a reference to this datasource, and if the reference count drops to zero close (destroy) the dat...
Definition: ogrsfdriverregistrar.cpp:153
int OGR_GFld_IsNullable(OGRGeomFieldDefnH hDefn)
Return whether this geometry field can receive null values.
Definition: ogrgeomfielddefn.cpp:570
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1242
int OGR_Fld_IsNullable(OGRFieldDefnH hDefn)
Return whether this field can receive null values.
Definition: ogrfielddefn.cpp:1167
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:3532
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:129
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:1620
OGRErr OGR_L_RollbackTransaction(OGRLayerH)
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: ogrlayer.cpp:969
void OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField, OGRGeometryH hGeom)
Set a new spatial filter.
Definition: ogrlayer.cpp:1156
void OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue)
Set Style Tool parameter value from a string.
Definition: ogrfeaturestyle.cpp:2373
void OGR_SM_Destroy(OGRStyleMgrH hSM)
Destroy Style Manager.
Definition: ogrfeaturestyle.cpp:182
OGRErr OGR_L_CreateFeature(OGRLayerH, OGRFeatureH)
Create and write a new feature within a layer.
Definition: ogrlayer.cpp:639
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, int *)
Set one feature from another.
Definition: ogrfeature.cpp:4441
double OGR_G_GetY(OGRGeometryH, int)
Fetch the x coordinate of a point from a geometry.
Definition: ogr_api.cpp:160
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1397
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:869
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:512
int OGR_G_Equals(OGRGeometryH, OGRGeometryH)
Returns TRUE if two geometries are equivalent.
Definition: ogrgeometry.cpp:827
OGRGeometryH OGR_G_SymmetricDifference(OGRGeometryH, OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_SymDifference() instead")
Compute symmetric difference (deprecated)
Definition: ogrgeometry.cpp:3412
OGRwkbGeometryType OGR_GFld_GetType(OGRGeomFieldDefnH)
Fetch geometry type of this field.
Definition: ogrgeomfielddefn.cpp:263
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:593
void OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType)
Set the type of this field.
Definition: ogrfielddefn.cpp:304
const char * OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat)
Initialize style manager from the style string of a feature.
Definition: ogrfeaturestyle.cpp:276
void OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *)
Set default field value.
Definition: ogrfielddefn.cpp:502
void OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType)
Set the subtype of this field.
Definition: ogrfielddefn.cpp:393
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1310
int OGR_G_IsRing(OGRGeometryH)
Test if the geometry is a ring.
Definition: ogrgeometry.cpp:1788
void OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *)
Dump geometry in well known text format to indicated output file.
Definition: ogrgeometry.cpp:255
void OGR_G_DestroyGeometry(OGRGeometryH)
Destroy geometry object.
Definition: ogrgeometryfactory.cpp:526
int OGR_G_Disjoint(OGRGeometryH, OGRGeometryH)
Test for disjointness.
Definition: ogrgeometry.cpp:3495
OGRErr OGR_L_DeleteField(OGRLayerH, int iField)
Create a new field on a layer.
Definition: ogrlayer.cpp:708
void OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType)
Assign the base geometry type for the passed layer (the same as the feature definition).
Definition: ogrfeaturedefn.cpp:985
const char * OGR_STBL_Find(OGRStyleTableH hStyleTable, const char *pszName)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1161
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1329
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:901
OGRErr OGR_L_SetNextByIndex(OGRLayerH, GIntBig)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:523
const GIntBig * OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *)
Fetch field value as a list of 64 bit integers.
Definition: ogrfeature.cpp:2100
void OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly, char **papszOptions)
Fill unset fields with default values that might be defined.
Definition: ogrfeature.cpp:5008
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:252
OGRErr OGR_L_CreateGeomField(OGRLayerH hLayer, OGRGeomFieldDefnH hFieldDefn, int bForce)
Create a new geometry field on a layer.
Definition: ogrlayer.cpp:885
OGRGeometryH OGR_G_Clone(OGRGeometryH)
Make a copy of this object.
Definition: ogrgeometry.cpp:1461
void OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType)
Set the geometry type of this field.
Definition: ogrgeomfielddefn.cpp:321
void OGRSetNonLinearGeometriesEnabledFlag(int bFlag)
Set flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1193
int OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *, int *, int *, int *, int *)
Fetch field value as date and time.
Definition: ogrfeature.cpp:2431
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:853
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:214
OGRDataSourceH OGR_Dr_CopyDataSource(OGRSFDriverH, OGRDataSourceH, const char *, char **) CPL_WARN_UNUSED_RESULT
This function creates a new datasource by copying all the layers from the source datasource.
Definition: ogrsfdriver.cpp:188
OGRGeometryH OGR_G_GetGeometryRef(OGRGeometryH, int)
Fetch geometry from a geometry container.
Definition: ogr_api.cpp:704
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:322
int OGR_G_Intersects(OGRGeometryH, OGRGeometryH)
Do these features intersect?
Definition: ogrgeometry.cpp:425
int OGR_G_GetDimension(OGRGeometryH)
Get the dimension of this geometry.
Definition: ogrgeometry.cpp:694
int OGR_G_IsValid(OGRGeometryH)
Test if the geometry is valid.
Definition: ogrgeometry.cpp:1642
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition: ogrfeature.cpp:4749
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:906
double OGR_G_GetX(OGRGeometryH, int)
Fetch the x coordinate of a point from a geometry.
Definition: ogr_api.cpp:113
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition: ogrdatasource.cpp:176
int OGR_G_GetPointCount(OGRGeometryH)
Fetch number of points from a geometry.
Definition: ogr_api.cpp:51
void OGR_G_FlattenTo2D(OGRGeometryH)
Convert geometry to strictly 2D.
Definition: ogrgeometry.cpp:2138