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:872
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:215
void OGR_FD_Release(OGRFeatureDefnH)
Drop a reference, and destroy if unreferenced.
Definition: ogrfeaturedefn.cpp:181
void setPoint(int, OGRPoint *)
Set the location of a vertex in line string.
Definition: ogrlinestring.cpp:536
#define OGRNullMarker
Definition: ogr_core.h:673
@ OGRSTLabelStretch
Definition: ogr_core.h:904
const char * GetStyleByName(const char *pszStyleName)
find a style in the current style table.
Definition: ogrfeaturestyle.cpp:385
virtual OGRBoolean IsEmpty() const =0
Returns TRUE (non-zero) if the object has no points.
OGRMultiPolygon * toMultiPolygon()
Definition: ogr_geometry.h:720
virtual OGRErr addRingDirectly(OGRCurve *)
Add a ring to a polygon.
Definition: ogrcurvepolygon.cpp:419
FieldValue & operator=(const FieldValue &oOther)
Definition: ogrfeature.cpp:7118
virtual OGRErr addGeometryDirectly(OGRGeometry *)
Add a geometry directly to the container.
Definition: ogrgeometrycollection.cpp:374
static OGRFeatureDefn * FromHandle(OGRFeatureDefnH hFeatureDefn)
Definition: ogr_feature.h:339
double getX(int i) const
Get X at vertex.
Definition: ogr_geometry.h:1161
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:6448
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:214
char ** CSLTokenizeString2(const char *pszString, const char *pszDelimiter, int nCSLTFlags)
Definition: cpl_string.cpp:836
Definition: ogr_geometry.h:1243
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1453
virtual int IsStyleIgnored() const
Determine whether the style can be omitted when fetching features.
Definition: ogr_feature.h:314
void setNumPoints(int nNewPointCount, int bZeroizeNewContent=TRUE)
Set number of points in geometry.
Definition: ogrlinestring.cpp:435
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:1607
@ OGRSTBrushSize
Definition: ogr_core.h:851
Definition: ogr_geometry.h:2313
unsigned char GByte
Definition: cpl_port.h:215
@ OGRSTLabelStrikeout
Definition: ogr_core.h:903
@ OFSTFloat32
Definition: ogr_core.h:630
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5375
OGRErr SetNode(const char *, const char *)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:1836
OGRStyleMgrH OGR_SM_Create(OGRStyleTableH hStyleTable) CPL_WARN_UNUSED_RESULT
OGRStyleMgr factory.
Definition: ogrfeaturestyle.cpp:156
virtual OGRErr SetFID(GIntBig nFIDIn)
Set the feature identifier.
Definition: ogrfeature.cpp:5440
@ OGRSTUInches
Definition: ogr_core.h:821
Definition: ogr_feature.h:566
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:1572
OGRGeometry * StealGeometry() CPL_WARN_UNUSED_RESULT
Take away ownership of geometry.
Definition: ogrfeature.cpp:498
short GInt16
Definition: cpl_port.h:211
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:920
double GetAsDouble() const
Definition: ogrfeature.cpp:7317
int OGR_RawField_IsNull(const OGRField *)
Returns whether a raw field is null.
Definition: ogrfeature.cpp:6963
GIntBig GetAsInteger64() const
Definition: ogrfeature.cpp:7311
#define OGR_F_VAL_ALLOW_NULL_WHEN_DEFAULT
Definition: ogr_core.h:568
#define VALIDATE_POINTER0(ptr, func)
Definition: cpl_error.h:267
@ OGRSTLabelPerp
Definition: ogr_core.h:898
@ OGRSTUCM
Definition: ogr_core.h:820
@ OFSTInt16
Definition: ogr_core.h:628
Definition: ogr_feature.h:525
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:908
virtual OGRStyleTable * GetStyleTable() const
Definition: ogr_feature.h:741
virtual void SetGeomType(OGRwkbGeometryType)
Assign the base geometry type for this layer.
Definition: ogrfeaturedefn.cpp:1048
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:1121
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrlinestring.cpp:2782
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:162
virtual int getNumPoints() const override
Fetch vertex count.
Definition: ogr_geometry.h:1159
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:6890
virtual void AddFieldDefn(OGRFieldDefn *)
Add a new field definition.
Definition: ogrfeaturedefn.cpp:433
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:6919
OGRErr SetWellKnownGeogCS(const char *)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:2953
@ OFTBinary
Definition: ogr_core.h:604
@ OGRSTSymbolPriority
Definition: ogr_core.h:875
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:888
char ** CSLLoad(const char *pszFname)
Definition: cpl_string.cpp:397
@ OGRSTLabelBColor
Definition: ogr_core.h:893
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:892
GBool AddPart(OGRStyleTool *)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:526
CPLSTRING_METHOD_DLL CPLString & Printf(const char *pszFormat,...)
Definition: cplstring.cpp:59
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:1542
void SetNull()
Definition: ogrfeature.cpp:7265
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:565
Definition: ogr_featurestyle.h:85
int OGR_GT_IsSubClassOf(OGRwkbGeometryType eType, OGRwkbGeometryType eSuperType)
Returns if a type is a subclass of another one.
Definition: ogrgeometry.cpp:6500
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:539
int getNumGeometries() const
Fetch number of geometries in container.
Definition: ogrgeometrycollection.cpp:251
@ 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:439
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:1005
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:5702
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:757
static OGRGeometry * FromHandle(OGRGeometryH hGeom)
Definition: ogr_geometry.h:517
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1243
virtual int GetGeomFieldIndex(const char *) const
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:916
enum ogr_style_tool_class_id OGRSTClassId
Definition: ogr_geometry.h:2097
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:6754
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1666
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:652
#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:157
@ OGRSTLabelItalic
Definition: ogr_core.h:900
OGRGeometry * getGeometryRef(int)
Fetch geometry from container.
Definition: ogrgeometrycollection.cpp:276
OGRwkbGeometryType OGR_GT_GetLinear(OGRwkbGeometryType eType)
Returns the non-curve geometry type that can contain the passed geometry type.
Definition: ogrgeometry.cpp:6669
OGRErr SetACEA(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5265
void OGR_Fld_SetIgnored(OGRFieldDefnH hDefn, int)
Set whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1105
const char * OGR_SM_InitFromFeature(OGRStyleMgrH hSM, OGRFeatureH hFeat)
Initialize style manager from the style string of a feature.
Definition: ogrfeaturestyle.cpp:281
int CPLsnprintf(char *str, size_t size, const char *fmt,...)
Definition: cpl_string.cpp:1337
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, const void *)
Set field to binary data.
Definition: ogrfeature.cpp:4799
@ OGRSTPenWidth
Definition: ogr_core.h:830
int GetIndex() const
Definition: ogrfeature.cpp:7280
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:600
GIntBig CPLAtoGIntBig(const char *pszString)
Definition: cpl_conv.cpp:998
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:7011
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1294
Definition: ogr_geometry.h:287
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:2650
Definition: ogr_geometry.h:2592
virtual const char * GetFIDColumn()
This method returns the name of the underlying database column being used as the FID column,...
Definition: ogrlayer.cpp:1597
int Validate(int nValidateFlags, int bEmitError) const
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:6563
virtual const char * GetName() const
Get name of this OGRFeatureDefn.
Definition: ogrfeaturedefn.cpp:249
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:7255
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:1412
int CSLCount(CSLConstList papszStrList)
Definition: cpl_string.cpp:147
@ OGRSTLabelTextString
Definition: ogr_core.h:890
const char * InitFromFeature(OGRFeature *)
Initialize style manager from the style string of a feature.
Definition: ogrfeaturestyle.cpp:251
OGRGeomFieldDefn * GetGeomFieldDefnRef(int iField)
Fetch definition for this geometry field.
Definition: ogr_feature.h:582
Definition: ogrsf_frmts.h:71
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:5918
const std::vector< std::string > & GetAsStringList() const
Definition: ogrfeature.cpp:7367
Convenient string class based on std::string.
Definition: cpl_string.h:330
virtual OGRErr ReorderFieldDefns(int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:563
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:1195
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:892
#define CPL_LSBPTR64(x)
Definition: cpl_port.h:838
Definition: ogr_geometry.h:811
void OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue)
Set Style Tool parameter value from a string.
Definition: ogrfeaturestyle.cpp:2446
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:492
double getY(int i) const
Get Y at vertex.
Definition: ogr_geometry.h:1162
@ OGRSTLabelPlacement
Definition: ogr_core.h:894
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:319
@ OGRSTCSymbol
Definition: ogr_core.h:806
const char * OGR_STBL_GetLastStyleName(OGRStyleTableH hStyleTable)
Definition: ogrfeaturestyle.cpp:1334
void OGR_FD_SetGeomType(OGRFeatureDefnH, OGRwkbGeometryType)
Assign the base geometry type for the passed layer (the same as the feature definition).
Definition: ogrfeaturedefn.cpp:1087
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:5413
void SetNativeData(const char *pszNativeData)
Sets the native data for the feature.
Definition: ogrfeature.cpp:6834
@ OGRSTCLabel
Definition: ogr_core.h:807
void * CPLRealloc(void *, size_t)
Definition: cpl_conv.cpp:225
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string.
Definition: ogrfeature.cpp:6198
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:801
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:302
#define CPL_FRMT_GIB
Definition: cpl_port.h:316
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1280
#define EQUAL(a, b)
Definition: cpl_port.h:569
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:6683
void * OGRStyleTableH
Definition: ogr_api.h:304
#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:586
OGRErr SetFieldsFrom(const OGRFeature *, const int *, int=TRUE)
Set fields from another feature.
Definition: ogrfeature.cpp:5962
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:5777
Definition: ogrfeature.cpp:7034
void * OGRFeatureDefnH
Definition: ogr_api.h:300
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition: ogrfeaturestyle.cpp:2583
void OGR_RawField_SetUnset(OGRField *)
Mark a raw field as unset.
Definition: ogrfeature.cpp:6987
#define OGR_F_VAL_GEOM_TYPE
Definition: ogr_core.h:553
@ OGRSTCNone
Definition: ogr_core.h:803
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:330
@ OGRSTUPixel
Definition: ogr_core.h:817
@ OGRSTPenPriority
Definition: ogr_core.h:836
const std::vector< int > & GetAsIntegerList() const
Definition: ogrfeature.cpp:7340
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:2631
Definition: ogr_feature.h:382
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:333
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Definition: ogr_api.h:307
void OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly, char **papszOptions)
Fill unset fields with default values that might be defined.
Definition: ogrfeature.cpp:6527
virtual OGRBoolean Equal(const OGRFeature *poFeature) const
Test if two features are the same.
Definition: ogrfeature.cpp:5494
ConstFieldIterator begin() const
Definition: ogrfeature.cpp:7091
#define wkbFlatten(x)
Definition: ogr_core.h:440
@ OGRSTSymbolDx
Definition: ogr_core.h:870
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:6942
static OGRGeometry * forceTo(OGRGeometry *poGeom, OGRwkbGeometryType eTargetType, const char *const *papszOptions=nullptr)
Convert to another geometry type.
Definition: ogrgeometryfactory.cpp:4250
OGRErr SetFrom(const OGRFeature *, int=TRUE)
Set one feature from another.
Definition: ogrfeature.cpp:5737
#define CPLAssert(expr)
Definition: cpl_error.h:186
GIntBig CPLAtoGIntBigEx(const char *pszString, int bWarn, int *pbOverflow)
Definition: cpl_conv.cpp:1050
Definition: ogr_geometry.h:2749
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:6806
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:980
#define CPLES_SQL
Definition: cpl_string.h:173
const char * GetLastStyleName()
Definition: ogrfeaturestyle.cpp:1314
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:765
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:908
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:1704
bool CPLTestBool(const char *pszValue)
Definition: cpl_string.cpp:1526
Definition: ogr_core.h:683
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions) CPL_WARN_UNUSED_RESULT
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1445
virtual OGRGeomFieldDefn * GetGeomFieldDefn(int i)
Fetch geometry field definition.
Definition: ogrfeaturedefn.cpp:681
@ OGRSTSymbolAngle
Definition: ogr_core.h:867
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1075
const std::vector< double > & GetAsDoubleList() const
Definition: ogrfeature.cpp:7358
void OGR_F_SetFieldStringList(OGRFeatureH, int, CSLConstList)
Set field to list of strings value.
Definition: ogrfeature.cpp:4714
@ OGRSTSymbolFontName
Definition: ogr_core.h:876
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:6755
virtual const char * GetStyleString() const
Fetch style string for this feature.
Definition: ogrfeature.cpp:6117
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:949
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:876
OGRGeometry * GetGeometryRef()
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:583
int GetFieldIndex(const char *pszName) const
Fetch the field index given field name.
Definition: ogr_feature.h:606
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1296
char ** CSLConstList
Definition: cpl_port.h:1194
virtual int GetFieldCount() const
Fetch number of fields on this feature.
Definition: ogrfeaturedefn.cpp:286
@ OGRSTPenColor
Definition: ogr_core.h:829
OGRPoint * toPoint()
Definition: ogr_geometry.h:524
#define VALIDATE_POINTER1(ptr, func, rc)
Definition: cpl_error.h:276
@ OGRSTLabelDy
Definition: ogr_core.h:897
OGRStyleTableH OGR_F_GetStyleTable(OGRFeatureH)
Definition: ogrfeature.cpp:6395
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1403
OGRLinearRing * getExteriorRing()
Fetch reference to external polygon ring.
Definition: ogrpolygon.cpp:145
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:465
@ OGRSTUMM
Definition: ogr_core.h:819
virtual OGRFeatureDefn * Clone() const
Create a copy of this feature definition.
Definition: ogrfeaturedefn.cpp:201
@ 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:580
void DumpReadable(FILE *, char **papszOptions=nullptr) const
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5282
OGRFeatureDefn(const char *pszName=nullptr)
Constructor.
Definition: ogrfeaturedefn.cpp:64
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1367
@ 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:818
OGRStyleTool * GetPart(int hPartId, const char *pszStyleString=nullptr)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:661
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:304
@ OGRSTCBrush
Definition: ogr_core.h:805
@ OGRSTLabelFontName
Definition: ogr_core.h:888
@ OGRSTLabelPriority
Definition: ogr_core.h:902
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:1023
#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:901
void CPLDebug(const char *, const char *,...)
Definition: cpl_error.cpp:602
virtual int IsSame(const OGRFeatureDefn *poOtherFeatureDefn) const
Test if the feature definition is identical to the other one.
Definition: ogrfeaturedefn.cpp:1496
GBool AddStyle(const char *pszStyleName, const char *pszStyleString=nullptr)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:412
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:213
#define VSI_STRDUP_VERBOSE(pszStr)
Definition: cpl_vsi.h:293
Definition: ogr_feature.h:93
@ OGRSTLabelAnchor
Definition: ogr_core.h:895
virtual void SetStyleString(const char *)
Set feature style string.
Definition: ogrfeature.cpp:6169
@ 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:6259
#define OLMD_FID64
Definition: ogr_core.h:791
void * CPLMalloc(size_t)
Definition: cpl_conv.cpp:168
#define CPL_LSBPTR32(x)
Definition: cpl_port.h:834
virtual void SetStyleIgnored(int bIgnore)
Set whether the style can be omitted when fetching features.
Definition: ogr_feature.h:315
@ OGRSTLabelAngle
Definition: ogr_core.h:891
void addSubLineString(const OGRLineString *, int nStartVertex=0, int nEndVertex=-1)
Add a segment of another linestring to this one.
Definition: ogrlinestring.cpp:1428
char ** List()
Definition: cpl_string.h:516
int CSLFindString(CSLConstList papszList, const char *pszTarget)
Definition: cpl_string.cpp:670
@ OGRSTSymbolDy
Definition: ogr_core.h:871
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:944
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:852
OGRFieldDefn(const char *, OGRFieldType)
Constructor.
Definition: ogrfielddefn.cpp:59
CPLSTRING_METHOD_DLL CPLString & toupper(void)
Definition: cplstring.cpp:316
@ wkbNone
Definition: ogr_core.h:349
void OGR_F_SetFieldRaw(OGRFeatureH, int, OGRField *)
Set field.
Definition: ogrfeature.cpp:5248
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:683
@ OFTInteger64List
Definition: ogr_core.h:609
OGRFeatureDefn * GetDefnRef()
Fetch feature definition.
Definition: ogr_feature.h:571
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:1221
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:665
OGRLineString * toLineString()
Definition: ogr_geometry.h:566
void OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH)
Definition: ogrfeature.cpp:6408
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:168
virtual void getEnvelope(OGREnvelope *psEnvelope) const override
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
Definition: ogrgeometrycollection.cpp:977
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:283
OGRJustification
Definition: ogr_core.h:643
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:1036
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:746
@ OFTStringList
Definition: ogr_core.h:601
void SetDefault(const char *)
Set default field value.
Definition: ogrfielddefn.cpp:431
@ OGRSTBrushFColor
Definition: ogr_core.h:847
virtual void SetStyleStringDirectly(char *)
Set feature style string.
Definition: ogrfeature.cpp:6221
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:441
void * OGRFieldDefnH
Definition: ogr_api.h:298
virtual OGRwkbGeometryType GetGeomType() const
Fetch the geometry base type.
Definition: ogrfeaturedefn.cpp:984
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:146
bool IsNull() const
Definition: ogrfeature.cpp:7300
@ OGRSTBrushDy
Definition: ogr_core.h:853
void OGR_SM_Destroy(OGRStyleMgrH hSM)
Destroy Style Manager.
Definition: ogrfeaturestyle.cpp:188
virtual int isClockwise() const
Returns TRUE if the ring has clockwise winding (or less than 2 points)
Definition: ogrlinearring.cpp:445
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:308
Definition: ogr_feature.h:183
const std::vector< GIntBig > & GetAsInteger64List() const
Definition: ogrfeature.cpp:7349
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:763
void VSIFree(void *)
Definition: cpl_vsisimple.cpp:827
int Dereference()
Decrements the reference count by one.
Definition: ogr_feature.h:308
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1160
#define CPLE_NotSupported
Definition: cpl_error.h:109
@ OGRSTSymbolId
Definition: ogr_core.h:866
int OGR_SM_InitStyleString(OGRStyleMgrH hSM, const char *pszStyleString)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:336
char * CPLUnescapeString(const char *pszString, int *pnLength, int nScheme)
Definition: cpl_string.cpp:2248
const OGRField * GetRawValue() const
Definition: ogrfeature.cpp:7290
#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:848
@ OGRSTBrushBColor
Definition: ogr_core.h:848
OGRStyleToolH OGR_SM_GetPart(OGRStyleMgrH hSM, int nPartId, const char *pszStyleString)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:710
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:1131
Definition: ogr_featurestyle.h:120
void OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH)
Definition: ogrfeature.cpp:6422
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:1218
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:4932
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:220
double getZ(int i) const
Get Z at vertex.
Definition: ogrlinestring.cpp:381
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition: ogrfeature.cpp:6244
@ OGRSTUGround
Definition: ogr_core.h:816
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:869
@ OGRSTLabelHColor
Definition: ogr_core.h:907
int OGRErr
Definition: ogr_core.h:290
GBool InitStyleString(const char *pszStyleString=nullptr)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:305
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:739
Definition: ogrfeature.cpp:7053
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:1151
@ OGRSTSymbolOffset
Definition: ogr_core.h:874
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:248
@ OGRSTBrushId
Definition: ogr_core.h:849
OGRPolygon * toPolygon()
Definition: ogr_geometry.h:636
const OGRFieldDefn * GetFieldDefnRef(int iField) const
Fetch definition for this field.
Definition: ogr_feature.h:602
OGRGeometryCollection * toGeometryCollection()
Definition: ogr_geometry.h:678
int getNumInteriorRings() const
Fetch the number of internal rings.
Definition: ogrcurvepolygon.cpp:238
void clear()
Definition: ogrfeature.cpp:7270
#define VSI_MALLOC_VERBOSE(size)
Definition: cpl_vsi.h:268
OGRErr OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn, int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:612
void SetName(const char *pszName)
Change name of this OGRFeatureDefn.
Definition: ogrfeaturedefn.cpp:229
OGRwkbGeometryType
Definition: ogr_core.h:318
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:1126
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:834
#define CPL_UNUSED
Definition: cpl_port.h:948
~OGRStyleMgr()
Destructor.
Definition: ogrfeaturestyle.cpp:172
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:6146
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition: ogrfeature.cpp:5468
@ OGRSTCPen
Definition: ogr_core.h:804
int GetAsInteger() const
Definition: ogrfeature.cpp:7305
OGRField * GetRawFieldRef(int i)
Fetch a pointer to the internal field value given the index.
Definition: ogr_feature.h:619
int Reference()
Increments the reference count by one.
Definition: ogr_feature.h:307
void OGR_Fld_SetJustify(OGRFieldDefnH, OGRJustification)
Set the justification for this field.
Definition: ogrfielddefn.cpp:844
void OGR_ST_SetParamDbl(OGRStyleToolH hST, int eParam, double dfValue)
Set Style Tool parameter value from a double.
Definition: ogrfeaturestyle.cpp:2533
GBool RemoveStyle(const char *pszName)
Remove a style in the table by its name.
Definition: ogrfeaturestyle.cpp:944
const char * OGRGeometryTypeToName(OGRwkbGeometryType eType)
Fetch a human readable name corresponding to an OGRwkbGeometryType value. The returned value should n...
Definition: ogrgeometry.cpp:2422
@ OFTDate
Definition: ogr_core.h:605
static OGRFeatureDefn * CreateFeatureDefn(const char *pszName=nullptr)
Definition: ogrfeaturedefn.cpp:1466
Definition: ogr_feature.h:355
ConstFieldIterator end() const
Definition: ogrfeature.cpp:7096
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:972
OGRStyleTable * Clone()
Duplicate style table.
Definition: ogrfeaturestyle.cpp:1208
void OGR_F_SetFieldDateTimeEx(OGRFeatureH, int, int, int, int, int, int, float, int)
Set field to datetime.
Definition: ogrfeature.cpp:4973
bool GetDateTime(int *pnYear, int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, float *pfSecond, int *pnTZFlag) const
Definition: ogrfeature.cpp:7329
OGRStyleTableH OGR_STBL_Create(void) CPL_WARN_UNUSED_RESULT
OGRStyleTable factory.
Definition: ogrfeaturestyle.cpp:785
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:1309
@ OGRSTPenPerOffset
Definition: ogr_core.h:833
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:6862
const char * GetNativeMediaType() const
Returns the native media type for the feature.
Definition: ogr_feature.h:746
OGRFieldSubType
Definition: ogr_core.h:623
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2490
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:857
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:362
@ OGRSTBrushPriority
Definition: ogr_core.h:854
@ 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
@ OFSTJSON
Definition: ogr_core.h:634
int OGR_Fld_IsIgnored(OGRFieldDefnH hDefn)
Return whether this field should be omitted when fetching features.
Definition: ogrfielddefn.cpp:1073
OGRSTClassId OGR_ST_GetType(OGRStyleToolH hST)
Determine type of Style Tool.
Definition: ogrfeaturestyle.cpp:1640
double getY() const
Fetch Y coordinate.
Definition: ogr_geometry.h:855
virtual void SetGeometryIgnored(int bIgnore)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1358
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:333
int IsNullable() const
Return whether this field can receive null values.
Definition: ogr_feature.h:144
OGRFieldType
Definition: ogr_core.h:595
virtual int GetGeomFieldCount() const
Fetch number of geometry fields on this feature.
Definition: ogrfeaturedefn.cpp:632
const char * CSLFetchNameValue(CSLConstList papszStrList, const char *pszName)
Definition: cpl_string.cpp:1674
CPLErr
Definition: cpl_error.h:53
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:835
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:385
#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:782
GBool LoadStyleTable(const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1048
int GBool
Definition: cpl_port.h:223
void ResetStyleStringReading()
Definition: ogrfeaturestyle.cpp:1223
int OGR_Fld_IsNullable(OGRFieldDefnH hDefn)
Return whether this field can receive null values.
Definition: ogrfielddefn.cpp:1175
void OGR_FD_SetGeometryIgnored(OGRFeatureDefnH, int)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1385
@ OGRSTSymbolColor
Definition: ogr_core.h:868
char ** CSLAddString(char **papszStrList, const char *pszNewString)
Definition: cpl_string.cpp:83
const OGRFieldDefn * GetDefn() const
Definition: ogrfeature.cpp:7285
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:1315
const char * GetNextStyle()
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1260
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:1012
GIntBig GetFieldAsInteger64(int i) const
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:1998
@ OGRSTUPoints
Definition: ogr_core.h:818
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:7323
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:593
static void DestroyFeatureDefn(OGRFeatureDefn *)
Definition: ogrfeaturedefn.cpp:1479
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
Definition: ogr_feature.h:260
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:826
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:877
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1851
OGRMultiPoint * toMultiPoint()
Definition: ogr_geometry.h:692
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition: ogrfeaturestyle.cpp:2344
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:472
char * CPLBinaryToHex(int nBytes, const GByte *pabyData)
Definition: cpl_string.cpp:2475
@ OGRSTLabelDx
Definition: ogr_core.h:896
const char * Find(const char *pszStyleString)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1100
double OGR_ST_GetParamDbl(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as a double.
Definition: ogrfeaturestyle.cpp:2396
@ wkbLineString
Definition: ogr_core.h:322
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:808
void * OGRStyleToolH
Definition: ogr_api.h:706
bool IsUnset() const
Definition: ogrfeature.cpp:7295
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1337
static void DestroyFeature(OGRFeature *)
Destroy feature.
Definition: ogrfeature.cpp:282
@ OGRSTPenId
Definition: ogr_core.h:832
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:666
Definition: ogr_geometry.h:1914
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:267
@ 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.
int GetFieldIndexCaseSensitive(const char *) const
Find field by name, in a case sensitive way.
Definition: ogrfeaturedefn.cpp:1246
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:997
int OGR_GET_MS(float fSec)
Definition: ogr_core.h:737
@ OFTReal
Definition: ogr_core.h:598
@ OGRSTSymbolPerp
Definition: ogr_core.h:873
virtual OGRErr DeleteGeomFieldDefn(int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:847
int GetReferenceCount() const
Fetch current reference count.
Definition: ogr_feature.h:309
OGRFieldSubType GetSubType() const
Fetch subtype of this field.
Definition: ogr_feature.h:119
@ OGRSTBrushAngle
Definition: ogr_core.h:850
GBool IsExist(const char *pszName)
Get the index of a style in the table by its name.
Definition: ogrfeaturestyle.cpp:1176
OGRFeatureDefnH OGR_FD_Create(const char *) CPL_WARN_UNUSED_RESULT
Create a new feature definition object to hold the field definitions.
Definition: ogrfeaturedefn.cpp:96
int OGR_SM_GetPartCount(OGRStyleMgrH hSM, const char *pszStyleString)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:631
void * OGRStyleMgrH
Definition: ogr_api.h:704
@ OGRSTPenPattern
Definition: ogr_core.h:831
#define OGRNullFID
Definition: ogr_core.h:650
OGRMultiLineString * toMultiLineString()
Definition: ogr_geometry.h:706
#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:358
const char * GetStyleName(const char *pszName)
Get style name by style string.
Definition: ogrfeaturestyle.cpp:846
#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:1419
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:214
#define CSLT_STRIPLEADSPACES
Definition: cpl_string.h:91
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrgeometrycollection.cpp:176
@ OGRSTLabelSize
Definition: ogr_core.h:889
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:179
@ OGRSTLabelBold
Definition: ogr_core.h:899
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Definition: cpl_port.h:997
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:534
const char * GetNativeData() const
Returns the native data for the feature.
Definition: ogr_feature.h:745
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:712
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:469
@ wkbMultiPoint
Definition: ogr_core.h:327
virtual void SetStyleTableDirectly(OGRStyleTable *poStyleTable)
Definition: ogrfeature.cpp:6273
double getX() const
Fetch X coordinate.
Definition: ogr_geometry.h:853
double CPLStrtod(const char *, char **)
Definition: cpl_strtod.cpp:321
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1692
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:2291
static OGRGeometryH ToHandle(OGRGeometry *poGeom)
Definition: ogr_geometry.h:511
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:580
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.20.