31 #ifndef OGR_API_H_INCLUDED 32 #define OGR_API_H_INCLUDED 43 #include "cpl_progress.h" 52 typedef struct OGRGeometryHS *OGRGeometryH;
54 typedef void *OGRGeometryH;
57 #ifndef _DEFINED_OGRSpatialReferenceH 58 #define _DEFINED_OGRSpatialReferenceH 61 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
62 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
64 typedef void *OGRSpatialReferenceH;
65 typedef void *OGRCoordinateTransformationH;
75 OGRGeometryH *,
int );
78 OGRErr CPL_DLL OGR_G_CreateFromFgf(
unsigned char *, OGRSpatialReferenceH,
79 OGRGeometryH *,
int,
int * );
84 double dfCenterX,
double dfCenterY,
double dfZ,
85 double dfPrimaryRadius,
double dfSecondaryAxis,
double dfRotation,
86 double dfStartAngle,
double dfEndAngle,
87 double dfMaxAngleStepSizeDegrees );
102 OGRErr CPL_DLL
OGR_G_ExportToWkb( OGRGeometryH, OGRwkbByteOrder,
unsigned char*);
116 #if defined(_CPL_MINIXML_H_INCLUDED) 117 OGRGeometryH CPL_DLL OGR_G_CreateFromGMLTree(
const CPLXMLNode * );
118 CPLXMLNode CPL_DLL *OGR_G_ExportToGMLTree( OGRGeometryH );
119 CPLXMLNode CPL_DLL *OGR_G_ExportEnvelopeToGMLTree( OGRGeometryH );
126 OGRGeometryH CPL_DLL OGR_G_CreateGeometryFromJson(
const char* );
129 OGRSpatialReferenceH );
131 OGRErr CPL_DLL
OGR_G_Transform( OGRGeometryH, OGRCoordinateTransformationH );
134 OGRGeometryH CPL_DLL
OGR_G_Simplify( OGRGeometryH hThis,
double tolerance );
150 OGRGeometryH CPL_DLL
OGR_G_Buffer( OGRGeometryH,
double,
int );
152 OGRGeometryH CPL_DLL
OGR_G_Union( OGRGeometryH, OGRGeometryH );
176 int CPL_DLL OGR_G_Intersect( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use
OGR_G_Intersects() instead");
177 int CPL_DLL OGR_G_Equal( OGRGeometryH, OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use
OGR_G_Equals() instead");
179 double CPL_DLL
OGR_G_GetArea( OGRGeometryH ) CPL_WARN_DEPRECATED("Non standard method. Use
OGR_G_Area() instead");
185 void* pabyX,
int nXStride,
186 void* pabyY,
int nYStride,
187 void* pabyZ,
int nZStride);
188 double CPL_DLL
OGR_G_GetX( OGRGeometryH,
int );
189 double CPL_DLL
OGR_G_GetY( OGRGeometryH,
int );
190 double CPL_DLL
OGR_G_GetZ( OGRGeometryH,
int );
192 double *,
double *,
double * );
195 double,
double,
double );
198 void CPL_DLL
OGR_G_AddPoint( OGRGeometryH,
double,
double,
double );
201 void* pabyX,
int nXStride,
202 void* pabyY,
int nYStride,
203 void* pabyZ,
int nZStride );
220 int bGenerate_DB2_V72_BYTE_ORDER );
222 int CPL_DLL OGRGetGenerate_DB2_V72_BYTE_ORDER(
void);
229 typedef struct OGRFieldDefnHS *OGRFieldDefnH;
230 typedef struct OGRFeatureDefnHS *OGRFeatureDefnH;
231 typedef struct OGRFeatureHS *OGRFeatureH;
232 typedef struct OGRStyleTableHS *OGRStyleTableH;
234 typedef void *OGRFieldDefnH;
235 typedef void *OGRFeatureDefnH;
236 typedef void *OGRFeatureH;
237 typedef void *OGRStyleTableH;
239 typedef struct OGRGeomFieldDefnHS *OGRGeomFieldDefnH;
256 void CPL_DLL
OGR_Fld_Set( OGRFieldDefnH, const
char *, OGRFieldType,
257 int,
int, OGRJustification );
276 OGRSpatialReferenceH hSRS );
283 OGRFeatureDefnH CPL_DLL
OGR_FD_Create( const
char * ) CPL_WARN_UNUSED_RESULT;
292 OGRErr CPL_DLL OGR_FD_ReorderFieldDefns( OGRFeatureDefnH hDefn,
int* panMap );
307 const
char *pszName);
310 OGRGeomFieldDefnH hGFldDefn);
314 OGRFeatureDefnH hOtherFDefn );
317 OGRFeatureH CPL_DLL
OGR_F_Create( OGRFeatureDefnH ) CPL_WARN_UNUSED_RESULT;
326 int CPL_DLL
OGR_F_Equal( OGRFeatureH, OGRFeatureH );
344 int *,
int *,
int *,
int * );
355 int,
int,
int,
int,
int,
int,
int );
361 const
char *pszName);
367 OGRGeometryH hGeom );
369 int iField, OGRGeometryH hGeom );
374 OGRErr CPL_DLL
OGR_F_SetFrom( OGRFeatureH, OGRFeatureH,
int );
380 OGRStyleTableH CPL_DLL OGR_F_GetStyleTable( OGRFeatureH );
381 void CPL_DLL OGR_F_SetStyleTableDirectly( OGRFeatureH, OGRStyleTableH );
382 void CPL_DLL OGR_F_SetStyleTable( OGRFeatureH, OGRStyleTableH );
389 typedef struct OGRLayerHS *OGRLayerH;
390 typedef struct OGRDataSourceHS *OGRDataSourceH;
391 typedef struct OGRDriverHS *OGRSFDriverH;
393 typedef void *OGRLayerH;
394 typedef void *OGRDataSourceH;
395 typedef void *OGRSFDriverH;
405 double,
double,
double,
double );
407 OGRGeometryH hGeom );
409 double dfMinX,
double dfMinY,
410 double dfMaxX,
double dfMaxY );
429 OGRGeomFieldDefnH hFieldDefn,
int bForce );
433 OGRErr CPL_DLL
OGR_L_AlterFieldDefn( OGRLayerH,
int iField, OGRFieldDefnH hNewFieldDefn,
int nFlags );
437 int CPL_DLL OGR_L_Reference( OGRLayerH );
438 int CPL_DLL OGR_L_Dereference( OGRLayerH );
439 int CPL_DLL OGR_L_GetRefCount( OGRLayerH );
441 GIntBig CPL_DLL OGR_L_GetFeaturesRead( OGRLayerH );
444 OGRStyleTableH CPL_DLL OGR_L_GetStyleTable( OGRLayerH );
445 void CPL_DLL OGR_L_SetStyleTableDirectly( OGRLayerH, OGRStyleTableH );
446 void CPL_DLL OGR_L_SetStyleTable( OGRLayerH, OGRStyleTableH );
448 OGRErr CPL_DLL
OGR_L_Intersection( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
449 OGRErr CPL_DLL
OGR_L_Union( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
450 OGRErr CPL_DLL
OGR_L_SymDifference( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
451 OGRErr CPL_DLL
OGR_L_Identity( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
452 OGRErr CPL_DLL
OGR_L_Update( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
453 OGRErr CPL_DLL
OGR_L_Clip( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
454 OGRErr CPL_DLL
OGR_L_Erase( OGRLayerH, OGRLayerH, OGRLayerH,
char**, GDALProgressFunc,
void * );
466 OGRSpatialReferenceH, OGRwkbGeometryType,
468 OGRLayerH CPL_DLL
OGR_DS_CopyLayer( OGRDataSourceH, OGRLayerH,
const char *,
472 OGRGeometryH,
const char * );
474 int CPL_DLL OGR_DS_Reference( OGRDataSourceH );
475 int CPL_DLL OGR_DS_Dereference( OGRDataSourceH );
476 int CPL_DLL OGR_DS_GetRefCount( OGRDataSourceH );
477 int CPL_DLL OGR_DS_GetSummaryRefCount( OGRDataSourceH );
479 OGRStyleTableH CPL_DLL OGR_DS_GetStyleTable( OGRDataSourceH );
480 void CPL_DLL OGR_DS_SetStyleTableDirectly( OGRDataSourceH, OGRStyleTableH );
481 void CPL_DLL OGR_DS_SetStyleTable( OGRDataSourceH, OGRStyleTableH );
486 OGRDataSourceH CPL_DLL
OGR_Dr_Open( OGRSFDriverH,
const char *,
int ) CPL_WARN_UNUSED_RESULT;
489 char ** ) CPL_WARN_UNUSED_RESULT;
491 const
char *,
char ** ) CPL_WARN_UNUSED_RESULT;
496 OGRDataSourceH CPL_DLL
OGROpen( const
char *,
int, OGRSFDriverH * ) CPL_WARN_UNUSED_RESULT;
497 OGRDataSourceH CPL_DLL OGROpenShared( const
char *,
int, OGRSFDriverH * ) CPL_WARN_UNUSED_RESULT;
517 typedef struct OGRStyleMgrHS *OGRStyleMgrH;
518 typedef struct OGRStyleToolHS *OGRStyleToolH;
520 typedef void *OGRStyleMgrH;
521 typedef void *OGRStyleToolH;
526 OGRStyleMgrH CPL_DLL
OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT;
532 const char *pszStyleString);
534 const char *pszStyleString);
535 OGRStyleToolH CPL_DLL
OGR_SM_GetPart(OGRStyleMgrH hSM,
int nPartId,
536 const char *pszStyleString);
538 int CPL_DLL
OGR_SM_AddStyle(OGRStyleMgrH hSM,
const char *pszStyleName,
539 const char *pszStyleString);
550 double dfGroundPaperScale);
552 const char CPL_DLL *
OGR_ST_GetParamStr(OGRStyleToolH hST,
int eParam,
int *bValueIsNull);
561 int *pnRed,
int *pnGreen,
int *pnBlue,
570 const
char *pszStyleString);
572 const
char *pszFilename );
574 const
char *pszFilename );
575 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:1262
OGRFieldDefnH OGR_Fld_Create(const char *, OGRFieldType) CPL_WARN_UNUSED_RESULT
Create a new field definition.
Definition: ogrfielddefn.cpp:90
char * OGR_G_ExportToGMLEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:977
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:1739
OGRErr OGR_L_ReorderFields(OGRLayerH, int *panMap)
Reorder all the fields of a layer.
Definition: ogrlayer.cpp:647
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:1921
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:134
OGRErr OGR_L_ReorderField(OGRLayerH, int iOldFieldPos, int iNewFieldPos)
Reorder an existing field on a layer.
Definition: ogrlayer.cpp:717
int OGR_G_GetCoordinateDimension(OGRGeometryH)
Get the dimension of the coordinates in this geometry.
Definition: ogrgeometry.cpp:695
OGRErr OGR_G_ImportFromWkb(OGRGeometryH, unsigned char *, int)
Assign geometry from well known binary data.
Definition: ogrgeometry.cpp:966
OGRDataSourceH OGRGetOpenDS(int iDS)
Return the iDS th datasource opened.
Definition: ogrsfdriverregistrar.cpp:551
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:395
OGRErr OGR_G_ImportFromWkt(OGRGeometryH, char **)
Assign geometry from well known text data.
Definition: ogrgeometry.cpp:1074
OGRGeometryH OGR_L_GetSpatialFilter(OGRLayerH)
This function returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:938
double OGR_G_Distance(OGRGeometryH, OGRGeometryH)
Compute distance between two geometries.
Definition: ogrgeometry.cpp:2110
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
Fetch geometry type.
Definition: ogrgeometry.cpp:1154
Definition: cpl_minixml.h:65
void OGR_G_CloseRings(OGRGeometryH)
Force rings to be closed.
Definition: ogrgeometry.cpp:3483
OGRGeometryH OGR_G_ApproximateArcAngles(double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius, double dfSecondaryAxis, double dfRotation, double dfStartAngle, double dfEndAngle, double dfMaxAngleStepSizeDegrees)
Definition: ogrgeometryfactory.cpp:2614
OGRErr OGR_L_CreateField(OGRLayerH, OGRFieldDefnH, int)
Create a new field on a layer.
Definition: ogrlayer.cpp:590
OGRErr OGR_G_ExportToWkt(OGRGeometryH, char **)
Convert a geometry into well known text format.
Definition: ogrgeometry.cpp:1116
OGRFeatureH OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT
Feature factory.
Definition: ogrfeature.cpp:101
double OGR_G_GetArea(OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Area() instead")
Compute geometry area (deprecated)
Definition: ogr_api.cpp:1014
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:2655
OGRGeometryH OGR_G_SimplifyPreserveTopology(OGRGeometryH hThis, double tolerance)
Simplify the geometry while preserving topology.
Definition: ogrgeometry.cpp:3890
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition: ogrfeature.cpp:2215
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:133
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:281
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:338
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition: ogrdatasource.cpp:90
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:392
OGRErr OGR_L_GetExtent(OGRLayerH, OGREnvelope *, int)
Fetch the extent of this layer.
Definition: ogrlayer.cpp:295
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition: ogrfeature.cpp:2303
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1150
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1104
int OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:1049
OGRErr OGR_G_AddGeometry(OGRGeometryH, OGRGeometryH)
Add a geometry to a geometry container.
Definition: ogr_api.cpp:752
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:487
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:332
OGRErr OGR_L_AlterFieldDefn(OGRLayerH, int iField, OGRFieldDefnH hNewFieldDefn, int nFlags)
Alter the definition of an existing field on a layer.
Definition: ogrlayer.cpp:747
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:3090
int OGR_G_Centroid(OGRGeometryH, OGRGeometryH)
Compute the geometry centroid.
Definition: ogrgeometry.cpp:3623
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:444
void OGR_G_AddPoint_2D(OGRGeometryH, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:601
OGRErr OGR_L_StartTransaction(OGRLayerH)
For datasources which support transactions, StartTransaction creates a transaction.
Definition: ogrlayer.cpp:802
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:733
OGRGeometryH OGR_G_UnionCascaded(OGRGeometryH)
Compute union using cascading.
Definition: ogrgeometry.cpp:2711
OGRErr OGR_L_SetFeature(OGRLayerH, OGRFeatureH)
Rewrite an existing feature.
Definition: ogrlayer.cpp:527
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:583
void OGR_G_GetEnvelope3D(OGRGeometryH, OGREnvelope3D *)
Computes and returns the bounding envelope (3D) for this geometry in the passed psEnvelope structure...
Definition: ogrgeometry.cpp:914
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:705
OGRGeometryH OGR_G_Boundary(OGRGeometryH)
Compute boundary.
Definition: ogrgeometry.cpp:2301
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
Definition: ogrsfdriverregistrar.cpp:679
OGRErr OGR_F_SetFID(OGRFeatureH, long)
Set the feature identifier.
Definition: ogrfeature.cpp:3181
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:333
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:3444
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:3382
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:191
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:2444
OGRErr OGR_L_SymDifference(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Symmetrical difference of two layers.
Definition: ogrlayer.cpp:2640
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:244
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogrfeature.cpp:1054
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:179
int OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn)
Test if the feature definition is identical to the other one.
Definition: ogrfeaturedefn.cpp:1344
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH)
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:903
void OGR_G_Empty(OGRGeometryH)
Clear geometry information. This restores the geometry to it's initial state after construction...
Definition: ogrgeometry.cpp:1298
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1228
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:962
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:986
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
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
Definition: ogrsfdriverregistrar.cpp:738
const char * OGR_L_GetName(OGRLayerH)
Return the layer name.
Definition: ogrlayer.cpp:1521
void OGRDeregisterDriver(OGRSFDriverH)
Remove the passed driver from the list of registered drivers.
Definition: ogrsfdriverregistrar.cpp:656
void OGR_G_AddPoint(OGRGeometryH, double, double, double)
Add a point to a geometry (line string or point).
Definition: ogr_api.cpp:561
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:63
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:673
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH)
Convert to multipolygon.
Definition: ogrgeometryfactory.cpp:657
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:171
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1206
OGRFeatureDefnH OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:84
int OGR_G_IsEmpty(OGRGeometryH)
Test if the geometry is empty.
Definition: ogrgeometry.cpp:1334
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:1403
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH)
Take away ownership of geometry.
Definition: ogrfeature.cpp:460
const char * OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable)
Definition: ogrfeaturestyle.cpp:1360
OGRErr OGR_DS_SyncToDisk(OGRDataSourceH)
Flush pending changes to disk.
Definition: ogrdatasource.cpp:1819
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:617
const char * OGR_G_GetGeometryName(OGRGeometryH)
Fetch WKT name for geometry type.
Definition: ogrgeometry.cpp:1190
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1015
void OGR_F_SetFieldRaw(OGRFeatureH, int, OGRField *)
Set field.
Definition: ogrfeature.cpp:2975
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:508
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch an handle to the internal field value given the index.
Definition: ogrfeature.cpp:1247
int OGR_STBL_AddStyle(OGRStyleTableH hStyleTable, const char *pszName, const char *pszStyleString)
Add a new style in the table. No comparison will be done on the Style string, only on the name...
Definition: ogrfeaturestyle.cpp:945
void OGRRegisterDriver(OGRSFDriverH)
Add a driver to the list of registered drivers.
Definition: ogrsfdriverregistrar.cpp:616
OGRGeometryH OGR_G_SymDifference(OGRGeometryH, OGRGeometryH)
Compute symmetric difference.
Definition: ogrgeometry.cpp:2931
OGRErr OGR_L_SyncToDisk(OGRLayerH)
Flush pending changes to disk.
Definition: ogrlayer.cpp:1337
OGRGeomFieldDefnH OGR_GFld_Create(const char *, OGRwkbGeometryType) CPL_WARN_UNUSED_RESULT
Create a new field geometry definition.
Definition: ogrgeomfielddefn.cpp:92
OGRGeometryH OGR_G_PointOnSurface(OGRGeometryH)
Returns a point guaranteed to lie on the surface.
Definition: ogrgeometry.cpp:3668
void OGR_G_GetEnvelope(OGRGeometryH, OGREnvelope *)
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure...
Definition: ogrgeometry.cpp:880
OGRErr OGR_L_SetIgnoredFields(OGRLayerH, const char **)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrlayer.cpp:1605
enum ogr_style_tool_class_id OGRSTClassId
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition: ogrdatasource.cpp:1757
void OGR_L_SetSpatialFilterRectEx(OGRLayerH, int iGeomField, double dfMinX, double dfMinY, double dfMaxX, double dfMaxY)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1060
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:2595
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition: ogrdatasource.cpp:483
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:918
OGRGeometryH OGR_G_GetBoundary(OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_Boundary() instead")
Compute boundary (deprecated)
Definition: ogrgeometry.cpp:2316
int OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName, const char *pszStyleString)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:451
int OGR_L_GetFeatureCount(OGRLayerH, int)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:194
void OGR_G_SetCoordinateDimension(OGRGeometryH, int)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:741
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:450
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:2197
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. This method operate exactly as OGR_F_SetStyleStringDirectly() except that i...
Definition: ogrfeature.cpp:3853
int OGR_Fld_GetPrecision(OGRFieldDefnH)
Get the formatting precision for this field. This should normally be zero for fields of types other t...
Definition: ogrfielddefn.cpp:544
OGRGeometryH OGR_G_Simplify(OGRGeometryH hThis, double tolerance)
Compute a simplified geometry.
Definition: ogrgeometry.cpp:3805
OGRErr OGR_G_ExportToWkb(OGRGeometryH, OGRwkbByteOrder, unsigned char *)
Convert a geometry into well known binary format.
Definition: ogrgeometry.cpp:1021
OGRErr OGR_L_Union(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Union of two layers.
Definition: ogrlayer.cpp:2327
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:152
OGRDataSourceH OGROpen(const char *, int, OGRSFDriverH *) CPL_WARN_UNUSED_RESULT
Open a file / data source with one of the registered drivers.
Definition: ogrsfdriverregistrar.cpp:276
OGRErr OGR_L_Clip(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Clip off areas that are not covered by the method layer.
Definition: ogrlayer.cpp:3430
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
Definition: ogrsfdriver.cpp:108
enum ogr_style_tool_units_id OGRSTUnitId
const char * OGR_GFld_GetNameRef(OGRGeomFieldDefnH)
Fetch name of this field.
Definition: ogrgeomfielddefn.cpp:217
OGRwkbGeometryType
Definition: ogr_core.h:308
int OGR_G_Crosses(OGRGeometryH, OGRGeometryH)
Test for crossing.
Definition: ogrgeometry.cpp:3196
OGRGeometryH OGR_G_CreateFromGML(const char *)
Create geometry from GML.
Definition: gml2ogrgeometry.cpp:2493
void OGR_L_ResetReading(OGRLayerH)
Reset feature reading to start on the first feature.
Definition: ogrlayer.cpp:1287
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:636
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:1480
OGRGeometryH OGR_G_Difference(OGRGeometryH, OGRGeometryH)
Compute difference.
Definition: ogrgeometry.cpp:2811
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition: ogrdatasource.cpp:1732
OGRGeometryH OGR_G_ForceToMultiPoint(OGRGeometryH)
Convert to multipoint.
Definition: ogrgeometryfactory.cpp:756
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:184
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH)
Fetch the next available feature from this layer.
Definition: ogrlayer.cpp:505
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:834
void OGR_G_AssignSpatialReference(OGRGeometryH, OGRSpatialReferenceH)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:278
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:463
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:2430
int OGR_G_Touches(OGRGeometryH, OGRGeometryH)
Test for touching.
Definition: ogrgeometry.cpp:3113
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition: ogrdatasource.cpp:1744
int OGR_GFld_IsIgnored(OGRGeomFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:339
char * OGR_G_ExportToJson(OGRGeometryH)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:551
void OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int, OGRJustification)
Set defining parameters for a field in one call.
Definition: ogrfielddefn.cpp:636
void OGR_GFld_Destroy(OGRGeomFieldDefnH)
Destroy a geometry field definition.
Definition: ogrgeomfielddefn.cpp:137
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:1337
long OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:3126
const char * OGR_Dr_GetName(OGRSFDriverH)
Fetch name of driver (file format). This name should be relatively short (10-40 characters), and should reflect the underlying file format. For instance "ESRI Shapefile".
Definition: ogrsfdriver.cpp:122
OGRErr OGR_G_Transform(OGRGeometryH, OGRCoordinateTransformationH)
Apply arbitrary coordinate transformation to geometry.
Definition: ogrgeometry.cpp:545
void OGR_GFld_SetSpatialRef(OGRGeomFieldDefnH, OGRSpatialReferenceH hSRS)
Set the spatial reference of this field.
Definition: ogrgeomfielddefn.cpp:465
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:1541
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:966
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1130
OGRErr OGR_L_CommitTransaction(OGRLayerH)
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: ogrlayer.cpp:824
int OGR_G_Contains(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:3360
OGRErr OGR_L_Erase(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Remove areas that are covered by the method layer.
Definition: ogrlayer.cpp:3667
OGRErr OGR_G_RemoveGeometry(OGRGeometryH, int, int)
Remove a geometry from an exiting geometry container.
Definition: ogr_api.cpp:875
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1007
int OGR_L_TestCapability(OGRLayerH, const char *)
Test if this layer supported the named capability.
Definition: ogrlayer.cpp:915
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:879
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:409
OGRSFDriverH OGR_DS_GetDriver(OGRDataSourceH)
Returns the driver that the dataset was opened with.
Definition: ogrdatasource.cpp:1841
OGRErr OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn, int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:773
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition: ogrdatasource.cpp:1769
void OGR_GFld_SetIgnored(OGRGeomFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrgeomfielddefn.cpp:376
int OGR_G_GetGeometryCount(OGRGeometryH)
Fetch the number of elements in a geometry or number of geometries in container.
Definition: ogr_api.cpp:643
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:267
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition: ogrdatasource.cpp:562
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:412
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:2912
char * OGR_G_ExportToGML(OGRGeometryH)
Convert a geometry into GML format.
Definition: ogr2gmlgeometry.cpp:937
OGRErr OGR_L_Update(OGRLayerH, OGRLayerH, OGRLayerH, char **, GDALProgressFunc, void *)
Update this layer with features from the update layer.
Definition: ogrlayer.cpp:3194
OGRGeometryH OGR_G_Intersection(OGRGeometryH, OGRGeometryH)
Compute intersection.
Definition: ogrgeometry.cpp:2531
void OGR_G_SetPointCount(OGRGeometryH hGeom, int nNewPointCount)
Set number of points in a geometry.
Definition: ogr_api.cpp:85
OGRJustification
Definition: ogr_core.h:409
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:170
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:580
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:2519
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition: ogrfeature.cpp:268
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:1427
OGRFeatureH OGR_F_Clone(OGRFeatureH)
Duplicate feature.
Definition: ogrfeature.cpp:795
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:981
const double * OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:1880
OGRSpatialReferenceH OGR_GFld_GetSpatialRef(OGRGeomFieldDefnH)
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:416
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:431
OGRFieldType
Definition: ogr_core.h:388
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:1952
Definition: ogr_core.h:162
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition: ogrdatasource.cpp:1781
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:2022
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:1050
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:1983
OGRGeometryH OGR_G_Polygonize(OGRGeometryH)
Polygonizes a set of sparse edges.
Definition: ogrgeometry.cpp:4023
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:2717
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:384
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:1809
void OGR_G_GetPoint(OGRGeometryH, int iPoint, double *, double *, double *)
Fetch a point in line string or a point geometry.
Definition: ogr_api.cpp:315
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:380
OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH)
Compute union.
Definition: ogrgeometry.cpp:2629
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH)
Convert to multilinestring.
Definition: ogrgeometryfactory.cpp:946
double OGR_G_Length(OGRGeometryH)
Compute length of a geometry.
Definition: ogr_api.cpp:918
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
Definition: ogrsfdriverregistrar.cpp:707
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH)
Convert to line string.
Definition: ogrgeometryfactory.cpp:2755
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:3477
void OGRCleanupAll(void)
Cleanup all OGR related resources.
Definition: ogrsfdriverregistrar.cpp:139
OGRLayerH OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: ogrdatasource.cpp:1704
void OGR_L_SetSpatialFilterRect(OGRLayerH, double, double, double, double)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1045
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:703
int OGR_L_FindFieldIndex(OGRLayerH, const char *, int bExactMatch)
Find the index of field in a layer.
Definition: ogrlayer.cpp:870
Definition: ogr_core.h:48
Definition: ogr_core.h:427
OGRErr OGR_L_SetNextByIndex(OGRLayerH, long)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:493
OGRGeometryH OGR_G_ForceToPolygon(OGRGeometryH)
Convert to polygon.
Definition: ogrgeometryfactory.cpp:554
int OGR_G_WkbSize(OGRGeometryH hGeom)
Returns size of related binary representation.
Definition: ogrgeometry.cpp:850
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:348
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:658
int OGR_G_Within(OGRGeometryH, OGRGeometryH)
Test for containment.
Definition: ogrgeometry.cpp:3278
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions)
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:575
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:3803
OGRGeometryH OGRBuildPolygonFromEdges(OGRGeometryH hLinesAsCollection, int bBestEffort, int bAutoClose, double dfTolerance, OGRErr *peErr)
Definition: ograssemblepolygon.cpp:134
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH)
Fetch the schema information for this layer.
Definition: ogrlayer.cpp:858
OGRErr OGRReleaseDataSource(OGRDataSourceH)
Drop a reference to this datasource, and if the reference count drops to zero close (destroy) the dat...
Definition: ogrsfdriverregistrar.cpp:512
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1194
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:2800
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:228
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:1428
OGRErr OGR_L_RollbackTransaction(OGRLayerH)
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: ogrlayer.cpp:846
void OGR_L_SetSpatialFilterEx(OGRLayerH, int iGeomField, OGRGeometryH hGeom)
Set a new spatial filter.
Definition: ogrlayer.cpp:998
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:550
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, int *)
Set one feature from another.
Definition: ogrfeature.cpp:3611
double OGR_G_GetY(OGRGeometryH, int)
Fetch the x coordinate of a point from a geometry.
Definition: ogr_api.cpp:161
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1397
OGRFeatureH OGR_L_GetFeature(OGRLayerH, long)
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:456
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:476
int OGRGetOpenDSCount(void)
Return the number of opened datasources.
Definition: ogrsfdriverregistrar.cpp:525
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:507
int OGR_G_Equals(OGRGeometryH, OGRGeometryH)
Returns TRUE if two geometries are equivalent.
Definition: ogrgeometry.cpp:781
OGRGeometryH OGR_G_SymmetricDifference(OGRGeometryH, OGRGeometryH) CPL_WARN_DEPRECATED("Non standard method. Use OGR_G_SymDifference() instead")
Compute symmetric difference (deprecated)
Definition: ogrgeometry.cpp:2947
OGRwkbGeometryType OGR_GFld_GetType(OGRGeomFieldDefnH)
Fetch geometry type of this field.
Definition: ogrgeomfielddefn.cpp:254
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:581
void OGR_Fld_SetType(OGRFieldDefnH, OGRFieldType)
Set the type of this field. This should never be done to an OGRFieldDefn that is already part of an O...
Definition: ogrfielddefn.cpp:272
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_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1262
int OGR_G_IsRing(OGRGeometryH)
Test if the geometry is a ring.
Definition: ogrgeometry.cpp:1553
void OGR_G_DumpReadable(OGRGeometryH, FILE *, const char *)
Dump geometry in well known text format to indicated output file.
Definition: ogrgeometry.cpp:215
void OGR_G_DestroyGeometry(OGRGeometryH)
Destroy geometry object.
Definition: ogrgeometryfactory.cpp:475
int OGR_G_Disjoint(OGRGeometryH, OGRGeometryH)
Test for disjointness.
Definition: ogrgeometry.cpp:3030
OGRErr OGR_L_DeleteField(OGRLayerH, int iField)
Create a new field on a layer.
Definition: ogrlayer.cpp:620
void OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType)
Assign the base geometry type for the passed layer (the same as the feature definition).
Definition: ogrfeaturedefn.cpp:942
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:508
OGRErr OGR_L_DeleteFeature(OGRLayerH, long)
Delete feature from layer.
Definition: ogrlayer.cpp:1359
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:236
OGRErr OGR_L_CreateGeomField(OGRLayerH hLayer, OGRGeomFieldDefnH hFieldDefn, int bForce)
Create a new geometry field on a layer.
Definition: ogrlayer.cpp:777
OGRGeometryH OGR_G_Clone(OGRGeometryH)
Make a copy of this object.
Definition: ogrgeometry.cpp:1226
void OGR_GFld_SetType(OGRGeomFieldDefnH, OGRwkbGeometryType)
Set the geometry type of this field. This should never be done to an OGRGeomFieldDefn that is already...
Definition: ogrgeomfielddefn.cpp:301
int OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *, int *, int *, int *, int *)
Fetch field value as date and time.
Definition: ogrfeature.cpp:2121
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:828
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:204
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:212
OGRGeometryH OGR_G_GetGeometryRef(OGRGeometryH, int)
Fetch geometry from a geometry container.
Definition: ogr_api.cpp:697
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:307
int OGR_G_Intersects(OGRGeometryH, OGRGeometryH)
Do these features intersect?
Definition: ogrgeometry.cpp:385
int OGR_G_GetDimension(OGRGeometryH)
Get the dimension of this geometry.
Definition: ogrgeometry.cpp:648
int OGR_G_IsValid(OGRGeometryH)
Test if the geometry is valid.
Definition: ogrgeometry.cpp:1407
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string. This method operate exactly as OGR_F_SetStyleString() except that it assume...
Definition: ogrfeature.cpp:3900
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:875
double OGR_G_GetX(OGRGeometryH, int)
Fetch the x coordinate of a point from a geometry.
Definition: ogr_api.cpp:115
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition: ogrdatasource.cpp:515
int OGR_G_GetPointCount(OGRGeometryH)
Fetch number of points from a geometry.
Definition: ogr_api.cpp:49
void OGR_G_FlattenTo2D(OGRGeometryH)
Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0.
Definition: ogrgeometry.cpp:1801