30 #ifndef OGR_GEOMEDIAGEOMETRY_H_INCLUDED
31 #define OGR_GEOMEDIAGEOMETRY_H_INCLUDED
int OGR_F_IsFieldSet(OGRFeatureH, int)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1417
@ OGRSTSymbolStep
Definition: ogr_core.h:868
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:755
virtual OGRLinearRing * getInteriorRing(int)
Fetch reference to indicated internal ring.
Definition: ogrpolygon.cpp:217
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:180
void setPoint(int, OGRPoint *)
Set the location of a vertex in line string.
Definition: ogrlinestring.cpp:526
#define OGRNullMarker
Definition: ogr_core.h:669
@ OGRSTLabelStretch
Definition: ogr_core.h:900
const char * GetStyleByName(const char *pszStyleName)
find a style in the current style table.
Definition: ogrfeaturestyle.cpp:386
virtual OGRBoolean IsEmpty() const =0
Returns TRUE (non-zero) if the object has no points.
OGRMultiPolygon * toMultiPolygon()
Definition: ogr_geometry.h:719
virtual OGRErr addRingDirectly(OGRCurve *)
Add a ring to a polygon.
Definition: ogrcurvepolygon.cpp:422
FieldValue & operator=(const FieldValue &oOther)
Definition: ogrfeature.cpp:7113
virtual OGRErr addGeometryDirectly(OGRGeometry *)
Add a geometry directly to the container.
Definition: ogrgeometrycollection.cpp:381
static OGRFeatureDefn * FromHandle(OGRFeatureDefnH hFeatureDefn)
Definition: ogr_feature.h:338
double getX(int i) const
Get X at vertex.
Definition: ogr_geometry.h:1160
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:4131
void FillUnsetWithDefault(int bNotNullableOnly, char **papszOptions)
Fill unset fields with default values that might be defined.
Definition: ogrfeature.cpp:6445
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:251
GBool SetFeatureStyleString(OGRFeature *, const char *pszStyleString=nullptr, GBool bNoMatching=FALSE)
Set a style in a feature.
Definition: ogrfeaturestyle.cpp:215
char ** CSLTokenizeString2(const char *pszString, const char *pszDelimiter, int nCSLTFlags)
Definition: cpl_string.cpp:836
Definition: ogr_geometry.h:1241
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1421
virtual int IsStyleIgnored() const
Determine whether the style can be omitted when fetching features.
Definition: ogr_feature.h:313
void setNumPoints(int nNewPointCount, int bZeroizeNewContent=TRUE)
Set number of points in geometry.
Definition: ogrlinestring.cpp:434
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:1607
@ OGRSTBrushSize
Definition: ogr_core.h:847
Definition: ogr_geometry.h:2307
unsigned char GByte
Definition: cpl_port.h:213
@ OGRSTLabelStrikeout
Definition: ogr_core.h:899
@ OFSTFloat32
Definition: ogr_core.h:630
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5371
OGRErr SetNode(const char *, const char *)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:920
OGRStyleMgrH OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT
OGRStyleMgr factory.
Definition: ogrfeaturestyle.cpp:157
virtual OGRErr SetFID(GIntBig nFIDIn)
Set the feature identifier.
Definition: ogrfeature.cpp:5436
@ OGRSTUInches
Definition: ogr_core.h:817
Definition: ogr_feature.h:565
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:923
std::vector< int > ComputeMapForSetFrom(const OGRFeatureDefn *poSrcFDefn, bool bForgiving=true) const
Compute the map from source to target field that can be passed to SetFrom().
Definition: ogrfeaturedefn.cpp:1540
OGRGeometry * StealGeometry() CPL_WARN_UNUSED_RESULT
Take away ownership of geometry.
Definition: ogrfeature.cpp:498
short GInt16
Definition: cpl_port.h:209
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:921
double GetAsDouble() const
Definition: ogrfeature.cpp:7314
int OGR_RawField_IsNull(const OGRField *)
Returns whether a raw field is null.
Definition: ogrfeature.cpp:6960
GIntBig GetAsInteger64() const
Definition: ogrfeature.cpp:7308
#define OGR_F_VAL_ALLOW_NULL_WHEN_DEFAULT
Definition: ogr_core.h:568
#define VALIDATE_POINTER0(ptr, func)
Definition: cpl_error.h:251
@ OGRSTLabelPerp
Definition: ogr_core.h:894
@ OGRSTUCM
Definition: ogr_core.h:816
@ OFSTInt16
Definition: ogr_core.h:628
Definition: ogr_feature.h:523
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:903
virtual OGRStyleTable * GetStyleTable() const
Definition: ogr_feature.h:740
virtual void SetGeomType(OGRwkbGeometryType)
Assign the base geometry type for this layer.
Definition: ogrfeaturedefn.cpp:1047
void SetJustify(OGRJustification eJustifyIn)
Set the justification for this field.
Definition: ogr_feature.h:124
int IsSame(const OGRFieldDefn *) const
Test if the field definition is identical to the other one.
Definition: ogrfielddefn.cpp:1116
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrlinestring.cpp:2725
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:3237
OGRErr SetGeometry(const OGRGeometry *)
Set feature geometry.
Definition: ogrfeature.cpp:437
void Release()
Drop a reference to this object, and destroy if no longer referenced.
Definition: ogrfeaturedefn.cpp:161
virtual int getNumPoints() const override
Fetch vertex count.
Definition: ogr_geometry.h:1158
virtual OGRwkbGeometryType getGeometryType() const =0
Fetch geometry type.
int CPLIsUTF8(const char *pabyData, int nLen)
Definition: cpl_recode.cpp:251
void SetNativeMediaType(const char *pszNativeMediaType)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:6887
virtual void AddFieldDefn(OGRFieldDefn *)
Add a new field definition.
Definition: ogrfeaturedefn.cpp:432
OGRErr SetGeometryDirectly(OGRGeometry *)
Set feature geometry.
Definition: ogrfeature.cpp:364
void OGR_F_SetNativeMediaType(OGRFeatureH, const char *)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:6916
OGRErr SetWellKnownGeogCS(const char *)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:1954
@ OFTBinary
Definition: ogr_core.h:604
@ OGRSTSymbolPriority
Definition: ogr_core.h:871
GIntBig OGR_F_GetFieldAsInteger64(OGRFeatureH, int)
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:2077
@ wkbPoint
Definition: ogr_core.h:321
GBool AddStyle(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:889
char ** CSLLoad(const char *pszFname)
Definition: cpl_string.cpp:397
@ OGRSTLabelBColor
Definition: ogr_core.h:889
void SetSubType(OGRFieldSubType eSubTypeIn)
Set the subtype of this field. This should never be done to an OGRFieldDefn that is already part of a...
Definition: ogrfielddefn.cpp:363
@ OFSTBoolean
Definition: ogr_core.h:626
#define CSLT_PRESERVEESCAPES
Definition: cpl_string.h:89
@ OGRSTLabelFColor
Definition: ogr_core.h:888
GBool AddPart(OGRStyleTool *)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:527
CPLSTRING_DLL CPLString & Printf(const char *pszFormat,...)
Definition: cplstring.cpp:67
void SetName(const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:157
int OGR_FD_IsSame(OGRFeatureDefnH hFDefn, OGRFeatureDefnH hOtherFDefn)
Test if the feature definition is identical to the other one.
Definition: ogrfeaturedefn.cpp:1510
void SetNull()
Definition: ogrfeature.cpp:7260
void SetIgnored(int bIgnoreIn)
Set whether this field should be omitted when fetching features.
Definition: ogr_feature.h:212
int OGR_SM_AddPart(OGRStyleMgrH hSM, OGRStyleToolH hST)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:566
Definition: ogr_featurestyle.h:84
int OGR_GT_IsSubClassOf(OGRwkbGeometryType eType, OGRwkbGeometryType eSuperType)
Returns if a type is a subclass of another one.
Definition: ogrgeometry.cpp:6288
void OGR_F_SetFieldNull(OGRFeatureH, int)
Clear a field, marking it as null.
Definition: ogrfeature.cpp:1698
int IsSame(const OGRGeomFieldDefn *) const
Test if the geometry field definition is identical to the other one.
Definition: ogrgeomfielddefn.cpp:536
int getNumGeometries() const
Fetch number of geometries in container.
Definition: ogrgeometrycollection.cpp:258
@ wkbMultiPolygon
Definition: ogr_core.h:329
#define CSLT_PRESERVEQUOTES
Definition: cpl_string.h:87
const FieldValue operator[](int iField) const
Return a field value.
Definition: ogrfeature.cpp:1719
String list class designed around our use of C "char**" string lists.
Definition: cpl_string.h:447
void * CPLCalloc(size_t, size_t)
Definition: cpl_conv.cpp:138
void Set(const char *, OGRFieldType, int=0, int=0, OGRJustification=OJUndefined)
Set defining parameters for a field in one call.
Definition: ogrfielddefn.cpp:1000
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:5698
void SetType(OGRFieldType eTypeIn)
Set the type of this field. This should never be done to an OGRFieldDefn that is already part of an O...
Definition: ogrfielddefn.cpp:277
void SetIgnored(int bIgnoreIn)
Set whether this field should be omitted when fetching features.
Definition: ogr_feature.h:142
static OGRFeatureH ToHandle(OGRFeature *poFeature)
Definition: ogr_feature.h:756
static OGRGeometry * FromHandle(OGRGeometryH hGeom)
Definition: ogr_geometry.h:516
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1244
virtual int GetGeomFieldIndex(const char *) const
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:915
enum ogr_style_tool_class_id OGRSTClassId
Definition: ogr_geometry.h:2091
enum ogr_style_tool_param_brush_id OGRSTBrushParam
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:628
#define OGR_F_VAL_WIDTH
Definition: ogr_core.h:559
int OGR_GT_IsNonLinear(OGRwkbGeometryType)
Return if a geometry type is a non-linear geometry type.
Definition: ogrgeometry.cpp:6542
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1672
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:127
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:651
#define CSLT_HONOURSTRINGS
Definition: cpl_string.h:83
const char * CSLFetchNameValueDef(CSLConstList papszStrList, const char *pszName, const char *pszDefault)
Definition: cpl_string.cpp:1646
Definition: ogr_spatialref.h:145
@ OGRSTLabelItalic
Definition: ogr_core.h:896
OGRGeometry * getGeometryRef(int)
Fetch geometry from container.
Definition: ogrgeometrycollection.cpp:283
OGRwkbGeometryType OGR_GT_GetLinear(OGRwkbGeometryType eType)
Returns the non-curve geometry type that can contain the passed geometry type.
Definition: ogrgeometry.cpp:6457
OGRErr SetACEA(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4233
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1100
const char * OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat)
Initialize style manager from the style string of a feature.
Definition: ogrfeaturestyle.cpp:282
int CPLsnprintf(char *str, size_t size, const char *fmt,...)
Definition: cpl_string.cpp:1337
@ OGRSTPenWidth
Definition: ogr_core.h:826
int GetIndex() const
Definition: ogrfeature.cpp:7277
const GIntBig * OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *)
Fetch field value as a list of 64 bit integers.
Definition: ogrfeature.cpp:2821
enum ogr_style_tool_param_label_id OGRSTLabelParam
const char * GetFieldAsString(int i) const
Fetch field value as a string.
Definition: ogrfeature.cpp:2297
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:3062
int GetFieldCount() const
Fetch number of fields on this feature. This will always be the same as the field count for the OGRFe...
Definition: ogr_feature.h:599
GIntBig CPLAtoGIntBig(const char *pszString)
Definition: cpl_conv.cpp:996
int OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *, int *, int *, int *, int *)
Fetch field value as date and time.
Definition: ogrfeature.cpp:3193
@ OFTDateTime
Definition: ogr_core.h:607
void OGR_RawField_SetNull(OGRField *)
Mark a raw field as null.
Definition: ogrfeature.cpp:7008
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1294
Definition: ogr_geometry.h:286
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:2650
Definition: ogr_geometry.h:2586
virtual const char * GetFIDColumn()
This method returns the name of the underlying database column being used as the FID column,...
Definition: ogrlayer.cpp:1596
int Validate(int nValidateFlags, int bEmitError) const
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:6560
virtual const char * GetName() const
Get name of this OGRFeatureDefn.
Definition: ogrfeaturedefn.cpp:248
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:1956
void SetDateTime(int nYear, int nMonth, int nDay, int nHour=0, int nMinute=0, float fSecond=0.f, int nTZFlag=0)
Definition: ogrfeature.cpp:7250
virtual const char * getGeometryName() const =0
Fetch WKT name for geometry type.
char * OGR_G_ExportToJson(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1376
int CSLCount(CSLConstList papszStrList)
Definition: cpl_string.cpp:147
@ OGRSTLabelTextString
Definition: ogr_core.h:886
const char * InitFromFeature(OGRFeature *)
Initialize style manager from the style string of a feature.
Definition: ogrfeaturestyle.cpp:252
OGRGeomFieldDefn * GetGeomFieldDefnRef(int iField)
Fetch definition for this geometry field.
Definition: ogr_feature.h:581
Definition: ogrsf_frmts.h:70
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:401
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, const int *)
Set one feature from another.
Definition: ogrfeature.cpp:5915
const std::vector< std::string > & GetAsStringList() const
Definition: ogrfeature.cpp:7364
Convenient string class based on std::string.
Definition: cpl_string.h:336
virtual OGRErr ReorderFieldDefns(int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:562
static OGRGeomFieldDefnH ToHandle(OGRGeomFieldDefn *poGeomFieldDefn)
Definition: ogr_feature.h:223
OGRFeatureH OGR_F_Clone(OGRFeatureH) CPL_WARN_UNUSED_RESULT
Duplicate feature.
Definition: ogrfeature.cpp:980
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:1194
enum ogr_style_tool_param_pen_id OGRSTPenParam
OGRErr OGR_FD_DeleteGeomFieldDefn(OGRFeatureDefnH hFDefn, int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:891
#define CPL_LSBPTR64(x)
Definition: cpl_port.h:828
Definition: ogr_geometry.h:809
void OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue)
Set Style Tool parameter value from a string.
Definition: ogrfeaturestyle.cpp:2452
int GetPrecision() const
Get the formatting precision for this field. This should normally be zero for fields of types other t...
Definition: ogr_feature.h:130
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:845
virtual OGRErr DeleteFieldDefn(int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:491
double getY(int i) const
Get Y at vertex.
Definition: ogr_geometry.h:1161
@ OGRSTLabelPlacement
Definition: ogr_core.h:890
void SetType(OGRwkbGeometryType eTypeIn)
Set the geometry type of this field. This should never be done to an OGRGeomFieldDefn that is already...
Definition: ogrgeomfielddefn.cpp:316
@ OGRSTCSymbol
Definition: ogr_core.h:802
const char * OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable)
Definition: ogrfeaturestyle.cpp:1335
void OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType)
Assign the base geometry type for the passed layer (the same as the feature definition).
Definition: ogrfeaturedefn.cpp:1086
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:5409
void SetNativeData(const char *pszNativeData)
Sets the native data for the feature.
Definition: ogrfeature.cpp:6831
@ OGRSTCLabel
Definition: ogr_core.h:803
void * CPLRealloc(void *, size_t)
Definition: cpl_conv.cpp:225
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string.
Definition: ogrfeature.cpp:6195
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:203
int IsIgnored() const
Return whether this field should be omitted when fetching features.
Definition: ogr_feature.h:211
void Clear()
Clear a style table.
Definition: ogrfeaturestyle.cpp:802
const int * OGR_F_GetFieldAsIntegerList(OGRFeatureH, int, int *)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:2735
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, const int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:4284
void * OGRFeatureH
Definition: ogr_api.h:301
#define CPL_FRMT_GIB
Definition: cpl_port.h:314
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1248
#define EQUAL(a, b)
Definition: cpl_port.h:559
enum ogr_style_tool_units_id OGRSTUnitId
int OGR_F_Validate(OGRFeatureH, int nValidateFlags, int bEmitError)
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:6680
void * OGRStyleTableH
Definition: ogr_api.h:303
#define wkbHasZ(x)
Definition: ogr_core.h:446
int GetGeomFieldIndex(const char *pszName) const
Fetch the geometry field index given geometry field name.
Definition: ogr_feature.h:585
OGRErr SetFieldsFrom(const OGRFeature *, const int *, int=TRUE)
Set fields from another feature.
Definition: ogrfeature.cpp:5959
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:113
int OGRBoolean
Definition: ogr_core.h:306
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition: ogrfeature.cpp:5774
Definition: ogrfeature.cpp:7030
void * OGRFeatureDefnH
Definition: ogr_api.h:299
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition: ogrfeaturestyle.cpp:2589
void OGR_RawField_SetUnset(OGRField *)
Mark a raw field as unset.
Definition: ogrfeature.cpp:6984
#define OGR_F_VAL_GEOM_TYPE
Definition: ogr_core.h:553
@ OGRSTCNone
Definition: ogr_core.h:799
void SetPrecision(int nPrecisionIn)
Set the formatting precision for this field in characters.
Definition: ogr_feature.h:131
virtual OGRFeatureDefn * GetLayerDefn()=0
Fetch the schema information for this layer.
virtual OGRFieldDefn * GetFieldDefn(int i)
Fetch field definition.
Definition: ogrfeaturedefn.cpp:329
@ OGRSTUPixel
Definition: ogr_core.h:813
@ OGRSTPenPriority
Definition: ogr_core.h:832
const std::vector< int > & GetAsIntegerList() const
Definition: ogrfeature.cpp:7337
int OGR_ST_GetRGBFromString(OGRStyleToolH hST, const char *pszColor, int *pnRed, int *pnGreen, int *pnBlue, int *pnAlpha)
Return the r,g,b,a components of a color encoded in #RRGGBB[AA] format.
Definition: ogrfeaturestyle.cpp:2637
Definition: ogr_feature.h:380
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:2190
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:139
CPLStringList & AddString(const char *pszNewString)
Definition: cplstringlist.cpp:353
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Definition: ogr_api.h:306
void OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly, char **papszOptions)
Fill unset fields with default values that might be defined.
Definition: ogrfeature.cpp:6524
virtual OGRBoolean Equal(const OGRFeature *poFeature) const
Test if two features are the same.
Definition: ogrfeature.cpp:5490
ConstFieldIterator begin() const
Definition: ogrfeature.cpp:7086
#define wkbFlatten(x)
Definition: ogr_core.h:440
@ OGRSTSymbolDx
Definition: ogr_core.h:866
const char * CSLGetField(CSLConstList, int)
Definition: cpl_string.cpp:173
int OGR_RawField_IsUnset(const OGRField *)
Returns whether a raw field is unset.
Definition: ogrfeature.cpp:6939
static OGRGeometry * forceTo(OGRGeometry *poGeom, OGRwkbGeometryType eTargetType, const char *const *papszOptions=nullptr)
Convert to another geometry type.
Definition: ogrgeometryfactory.cpp:4172
OGRErr SetFrom(const OGRFeature *, int=TRUE)
Set one feature from another.
Definition: ogrfeature.cpp:5733
#define CPLAssert(expr)
Definition: cpl_error.h:182
GIntBig CPLAtoGIntBigEx(const char *pszString, int bWarn, int *pbOverflow)
Definition: cpl_conv.cpp:1048
Definition: ogr_geometry.h:2743
const GIntBig * GetFieldAsInteger64List(int i, int *pnCount) const
Fetch field value as a list of 64 bit integers.
Definition: ogrfeature.cpp:2779
const char * OGR_F_GetNativeMediaType(OGRFeatureH)
Returns the native media type for the feature.
Definition: ogrfeature.cpp:6803
virtual OGRGeometry * clone() const CPL_WARN_UNUSED_RESULT=0
Make a copy of this object.
void SetField(int i, int nValue)
Set field to integer value.
Definition: ogrfeature.cpp:3415
void OGR_Fld_SetPrecision(OGRFieldDefnH, int)
Set the formatting precision for this field in characters.
Definition: ogrfielddefn.cpp:975
#define CPLES_SQL
Definition: cpl_string.h:173
const char * GetLastStyleName()
Definition: ogrfeaturestyle.cpp:1315
const char * GetDefault() const
Get default field value.
Definition: ogrfielddefn.cpp:518
int OGR_AreTypeSubTypeCompatible(OGRFieldType eType, OGRFieldSubType eSubType)
Return if type and subtype are compatible.
Definition: ogrfielddefn.cpp:762
void OGR_F_SetFieldDouble(OGRFeatureH, int, double)
Set field to double value.
Definition: ogrfeature.cpp:3816
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:1145
@ OGRSTLabelOColor
Definition: ogr_core.h:904
void OGR_Fld_SetDefault(OGRFieldDefnH hDefn, const char *)
Set default field value.
Definition: ogrfielddefn.cpp:500
OGRGeometryH OGR_F_StealGeometry(OGRFeatureH) CPL_WARN_UNUSED_RESULT
Take away ownership of geometry.
Definition: ogrfeature.cpp:556
void OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit, double dfGroundPaperScale)
Set Style Tool units.
Definition: ogrfeaturestyle.cpp:1710
bool CPLTestBool(const char *pszValue)
Definition: cpl_string.cpp:1526
Definition: ogr_core.h:679
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions) CPL_WARN_UNUSED_RESULT
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1409
OGRFeatureDefn * GetDefnRef()
Fetch feature definition.
Definition: ogr_feature.h:570
virtual OGRGeomFieldDefn * GetGeomFieldDefn(int i)
Fetch geometry field definition.
Definition: ogrfeaturedefn.cpp:680
OGRLinearRing * getExteriorRing()
Fetch reference to external polygon ring.
Definition: ogrpolygon.cpp:147
@ OGRSTSymbolAngle
Definition: ogr_core.h:863
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1076
const std::vector< double > & GetAsDoubleList() const
Definition: ogrfeature.cpp:7355
void OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList)
Set field to list of strings value.
Definition: ogrfeature.cpp:4710
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:1233
const char * OGR_F_GetNativeData(OGRFeatureH)
Returns the native data for the feature.
Definition: ogrfeature.cpp:6752
virtual const char * GetStyleString() const
Fetch style string for this feature.
Definition: ogrfeature.cpp:6114
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:948
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:871
int GetFieldIndex(const char *pszName) const
Fetch the field index given field name.
Definition: ogr_feature.h:605
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1297
char ** CSLConstList
Definition: cpl_port.h:1184
virtual int GetFieldCount() const
Fetch number of fields on this feature.
Definition: ogrfeaturedefn.cpp:285
@ OGRSTPenColor
Definition: ogr_core.h:825
OGRPoint * toPoint()
Definition: ogr_geometry.h:523
#define VALIDATE_POINTER1(ptr, func, rc)
Definition: cpl_error.h:260
@ OGRSTLabelDy
Definition: ogr_core.h:893
OGRStyleTableH OGR_F_GetStyleTable(OGRFeatureH)
Definition: ogrfeature.cpp:6392
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1409
char * GetFieldAsSerializedJSon(int i) const
Fetch field value as a serialized JSon object.
Definition: ogrfeature.cpp:3301
#define wkbSetZ(x)
Definition: ogr_core.h:451
#define OGRERR_FAILURE
Definition: ogr_core.h:298
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:464
@ OGRSTUMM
Definition: ogr_core.h:815
virtual OGRFeatureDefn * Clone() const
Create a copy of this feature definition.
Definition: ogrfeaturedefn.cpp:200
@ OFTString
Definition: ogr_core.h:600
int GetGeomFieldCount() const
Fetch number of geometry fields on this feature. This will always be the same as the geometry field c...
Definition: ogr_feature.h:579
void DumpReadable(FILE *, char **papszOptions=nullptr) const
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5278
OGRFeatureDefn(const char *pszName=nullptr)
Constructor.
Definition: ogrfeaturedefn.cpp:63
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1373
@ OFTIntegerList
Definition: ogr_core.h:597
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:817
OGRStyleTool * GetPart(int hPartId, const char *pszStyleString=nullptr)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:662
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:303
@ OGRSTCBrush
Definition: ogr_core.h:801
@ OGRSTLabelFontName
Definition: ogr_core.h:884
@ OGRSTLabelPriority
Definition: ogr_core.h:898
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1495
int OGR_STBL_SaveStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:1024
#define OGR_F_VAL_NULL
Definition: ogr_core.h:547
static OGRFieldDefn * FromHandle(OGRFieldDefnH hFieldDefn)
Definition: ogr_feature.h:158
int CSLPrint(CSLConstList papszStrList, FILE *fpOut)
Definition: cpl_string.cpp:461
GByte * GetFieldAsBinary(int i, int *pnCount) const
Fetch field value as binary data.
Definition: ogrfeature.cpp:3015
@ OGRSTLabelUnderline
Definition: ogr_core.h:897
void CPLDebug(const char *, const char *,...)
Definition: cpl_error.cpp:544
virtual int IsSame(const OGRFeatureDefn *poOtherFeatureDefn) const
Test if the feature definition is identical to the other one.
Definition: ogrfeaturedefn.cpp:1464
GBool AddStyle(const char *pszStyleName, const char *pszStyleString=nullptr)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:413
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:213
#define VSI_STRDUP_VERBOSE(pszStr)
Definition: cpl_vsi.h:290
Definition: ogr_feature.h:92
@ OGRSTLabelAnchor
Definition: ogr_core.h:891
virtual void SetStyleString(const char *)
Set feature style string.
Definition: ogrfeature.cpp:6166
@ OFTInteger
Definition: ogr_core.h:596
double GetFieldAsDouble(int i) const
Fetch field value as a double.
Definition: ogrfeature.cpp:2116
int IsNullable() const
Return whether this geometry field can receive null values.
Definition: ogr_feature.h:214
virtual void SetStyleTable(OGRStyleTable *poStyleTable)
Definition: ogrfeature.cpp:6256
#define OLMD_FID64
Definition: ogr_core.h:787
void * CPLMalloc(size_t)
Definition: cpl_conv.cpp:168
#define CPL_LSBPTR32(x)
Definition: cpl_port.h:824
virtual void SetStyleIgnored(int bIgnore)
Set whether the style can be omitted when fetching features.
Definition: ogr_feature.h:314
@ OGRSTLabelAngle
Definition: ogr_core.h:887
void addSubLineString(const OGRLineString *, int nStartVertex=0, int nEndVertex=-1)
Add a segment of another linestring to this one.
Definition: ogrlinestring.cpp:1416
char ** List()
Definition: cpl_string.h:527
int CSLFindString(CSLConstList papszList, const char *pszTarget)
Definition: cpl_string.cpp:670
@ OGRSTSymbolDy
Definition: ogr_core.h:867
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:939
OGRField * OGR_F_GetRawFieldRef(OGRFeatureH, int)
Fetch an handle to the internal field value given the index.
Definition: ogrfeature.cpp:1818
@ OGRSTBrushDx
Definition: ogr_core.h:848
OGRFieldDefn(const char *, OGRFieldType)
Constructor.
Definition: ogrfielddefn.cpp:59
CPLSTRING_DLL CPLString & toupper(void)
Definition: cplstring.cpp:331
@ wkbNone
Definition: ogr_core.h:349
void OGR_F_SetFieldRaw(OGRFeatureH, int, OGRField *)
Set field.
Definition: ogrfeature.cpp:5244
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:683
@ OFTInteger64List
Definition: ogr_core.h:609
static OGRFeature * CreateFeature(OGRFeatureDefn *)
Feature factory.
Definition: ogrfeature.cpp:246
void SetFieldNull(int iField)
Clear a field, marking it as null.
Definition: ogrfeature.cpp:1645
@ wkbPolygon
Definition: ogr_core.h:324
void OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int)
Set whether this field can receive null values.
Definition: ogrfielddefn.cpp:1216
OGRStyleMgr(OGRStyleTable *poDataSetStyleTable=nullptr)
Constructor.
Definition: ogrfeaturestyle.cpp:137
void UnsetField(int iField)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1444
#define OGRUnsetMarker
Definition: ogr_core.h:661
OGRLineString * toLineString()
Definition: ogr_geometry.h:565
void OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH)
Definition: ogrfeature.cpp:6405
OGRErr SetGeomFieldDirectly(int iField, OGRGeometry *)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:802
virtual void dumpReadable(FILE *, const char *=nullptr, char **papszOptions=nullptr) const
Dump geometry in well known text format to indicated output file.
Definition: ogrgeometry.cpp:173
virtual void getEnvelope(OGREnvelope *psEnvelope) const override
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
Definition: ogrgeometrycollection.cpp:984
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:2989
#define VSI_CALLOC_VERBOSE(nCount, nSize)
Definition: cpl_vsi.h:280
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, GByte *)
Set field to binary data.
Definition: ogrfeature.cpp:4795
OGRJustification
Definition: ogr_core.h:638
enum ogr_style_tool_param_symbol_id OGRSTSymbolParam
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition: ogrfeature.cpp:328
void OGR_Fld_Set(OGRFieldDefnH, const char *, OGRFieldType, int, int, OGRJustification)
Set defining parameters for a field in one call.
Definition: ogrfielddefn.cpp:1031
const char * CPLSPrintf(const char *fmt,...)
Definition: cpl_string.cpp:977
@ OFSTNone
Definition: ogr_core.h:624
const char * OGR_GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition: ogrfielddefn.cpp:743
@ OFTStringList
Definition: ogr_core.h:601
void SetDefault(const char *)
Set default field value.
Definition: ogrfielddefn.cpp:431
@ OGRSTBrushFColor
Definition: ogr_core.h:843
virtual void SetStyleStringDirectly(char *)
Set feature style string.
Definition: ogrfeature.cpp:6218
char ** CSLAddStringMayFail(char **papszStrList, const char *pszNewString)
Definition: cpl_string.cpp:92
int OGR_SM_AddStyle(OGRStyleMgrH hSM, const char *pszStyleName, const char *pszStyleString)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:442
void * OGRFieldDefnH
Definition: ogr_api.h:297
virtual OGRwkbGeometryType GetGeomType() const
Fetch the geometry base type.
Definition: ogrfeaturedefn.cpp:983
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:145
bool IsNull() const
Definition: ogrfeature.cpp:7297
@ OGRSTBrushDy
Definition: ogr_core.h:849
void OGR_SM_Destroy(OGRStyleMgrH hSM)
Destroy Style Manager.
Definition: ogrfeaturestyle.cpp:189
virtual int isClockwise() const
Returns TRUE if the ring has clockwise winding (or less than 2 points)
Definition: ogrlinearring.cpp:447
int CPLStrlenUTF8(const char *pszUTF8Str)
Definition: cpl_recode.cpp:363
void * OGRGeometryH
Definition: ogr_api.h:60
void CPLError(CPLErr eErrClass, CPLErrorNum err_no, const char *fmt,...)
Definition: cpl_error.cpp:232
Definition: ogr_feature.h:182
const std::vector< GIntBig > & GetAsInteger64List() const
Definition: ogrfeature.cpp:7346
void OGR_Fld_SetSubType(OGRFieldDefnH, OGRFieldSubType)
Set the subtype of this field. This should never be done to an OGRFieldDefn that is already part of a...
Definition: ogrfielddefn.cpp:393
static OGRFeature * FromHandle(OGRFeatureH hFeature)
Definition: ogr_feature.h:762
void VSIFree(void *)
Definition: cpl_vsisimple.cpp:823
int Dereference()
Decrements the reference count by one.
Definition: ogr_feature.h:307
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1159
#define CPLE_NotSupported
Definition: cpl_error.h:109
@ OGRSTSymbolId
Definition: ogr_core.h:862
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:337
char * CPLUnescapeString(const char *pszString, int *pnLength, int nScheme)
Definition: cpl_string.cpp:2243
const OGRField * GetRawValue() const
Definition: ogrfeature.cpp:7287
#define OGRERR_CORRUPT_DATA
Definition: ogr_core.h:297
virtual OGRBoolean IsEmpty() const override
Returns TRUE (non-zero) if the object has no points.
Definition: ogr_geometry.h:847
@ OGRSTBrushBColor
Definition: ogr_core.h:844
OGRStyleToolH OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId, const char *pszStyleString)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:711
void OGR_F_SetFieldInteger(OGRFeatureH, int, int)
Set field to integer value.
Definition: ogrfeature.cpp:3506
@ OFTTime
Definition: ogr_core.h:606
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH)
Fetch subtype of this field.
Definition: ogrfielddefn.cpp:337
OGRFeature * Clone() const CPL_WARN_UNUSED_RESULT
Duplicate feature.
Definition: ogrfeature.cpp:948
OGRFieldType GetType() const
Fetch type of this field.
Definition: ogr_feature.h:115
const char * OGR_STBL_Find(OGRStyleTableH hStyleTable, const char *pszName)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1132
Definition: ogr_featurestyle.h:117
void OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH)
Definition: ogrfeature.cpp:6419
int CSLSave(CSLConstList papszStrList, const char *pszFname)
Definition: cpl_string.cpp:412
virtual int GetFieldIndex(const char *) const
Find field by name.
Definition: ogrfeaturedefn.cpp:1217
char ** CSLDuplicate(CSLConstList papszStrList)
Definition: cpl_string.cpp:228
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:4928
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:220
double getZ(int i) const
Get Z at vertex.
Definition: ogrlinestring.cpp:380
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition: ogrfeature.cpp:6241
@ OGRSTUGround
Definition: ogr_core.h:812
void OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig)
Set field to 64 bit integer value.
Definition: ogrfeature.cpp:3663
bool IsFieldSetAndNotNull(int iField) const
Test if a field is set and not null.
Definition: ogrfeature.cpp:1583
@ OGRSTSymbolSize
Definition: ogr_core.h:865
@ OGRSTLabelHColor
Definition: ogr_core.h:903
int OGRErr
Definition: ogr_core.h:290
GBool InitStyleString(const char *pszStyleString=nullptr)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:306
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:738
Definition: ogrfeature.cpp:7047
const char * OGR_Fld_GetDefault(OGRFieldDefnH hDefn)
Get default field value.
Definition: ogrfielddefn.cpp:538
void Print(FILE *fpOut)
Print a style table to a FILE pointer.
Definition: ogrfeaturestyle.cpp:1152
@ OGRSTSymbolOffset
Definition: ogr_core.h:870
int IsFieldSet(int iField) const
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1366
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
long long GIntBig
Definition: cpl_port.h:246
@ OGRSTBrushId
Definition: ogr_core.h:845
OGRPolygon * toPolygon()
Definition: ogr_geometry.h:635
const OGRFieldDefn * GetFieldDefnRef(int iField) const
Fetch definition for this field.
Definition: ogr_feature.h:601
OGRGeometryCollection * toGeometryCollection()
Definition: ogr_geometry.h:677
int getNumInteriorRings() const
Fetch the number of internal rings.
Definition: ogrcurvepolygon.cpp:241
void clear()
Definition: ogrfeature.cpp:7265
#define VSI_MALLOC_VERBOSE(size)
Definition: cpl_vsi.h:265
OGRErr OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn, int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:611
void SetName(const char *pszName)
Change name of this OGRFeatureDefn.
Definition: ogrfeaturedefn.cpp:228
OGRwkbGeometryType
Definition: ogr_core.h:317
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:1125
int IsIgnored() const
Return whether this field should be omitted when fetching features.
Definition: ogr_feature.h:141
int GetFieldAsDateTime(int i, int *pnYear, int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, int *pnSecond, int *pnTZFlag) const
Fetch field value as date and time.
Definition: ogrfeature.cpp:3153
@ OGRSTPenCap
Definition: ogr_core.h:830
#define CPL_UNUSED
Definition: cpl_port.h:938
~OGRStyleMgr()
Destructor.
Definition: ogrfeaturestyle.cpp:173
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:6143
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition: ogrfeature.cpp:5464
@ OGRSTCPen
Definition: ogr_core.h:800
int GetAsInteger() const
Definition: ogrfeature.cpp:7302
OGRField * GetRawFieldRef(int i)
Fetch a pointer to the internal field value given the index.
Definition: ogr_feature.h:618
int Reference()
Increments the reference count by one.
Definition: ogr_feature.h:306
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:839
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition: ogrfeaturestyle.cpp:2539
GBool RemoveStyle(const char *pszName)
Remove a style in the table by its name.
Definition: ogrfeaturestyle.cpp:945
const char * OGRGeometryTypeToName(OGRwkbGeometryType eType)
Fetch a human readable name corresponding to an OGRwkbGeometryType value. The returned value should n...
Definition: ogrgeometry.cpp:2418
@ OFTDate
Definition: ogr_core.h:605
static OGRFeatureDefn * CreateFeatureDefn(const char *pszName=nullptr)
Definition: ogrfeaturedefn.cpp:1434
Definition: ogr_feature.h:353
ConstFieldIterator end() const
Definition: ogrfeature.cpp:7091
GBool ModifyStyle(const char *pszName, const char *pszStyleString)
Modify a style in the table by its name If the style does not exist, it will be added.
Definition: ogrfeaturestyle.cpp:973
OGRStyleTable * Clone()
Duplicate style table.
Definition: ogrfeaturestyle.cpp:1209
void OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int, float, int)
Set field to datetime.
Definition: ogrfeature.cpp:4969
bool GetDateTime(int *pnYear, int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, float *pfSecond, int *pnTZFlag) const
Definition: ogrfeature.cpp:7326
OGRStyleTableH OGR_STBL_Create(void) CPL_WARN_UNUSED_RESULT
OGRStyleTable factory.
Definition: ogrfeaturestyle.cpp:786
OGRwkbGeometryType GetType() const
Fetch geometry type of this field.
Definition: ogr_feature.h:205
OGRFeature(OGRFeatureDefn *)
Constructor.
Definition: ogrfeature.cpp:79
virtual int IsGeometryIgnored() const
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1277
@ OGRSTPenPerOffset
Definition: ogr_core.h:829
const double * OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:2904
void OGR_F_SetNativeData(OGRFeatureH, const char *)
Sets the native data for the feature.
Definition: ogrfeature.cpp:6859
const char * GetNativeMediaType() const
Returns the native media type for the feature.
Definition: ogr_feature.h:745
OGRFieldSubType
Definition: ogr_core.h:622
OGRGeometry * GetGeometryRef()
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:583
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2496
OGRErr SetGeomField(int iField, const OGRGeometry *)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:880
double getZ() const
Fetch Z coordinate.
Definition: ogr_geometry.h:856
void SetNullable(int bNullableIn)
Set whether this field can receive null values.
Definition: ogr_feature.h:145
virtual OGRErr addRing(OGRCurve *)
Add a ring to a polygon.
Definition: ogrcurvepolygon.cpp:365
@ OGRSTBrushPriority
Definition: ogr_core.h:850
@ OFTRealList
Definition: ogr_core.h:599
char ** GetFieldAsStringList(int i) const
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:2948
int OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int)
Test if a field is set and not null.
Definition: ogrfeature.cpp:1615
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1068
OGRSTClassId OGR_ST_GetType(OGRStyleToolH hST)
Determine type of Style Tool.
Definition: ogrfeaturestyle.cpp:1646
double getY() const
Fetch Y coordinate.
Definition: ogr_geometry.h:854
virtual void SetGeometryIgnored(int bIgnore)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1326
static const char * GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:624
static OGRGeomFieldDefn * FromHandle(OGRGeomFieldDefnH hGeomFieldDefn)
Definition: ogr_feature.h:229
int OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn)
Returns whether the default value is driver specific.
Definition: ogrfielddefn.cpp:604
@ wkbGeometryCollection
Definition: ogr_core.h:330
static OGRFeatureDefnH ToHandle(OGRFeatureDefn *poFeatureDefn)
Definition: ogr_feature.h:332
int IsNullable() const
Return whether this field can receive null values.
Definition: ogr_feature.h:144
OGRFieldType
Definition: ogr_core.h:594
virtual int GetGeomFieldCount() const
Fetch number of geometry fields on this feature.
Definition: ogrfeaturedefn.cpp:631
const char * CSLFetchNameValue(CSLConstList papszStrList, const char *pszName)
Definition: cpl_string.cpp:1674
CPLErr
Definition: cpl_error.h:52
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, const double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:4563
char ** CSLRemoveStrings(char **papszStrList, int nFirstLineToDelete, int nNumToRemove, char ***ppapszRetStrings)
Definition: cpl_string.cpp:588
@ OGRSTPenJoin
Definition: ogr_core.h:831
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:384
#define OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM
Definition: ogr_core.h:576
virtual void AddGeomFieldDefn(OGRGeomFieldDefn *, int bCopy=TRUE)
Add a new geometry field definition.
Definition: ogrfeaturedefn.cpp:781
GBool LoadStyleTable(const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1049
int GBool
Definition: cpl_port.h:221
void ResetStyleStringReading()
Definition: ogrfeaturestyle.cpp:1224
int OGR_Fld_IsNullable(OGRFieldDefnH hDefn)
Return whether this field can receive null values.
Definition: ogrfielddefn.cpp:1170
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1353
@ OGRSTSymbolColor
Definition: ogr_core.h:864
char ** CSLAddString(char **papszStrList, const char *pszNewString)
Definition: cpl_string.cpp:83
const OGRFieldDefn * GetDefn() const
Definition: ogrfeature.cpp:7282
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogrfeature.cpp:1344
int IsDefaultDriverSpecific() const
Returns whether the default value is driver specific.
Definition: ogrfielddefn.cpp:562
void SetWidth(int nWidthIn)
Set the formatting width for this field in characters.
Definition: ogr_feature.h:128
@ OFTInteger64
Definition: ogr_core.h:608
Definition: ogr_geometry.h:1312
const char * GetNextStyle()
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1261
bool CopySelfTo(OGRFeature *poNew) const
Copies the innards of this OGRFeature into the supplied object.
Definition: ogrfeature.cpp:1003
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:1011
GIntBig GetFieldAsInteger64(int i) const
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:1998
@ OGRSTUPoints
Definition: ogr_core.h:814
int GetFieldAsInteger(int i) const
Fetch field value as integer.
Definition: ogrfeature.cpp:1859
#define OGRERR_NONE
Definition: ogr_core.h:292
const char * GetAsString() const
Definition: ogrfeature.cpp:7320
char * CPLStrdup(const char *)
Definition: cpl_conv.cpp:293
int GetPartCount(const char *pszStyleString=nullptr)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:594
static void DestroyFeatureDefn(OGRFeatureDefn *)
Definition: ogrfeaturedefn.cpp:1447
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
Definition: ogr_feature.h:259
static const char * GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition: ogrfielddefn.cpp:706
int OGR_F_IsFieldNull(OGRFeatureH, int)
Test if a field is null.
Definition: ogrfeature.cpp:1552
void OGR_STBL_Destroy(OGRStyleTableH hSTBL)
Destroy Style Table.
Definition: ogrfeaturestyle.cpp:827
void OGR_F_SetFieldInteger64List(OGRFeatureH, int, int, const GIntBig *)
Set field to list of 64 bit integers value.
Definition: ogrfeature.cpp:4431
const int * GetFieldAsIntegerList(int i, int *pnCount) const
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:2694
@ OGRSTSymbolOColor
Definition: ogr_core.h:873
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1853
OGRMultiPoint * toMultiPoint()
Definition: ogr_geometry.h:691
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition: ogrfeaturestyle.cpp:2350
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:472
char * CPLBinaryToHex(int nBytes, const GByte *pabyData)
Definition: cpl_string.cpp:2469
@ OGRSTLabelDx
Definition: ogr_core.h:892
const char * Find(const char *pszStyleString)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1101
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition: ogrfeaturestyle.cpp:2402
@ wkbLineString
Definition: ogr_core.h:322
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:803
void * OGRStyleToolH
Definition: ogr_api.h:705
bool IsUnset() const
Definition: ogrfeature.cpp:7292
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1305
static void DestroyFeature(OGRFeature *)
Destroy feature.
Definition: ogrfeature.cpp:282
@ OGRSTPenId
Definition: ogr_core.h:828
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:666
Definition: ogr_geometry.h:1909
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:266
@ wkbMultiLineString
Definition: ogr_core.h:328
virtual void getEnvelope(OGREnvelope *psEnvelope) const =0
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
virtual OGRBoolean Equals(const OGRGeometry *) const =0
Returns TRUE if two geometries are equivalent.
#define CSLT_ALLOWEMPTYTOKENS
Definition: cpl_string.h:85
GBool SaveStyleTable(const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:998
int OGR_GET_MS(float fSec)
Definition: ogr_core.h:733
@ OFTReal
Definition: ogr_core.h:598
@ OGRSTSymbolPerp
Definition: ogr_core.h:869
virtual OGRErr DeleteGeomFieldDefn(int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:846
int GetReferenceCount() const
Fetch current reference count.
Definition: ogr_feature.h:308
OGRFieldSubType GetSubType() const
Fetch subtype of this field.
Definition: ogr_feature.h:119
@ OGRSTBrushAngle
Definition: ogr_core.h:846
GBool IsExist(const char *pszName)
Get the index of a style in the table by its name.
Definition: ogrfeaturestyle.cpp:1177
OGRFeatureDefnH OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:95
int OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:632
void * OGRStyleMgrH
Definition: ogr_api.h:703
@ OGRSTPenPattern
Definition: ogr_core.h:827
#define OGRNullFID
Definition: ogr_core.h:646
OGRMultiLineString * toMultiLineString()
Definition: ogr_geometry.h:705
#define CSLT_STRIPENDSPACES
Definition: cpl_string.h:93
const char * GetStyleName(const char *pszStyleString=nullptr)
Get the name of a style from the style table.
Definition: ogrfeaturestyle.cpp:359
const char * GetStyleName(const char *pszName)
Get style name by style string.
Definition: ogrfeaturestyle.cpp:847
#define CPLFree
Definition: cpl_conv.h:81
@ wkbUnknown
Definition: ogr_core.h:319
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1387
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:1190
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrpoint.cpp:221
#define CSLT_STRIPLEADSPACES
Definition: cpl_string.h:91
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrgeometrycollection.cpp:183
@ OGRSTLabelSize
Definition: ogr_core.h:885
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:179
@ OGRSTLabelBold
Definition: ogr_core.h:895
OGRJustification GetJustify() const
Get the justification for this field.
Definition: ogr_feature.h:123
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:533
const char * GetNativeData() const
Returns the native data for the feature.
Definition: ogr_feature.h:744
bool IsFieldNull(int iField) const
Test if a field is null.
Definition: ogrfeature.cpp:1520
OGRFieldDefnH OGR_Fld_Create(const char *, OGRFieldType) CPL_WARN_UNUSED_RESULT
Create a new field definition.
Definition: ogrfielddefn.cpp:113
GIntBig GetFID() const
Get feature identifier.
Definition: ogr_feature.h:711
const double * GetFieldAsDoubleList(int i, int *pnCount) const
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:2863
const char * GetStyleString(OGRFeature *=nullptr)
Get the style string from the style manager.
Definition: ogrfeaturestyle.cpp:470
@ wkbMultiPoint
Definition: ogr_core.h:327
virtual void SetStyleTableDirectly(OGRStyleTable *poStyleTable)
Definition: ogrfeature.cpp:6270
double getX() const
Fetch X coordinate.
Definition: ogr_geometry.h:852
double CPLStrtod(const char *, char **)
Definition: cpl_strtod.cpp:321
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1690
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:1090
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition: ogrfeaturestyle.cpp:2297
static OGRGeometryH ToHandle(OGRGeometry *poGeom)
Definition: ogr_geometry.h:510
OGRFeatureH OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT
Feature factory.
Definition: ogrfeature.cpp:129
#define STARTS_WITH_CI(a, b)
Definition: cpl_port.h:570
static OGRFieldDefnH ToHandle(OGRFieldDefn *poFieldDefn)
Definition: ogr_feature.h:152
#define CPLE_AppDefined
Definition: cpl_error.h:99
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:303
Generated for GDAL by
1.8.17.