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:1296
virtual const char * GetName()
Get name of this OGRFeatureDefn.
Definition: ogrfeaturedefn.cpp:233
@ OGRSTSymbolStep
Definition: ogr_core.h:842
OGRGeometryH OGR_F_GetGeomFieldRef(OGRFeatureH hFeat, int iField)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:680
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:181
void setPoint(int, OGRPoint *)
Set the location of a vertex in line string.
Definition: ogrlinestring.cpp:506
#define OGRNullMarker
Definition: ogr_core.h:651
@ OGRSTLabelStretch
Definition: ogr_core.h:874
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.
virtual OGRwkbGeometryType getGeometryType() const CPL_OVERRIDE
Fetch geometry type.
Definition: ogrlinestring.cpp:2667
virtual OGRErr addRingDirectly(OGRCurve *)
Add a ring to a polygon.
Definition: ogrcurvepolygon.cpp:397
virtual OGRErr addGeometryDirectly(OGRGeometry *)
Add a geometry directly to the container.
Definition: ogrgeometrycollection.cpp:373
double getX(int i) const
Get X at vertex.
Definition: ogr_geometry.h:554
void OGR_F_SetFieldString(OGRFeatureH, int, const char *)
Set field to string value.
Definition: ogrfeature.cpp:3915
void FillUnsetWithDefault(int bNotNullableOnly, char **papszOptions)
Fill unset fields with default values that might be defined.
Definition: ogrfeature.cpp:6223
OGRFieldType OGR_Fld_GetType(OGRFieldDefnH)
Fetch type of this field.
Definition: ogrfielddefn.cpp:251
char ** CSLTokenizeString2(const char *pszString, const char *pszDelimiter, int nCSLTFlags)
Definition: cpl_string.cpp:834
Definition: ogr_geometry.h:623
void OGR_FD_SetStyleIgnored(OGRFeatureDefnH, int)
Set whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1348
void setNumPoints(int nNewPointCount, int bZeroizeNewContent=TRUE)
Set number of points in geometry.
Definition: ogrlinestring.cpp:422
double OGR_G_Area(OGRGeometryH)
Compute geometry area.
Definition: ogr_api.cpp:1679
@ OGRSTBrushSize
Definition: ogr_core.h:821
Definition: ogr_geometry.h:1435
unsigned char GByte
Definition: cpl_port.h:207
@ OGRSTLabelStrikeout
Definition: ogr_core.h:873
@ OFSTFloat32
Definition: ogr_core.h:620
void OGR_F_DumpReadable(OGRFeatureH, FILE *)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5149
OGRErr SetNode(const char *, const char *)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:826
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:5214
@ OGRSTUInches
Definition: ogr_core.h:791
OGRErr OGR_F_SetGeomField(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:848
OGRGeometry * StealGeometry() CPL_WARN_UNUSED_RESULT
Take away ownership of geometry.
Definition: ogrfeature.cpp:485
short GInt16
Definition: cpl_port.h:203
int GetFieldAsInteger(int i)
Fetch field value as integer.
Definition: ogrfeature.cpp:1661
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
int OGR_RawField_IsNull(const OGRField *)
Returns whether a raw field is null.
Definition: ogrfeature.cpp:6738
#define OGR_F_VAL_ALLOW_NULL_WHEN_DEFAULT
Definition: ogr_core.h:558
GByte * GetFieldAsBinary(int i, int *pnCount)
Fetch field value as binary data.
Definition: ogrfeature.cpp:2808
#define VALIDATE_POINTER0(ptr, func)
Definition: cpl_error.h:199
@ OGRSTLabelPerp
Definition: ogr_core.h:868
@ OGRSTUCM
Definition: ogr_core.h:790
@ OFSTInt16
Definition: ogr_core.h:618
void OGR_Fld_SetWidth(OGRFieldDefnH, int)
Set the formatting width for this field in characters.
Definition: ogrfielddefn.cpp:903
OGRErr SetFrom(OGRFeature *, int=TRUE)
Set one feature from another.
Definition: ogrfeature.cpp:5511
virtual void SetGeomType(OGRwkbGeometryType)
Assign the base geometry type for this layer.
Definition: ogrfeaturedefn.cpp:974
void SetJustify(OGRJustification eJustifyIn)
Set the justification for this field.
Definition: ogr_feature.h:94
int IsSame(const OGRFieldDefn *) const
Test if the field definition is identical to the other one.
Definition: ogrfielddefn.cpp:1116
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:3030
OGRErr SetGeometry(const OGRGeometry *)
Set feature geometry.
Definition: ogrfeature.cpp:424
void Release()
Drop a reference to this object, and destroy if no longer referenced.
Definition: ogrfeaturedefn.cpp:160
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:6665
virtual void AddFieldDefn(OGRFieldDefn *)
Add a new field definition.
Definition: ogrfeaturedefn.cpp:384
OGRErr SetGeometryDirectly(OGRGeometry *)
Set feature geometry.
Definition: ogrfeature.cpp:351
void OGR_F_SetNativeMediaType(OGRFeatureH, const char *)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:6694
OGRErr SetWellKnownGeogCS(const char *)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:1745
@ OFTBinary
Definition: ogr_core.h:594
@ OGRSTSymbolPriority
Definition: ogr_core.h:845
GIntBig OGR_F_GetFieldAsInteger64(OGRFeatureH, int)
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:1879
@ wkbPoint
Definition: ogr_core.h:316
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:863
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:616
virtual const char * GetStyleString()
Fetch style string for this feature.
Definition: ogrfeature.cpp:5907
#define CSLT_PRESERVEESCAPES
Definition: cpl_string.h:93
int GetGeomFieldIndex(const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogr_feature.h:314
@ OGRSTLabelFColor
Definition: ogr_core.h:862
GBool AddPart(OGRStyleTool *)
Add a part (style tool) to the current style.
Definition: ogrfeaturestyle.cpp:527
CPLString & Printf(const char *pszFormat,...)
Definition: cplstring.cpp:59
virtual int GetGeomFieldCount()
Fetch number of geometry fields on this feature.
Definition: ogrfeaturedefn.cpp:583
OGRErr OGR_F_SetFromWithMap(OGRFeatureH, OGRFeatureH, int, int *)
Set one feature from another.
Definition: ogrfeature.cpp:5711
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:1437
int CSLSave(char **papszStrList, const char *pszFname)
Definition: cpl_string.cpp:412
void SetIgnored(int bIgnoreIn)
Set whether this field should be omitted when fetching features.
Definition: ogr_feature.h:171
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:83
int OGR_GT_IsSubClassOf(OGRwkbGeometryType eType, OGRwkbGeometryType eSuperType)
Returns if a type is a subclass of another one.
Definition: ogrgeometry.cpp:6450
void OGR_F_SetFieldNull(OGRFeatureH, int)
Clear a field, marking it as null.
Definition: ogrfeature.cpp:1579
int getNumGeometries() const
Fetch number of geometries in container.
Definition: ogrgeometrycollection.cpp:250
@ wkbMultiPolygon
Definition: ogr_core.h:324
#define CSLT_PRESERVEQUOTES
Definition: cpl_string.h:91
String list class designed around our use of C "char**" string lists.
Definition: cpl_string.h:449
void * CPLCalloc(size_t, size_t)
Definition: cpl_conv.cpp:128
void Set(const char *, OGRFieldType, int=0, int=0, OGRJustification=OJUndefined)
Set defining parameters for a field in one call.
Definition: ogrfielddefn.cpp:1000
static OGRGeometry * forceTo(OGRGeometry *poGeom, OGRwkbGeometryType eTargetType, const char *const *papszOptions=NULL)
Convert to another geometry type.
Definition: ogrgeometryfactory.cpp:4095
int OGR_F_Equal(OGRFeatureH, OGRFeatureH)
Test if two features are the same.
Definition: ogrfeature.cpp:5476
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
virtual int GetFieldCount()
Fetch number of fields on this feature.
Definition: ogrfeaturedefn.cpp:270
void OGR_STBL_ResetStyleStringReading(OGRStyleTableH hStyleTable)
Reset the next style pointer to 0.
Definition: ogrfeaturestyle.cpp:1244
enum ogr_style_tool_class_id OGRSTClassId
Definition: ogr_geometry.h:1295
enum ogr_style_tool_param_brush_id OGRSTBrushParam
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH)
Fetch an handle to feature geometry.
Definition: ogrfeature.cpp:592
#define OGR_F_VAL_WIDTH
Definition: ogr_core.h:549
virtual OGRBoolean IsEmpty() const CPL_OVERRIDE
Returns TRUE (non-zero) if the object has no points.
Definition: ogr_geometry.h:357
int OGR_GT_IsNonLinear(OGRwkbGeometryType)
Return if a geometry type is a non-linear geometry type.
Definition: ogrgeometry.cpp:6704
OGRSTUnitId OGR_ST_GetUnit(OGRStyleToolH hST)
Get Style Tool units.
Definition: ogrfeaturestyle.cpp:1665
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:97
int OGR_FD_GetGeomFieldCount(OGRFeatureDefnH hFDefn)
Fetch number of geometry fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:603
#define CSLT_HONOURSTRINGS
Definition: cpl_string.h:87
virtual OGRwkbGeometryType getGeometryType() const CPL_OVERRIDE
Fetch geometry type.
Definition: ogrgeometrycollection.cpp:177
Definition: ogr_spatialref.h:132
@ OGRSTLabelItalic
Definition: ogr_core.h:870
OGRGeometry * getGeometryRef(int)
Fetch geometry from container.
Definition: ogrgeometrycollection.cpp:275
OGRwkbGeometryType OGR_GT_GetLinear(OGRwkbGeometryType eType)
Returns the non-curve geometry type that can contain the passed geometry type.
Definition: ogrgeometry.cpp:6619
OGRErr SetACEA(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:3961
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:1333
@ OGRSTPenWidth
Definition: ogr_core.h:800
const GIntBig * OGR_F_GetFieldAsInteger64List(OGRFeatureH, int, int *)
Fetch field value as a list of 64 bit integers.
Definition: ogrfeature.cpp:2614
enum ogr_style_tool_param_label_id OGRSTLabelParam
GByte * OGR_F_GetFieldAsBinary(OGRFeatureH, int, int *)
Fetch field value as binary.
Definition: ogrfeature.cpp:2855
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:326
int OGR_F_GetFieldAsDateTime(OGRFeatureH, int, int *, int *, int *, int *, int *, int *, int *)
Fetch field value as date and time.
Definition: ogrfeature.cpp:2986
virtual int IsGeometryIgnored()
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1204
@ OFTDateTime
Definition: ogr_core.h:597
void OGR_RawField_SetNull(OGRField *)
Mark a raw field as null.
Definition: ogrfeature.cpp:6786
OGRGeomFieldDefnH OGR_F_GetGeomFieldDefnRef(OGRFeatureH hFeat, int iField)
Fetch definition for this geometry field.
Definition: ogrfeature.cpp:1173
Definition: ogr_geometry.h:118
const char * OGR_F_GetFieldAsString(OGRFeatureH, int)
Fetch field value as a string.
Definition: ogrfeature.cpp:2443
Definition: ogr_geometry.h:1609
int OGR_F_GetFieldAsInteger(OGRFeatureH, int)
Fetch field value as integer.
Definition: ogrfeature.cpp:1758
virtual const char * getGeometryName() const =0
Fetch WKT name for geometry type.
char ** GetFieldAsStringList(int i)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:2741
char * OGR_G_ExportToJson(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1313
@ OGRSTLabelAdjHor
Definition: ogr_core.h:875
@ OGRSTLabelTextString
Definition: ogr_core.h:860
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:312
Definition: ogrsf_frmts.h:68
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:388
Convenient string class based on std::string.
Definition: cpl_string.h:338
virtual OGRErr ReorderFieldDefns(int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:514
OGRFeatureH OGR_F_Clone(OGRFeatureH) CPL_WARN_UNUSED_RESULT
Duplicate feature.
Definition: ogrfeature.cpp:952
int OGR_FD_GetReferenceCount(OGRFeatureDefnH)
Fetch current reference count.
Definition: ogrfeaturedefn.cpp:1121
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:818
#define CPL_LSBPTR64(x)
Definition: cpl_port.h:891
Definition: ogr_geometry.h:322
void OGR_ST_SetParamStr(OGRStyleToolH hST, int eParam, const char *pszValue)
Set Style Tool parameter value from a string.
Definition: ogrfeaturestyle.cpp:2439
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:100
OGRErr OGR_F_SetGeomFieldDirectly(OGRFeatureH hFeat, int iField, OGRGeometryH hGeom)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:770
virtual OGRErr DeleteFieldDefn(int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:443
double getY(int i) const
Get Y at vertex.
Definition: ogr_geometry.h:555
@ OGRSTLabelPlacement
Definition: ogr_core.h:864
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:776
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:1013
virtual OGRBoolean Equal(OGRFeature *poFeature)
Test if two features are the same.
Definition: ogrfeature.cpp:5268
GIntBig OGR_F_GetFID(OGRFeatureH)
Get feature identifier.
Definition: ogrfeature.cpp:5187
void SetNativeData(const char *pszNativeData)
Sets the native data for the feature.
Definition: ogrfeature.cpp:6609
@ OGRSTCLabel
Definition: ogr_core.h:777
void * CPLRealloc(void *, size_t)
Definition: cpl_conv.cpp:215
void OGR_F_SetStyleString(OGRFeatureH, const char *)
Set feature style string.
Definition: ogrfeature.cpp:5988
int IsIgnored() const
Return whether this field should be omitted when fetching features.
Definition: ogr_feature.h:170
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:2528
int CSLFindString(const char *const *papszList, const char *pszTarget)
Definition: cpl_string.cpp:668
OGRErr SetFieldsFrom(OGRFeature *, int *, int=TRUE)
Set fields from another feature.
Definition: ogrfeature.cpp:5755
void * OGRFeatureH
Definition: ogr_api.h:291
#define CPL_FRMT_GIB
Definition: cpl_port.h:326
int OGR_FD_GetFieldIndex(OGRFeatureDefnH, const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1175
OGRFeature * Clone() CPL_WARN_UNUSED_RESULT
Duplicate feature.
Definition: ogrfeature.cpp:873
#define EQUAL(a, b)
Definition: cpl_port.h:622
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:6458
void * OGRStyleTableH
Definition: ogr_api.h:293
#define wkbHasZ(x)
Definition: ogr_core.h:436
int OGRBoolean
Definition: ogr_core.h:301
OGRErr OGR_F_SetFrom(OGRFeatureH, OGRFeatureH, int)
Set one feature from another.
Definition: ogrfeature.cpp:5571
void * OGRFeatureDefnH
Definition: ogr_api.h:289
const char * OGR_ST_GetStyleString(OGRStyleToolH hST)
Get the style string for this Style Tool.
Definition: ogrfeaturestyle.cpp:2576
void OGR_RawField_SetUnset(OGRField *)
Mark a raw field as unset.
Definition: ogrfeature.cpp:6762
#define OGR_F_VAL_GEOM_TYPE
Definition: ogr_core.h:543
@ OGRSTCNone
Definition: ogr_core.h:773
void SetPrecision(int nPrecisionIn)
Set the formatting precision for this field in characters.
Definition: ogr_feature.h:101
virtual OGRFeatureDefn * GetLayerDefn()=0
Fetch the schema information for this layer.
virtual OGRFieldDefn * GetFieldDefn(int i)
Fetch field definition.
Definition: ogrfeaturedefn.cpp:317
@ OGRSTUPixel
Definition: ogr_core.h:787
@ OGRSTPenPriority
Definition: ogr_core.h:806
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:2624
double OGR_F_GetFieldAsDouble(OGRFeatureH, int)
Fetch field value as a double.
Definition: ogrfeature.cpp:1992
void OGR_Fld_Destroy(OGRFieldDefnH)
Destroy a field definition.
Definition: ogrfielddefn.cpp:139
CPLStringList & AddString(const char *pszNewString)
Definition: cplstringlist.cpp:319
char * GetFieldAsSerializedJSon(int i)
Fetch field value as a serialized JSon object.
Definition: ogrfeature.cpp:3094
const char * CSLGetField(char **, int)
Definition: cpl_string.cpp:173
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Definition: ogr_api.h:296
void OGR_F_FillUnsetWithDefault(OGRFeatureH hFeat, int bNotNullableOnly, char **papszOptions)
Fill unset fields with default values that might be defined.
Definition: ogrfeature.cpp:6302
const GIntBig * GetFieldAsInteger64List(int i, int *pnCount)
Fetch field value as a list of 64 bit integers.
Definition: ogrfeature.cpp:2572
int GetPartCount(const char *pszStyleString=NULL)
Get the number of parts in a style.
Definition: ogrfeaturestyle.cpp:594
#define wkbFlatten(x)
Definition: ogr_core.h:431
@ OGRSTSymbolDx
Definition: ogr_core.h:840
virtual OGRBoolean Equals(OGRGeometry *) const =0
Returns TRUE if two geometries are equivalent.
int OGR_RawField_IsUnset(const OGRField *)
Returns whether a raw field is unset.
Definition: ogrfeature.cpp:6717
char ** CSLDuplicate(char **papszStrList)
Definition: cpl_string.cpp:228
#define CPLAssert(expr)
Definition: cpl_error.h:182
GIntBig CPLAtoGIntBigEx(const char *pszString, int bWarn, int *pbOverflow)
Definition: cpl_conv.cpp:1005
Definition: ogr_geometry.h:1692
const char * OGR_F_GetNativeMediaType(OGRFeatureH)
Returns the native media type for the feature.
Definition: ogrfeature.cpp:6581
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:3208
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:204
void OGR_F_SetFieldIntegerList(OGRFeatureH, int, int, int *)
Set field to list of integers value.
Definition: ogrfeature.cpp:4067
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:3604
virtual int IsSame(OGRFeatureDefn *poOtherFeatureDefn)
Test if the feature definition is identical to the other one.
Definition: ogrfeaturedefn.cpp:1391
OGRFieldDefnH OGR_F_GetFieldDefnRef(OGRFeatureH, int)
Fetch definition for this field.
Definition: ogrfeature.cpp:1033
OGRFieldDefn * GetFieldDefnRef(int iField) const
Fetch definition for this field.
Definition: ogr_feature.h:328
@ OGRSTLabelOColor
Definition: ogr_core.h:878
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:543
void OGR_ST_SetUnit(OGRStyleToolH hST, OGRSTUnitId eUnit, double dfGroundPaperScale)
Set Style Tool units.
Definition: ogrfeaturestyle.cpp:1703
bool CPLTestBool(const char *pszValue)
Definition: cpl_string.cpp:1522
Definition: ogr_core.h:661
char * OGR_G_ExportToJsonEx(OGRGeometryH, char **papszOptions) CPL_WARN_UNUSED_RESULT
Convert a geometry into GeoJSON format.
Definition: ogrgeojsonwriter.cpp:1346
virtual OGRGeomFieldDefn * GetGeomFieldDefn(int i)
Fetch geometry field definition.
Definition: ogrfeaturedefn.cpp:632
OGRLinearRing * getExteriorRing()
Fetch reference to external polygon ring.
Definition: ogrpolygon.cpp:147
@ OGRSTSymbolAngle
Definition: ogr_core.h:837
int OGR_STBL_LoadStyleTable(OGRStyleTableH hStyleTable, const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1076
@ OGRSTSymbolFontName
Definition: ogr_core.h:846
int CSLCount(const char *const *papszStrList)
Definition: cpl_string.cpp:147
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:1127
const char * OGR_F_GetNativeData(OGRFeatureH)
Returns the native data for the feature.
Definition: ogrfeature.cpp:6530
int OGR_FD_GetGeomFieldIndex(OGRFeatureDefnH hFDefn, const char *pszName)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:875
int OGR_Fld_GetWidth(OGRFieldDefnH)
Get the formatting width for this field.
Definition: ogrfielddefn.cpp:871
OGRGeometry * GetGeometryRef()
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:569
const char * OGR_STBL_GetNextStyle(OGRStyleTableH hStyleTable)
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1297
#define OGR_GET_MS(floatingpoint_sec)
Definition: ogr_core.h:714
GIntBig GetFieldAsInteger64(int i)
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:1800
@ OGRSTPenColor
Definition: ogr_core.h:799
#define VALIDATE_POINTER1(ptr, func, rc)
Definition: cpl_error.h:208
@ OGRSTLabelDy
Definition: ogr_core.h:867
OGRStyleTableH OGR_F_GetStyleTable(OGRFeatureH)
Definition: ogrfeature.cpp:6170
void OGR_ST_Destroy(OGRStyleToolH hST)
Destroy Style Tool.
Definition: ogrfeaturestyle.cpp:1409
#define wkbSetZ(x)
Definition: ogr_core.h:441
#define OGRERR_FAILURE
Definition: ogr_core.h:293
void OGR_FD_AddFieldDefn(OGRFeatureDefnH, OGRFieldDefnH)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:416
@ OGRSTUMM
Definition: ogr_core.h:789
@ OFTString
Definition: ogr_core.h:590
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:310
const char * GetStyleString(OGRFeature *=NULL)
Get the style string from the style manager.
Definition: ogrfeaturestyle.cpp:470
OGRStyleToolH OGR_ST_Create(OGRSTClassId eClassId) CPL_WARN_UNUSED_RESULT
OGRStyleTool factory.
Definition: ogrfeaturestyle.cpp:1373
@ OFTIntegerList
Definition: ogr_core.h:587
static OGRFeatureDefn * CreateFeatureDefn(const char *pszName=NULL)
Definition: ogrfeaturedefn.cpp:1361
void OGR_FD_AddGeomFieldDefn(OGRFeatureDefnH hFDefn, OGRGeomFieldDefnH hGFldDefn)
Add a new field definition to the passed feature definition.
Definition: ogrfeaturedefn.cpp:744
int OGR_FD_GetFieldCount(OGRFeatureDefnH)
Fetch number of fields on the passed feature definition.
Definition: ogrfeaturedefn.cpp:288
@ OGRSTCBrush
Definition: ogr_core.h:775
const char * CSLFetchNameValue(const char *const *papszStrList, const char *pszName)
Definition: cpl_string.cpp:1670
@ OGRSTLabelFontName
Definition: ogr_core.h:858
@ OGRSTLabelPriority
Definition: ogr_core.h:872
void OGR_F_UnsetField(OGRFeatureH, int)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1375
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:537
void DumpReadable(FILE *, char **papszOptions=NULL)
Dump this feature in a human readable form.
Definition: ogrfeature.cpp:5056
@ OGRSTLabelUnderline
Definition: ogr_core.h:871
void CPLDebug(const char *, const char *,...)
Definition: cpl_error.cpp:492
OGRStyleTool * GetPart(int hPartId, const char *pszStyleString=NULL)
Fetch a part (style tool) from the current style.
Definition: ogrfeaturestyle.cpp:662
const char * OGR_Fld_GetNameRef(OGRFieldDefnH)
Fetch name of this field.
Definition: ogrfielddefn.cpp:213
#define VSI_STRDUP_VERBOSE(pszStr)
Definition: cpl_vsi.h:279
Definition: ogr_feature.h:62
@ OGRSTLabelAnchor
Definition: ogr_core.h:865
virtual void SetStyleString(const char *)
Set feature style string.
Definition: ogrfeature.cpp:5959
@ OFTInteger
Definition: ogr_core.h:586
int IsNullable() const
Return whether this geometry field can receive null values.
Definition: ogr_feature.h:173
virtual void SetStyleTable(OGRStyleTable *poStyleTable)
Definition: ogrfeature.cpp:6049
void * CPLMalloc(size_t)
Definition: cpl_conv.cpp:158
#define CPL_LSBPTR32(x)
Definition: cpl_port.h:887
virtual int getNumPoints() const CPL_OVERRIDE
Fetch vertex count.
Definition: ogr_geometry.h:552
@ OGRSTLabelAngle
Definition: ogr_core.h:861
void addSubLineString(const OGRLineString *, int nStartVertex=0, int nEndVertex=-1)
Add a segment of another linestring to this one.
Definition: ogrlinestring.cpp:1385
char ** List()
Definition: cpl_string.h:522
@ OGRSTSymbolDy
Definition: ogr_core.h:841
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:1620
@ OGRSTBrushDx
Definition: ogr_core.h:822
OGRFieldDefn(const char *, OGRFieldType)
Constructor.
Definition: ogrfielddefn.cpp:59
virtual int GetGeomFieldIndex(const char *)
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:842
@ wkbNone
Definition: ogr_core.h:344
void OGR_F_SetFieldRaw(OGRFeatureH, int, OGRField *)
Set field.
Definition: ogrfeature.cpp:5022
int IsFieldSet(int iField)
Test if a field has ever been assigned a value or not.
Definition: ogrfeature.cpp:1245
const char * OGR_GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:683
@ OFTInteger64List
Definition: ogr_core.h:599
OGRFeatureDefn * GetDefnRef()
Fetch feature definition.
Definition: ogr_feature.h:303
static OGRFeature * CreateFeature(OGRFeatureDefn *)
Feature factory.
Definition: ogrfeature.cpp:244
void SetFieldNull(int iField)
Clear a field, marking it as null.
Definition: ogrfeature.cpp:1526
@ wkbPolygon
Definition: ogr_core.h:319
void OGR_Fld_SetNullable(OGRFieldDefnH hDefn, int)
Set whether this field can receive null values.
Definition: ogrfielddefn.cpp:1216
void UnsetField(int iField)
Clear a field, marking it as unset.
Definition: ogrfeature.cpp:1324
#define OGRUnsetMarker
Definition: ogr_core.h:643
void OGR_F_SetStyleTableDirectly(OGRFeatureH, OGRStyleTableH)
Definition: ogrfeature.cpp:6183
OGRErr SetGeomFieldDirectly(int iField, OGRGeometry *)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:727
int Validate(int nValidateFlags, int bEmitError)
Validate that a feature meets constraints of its schema.
Definition: ogrfeature.cpp:6338
OGRFeatureDefn(const char *pszName=NULL)
Constructor.
Definition: ogrfeaturedefn.cpp:62
char ** OGR_F_GetFieldAsStringList(OGRFeatureH, int)
Fetch field value as a list of strings.
Definition: ogrfeature.cpp:2782
#define VSI_CALLOC_VERBOSE(nCount, nSize)
Definition: cpl_vsi.h:269
void OGR_F_SetFieldBinary(OGRFeatureH, int, int, GByte *)
Set field to binary data.
Definition: ogrfeature.cpp:4573
OGRJustification
Definition: ogr_core.h:628
enum ogr_style_tool_param_symbol_id OGRSTSymbolParam
OGRFeatureDefnH OGR_F_GetDefnRef(OGRFeatureH)
Fetch feature definition.
Definition: ogrfeature.cpp:315
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:975
@ OFSTNone
Definition: ogr_core.h:614
const char * OGR_GetFieldSubTypeName(OGRFieldSubType)
Fetch human readable name for a field subtype.
Definition: ogrfielddefn.cpp:743
const char * GetStyleName(const char *pszStyleString=NULL)
Get the name of a style from the style table.
Definition: ogrfeaturestyle.cpp:359
@ OFTStringList
Definition: ogr_core.h:591
void SetDefault(const char *)
Set default field value.
Definition: ogrfielddefn.cpp:431
virtual int GetFieldIndex(const char *)
Find field by name.
Definition: ogrfeaturedefn.cpp:1144
@ OGRSTBrushFColor
Definition: ogr_core.h:817
bool IsFieldSetAndNotNull(int iField)
Test if a field is set and not null.
Definition: ogrfeature.cpp:1464
virtual void SetStyleStringDirectly(char *)
Set feature style string.
Definition: ogrfeature.cpp:6011
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
const char * CSLFetchNameValueDef(const char *const *papszStrList, const char *pszName, const char *pszDefault)
Definition: cpl_string.cpp:1642
void * OGRFieldDefnH
Definition: ogr_api.h:287
void OGR_FD_Destroy(OGRFeatureDefnH)
Destroy a feature definition object and release all memory associated with it.
Definition: ogrfeaturedefn.cpp:144
@ OGRSTBrushDy
Definition: ogr_core.h:823
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:441
int CPLStrlenUTF8(const char *pszUTF8Str)
Definition: cpl_recode.cpp:363
void * OGRGeometryH
Definition: ogr_api.h:56
void CPLError(CPLErr eErrClass, CPLErrorNum err_no, const char *fmt,...)
Definition: cpl_error.cpp:215
Definition: ogr_feature.h:141
int CSLPrint(char **papszStrList, FILE *fpOut)
Definition: cpl_string.cpp:461
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
const char * GetNameRef()
Fetch name of this field.
Definition: ogr_feature.h:83
void VSIFree(void *)
Definition: cpl_vsisimple.cpp:817
int Dereference()
Decrements the reference count by one.
Definition: ogr_feature.h:252
int OGR_FD_Dereference(OGRFeatureDefnH)
Decrements the reference count by one.
Definition: ogrfeaturedefn.cpp:1086
#define CPLE_NotSupported
Definition: cpl_error.h:110
@ OGRSTSymbolId
Definition: ogr_core.h:836
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:2227
#define OGRERR_CORRUPT_DATA
Definition: ogr_core.h:292
@ OGRSTBrushBColor
Definition: ogr_core.h:818
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:3299
@ OFTTime
Definition: ogr_core.h:596
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH)
Fetch subtype of this field.
Definition: ogrfielddefn.cpp:337
OGRFieldType GetType() const
Fetch type of this field.
Definition: ogr_feature.h:85
const char * OGR_STBL_Find(OGRStyleTableH hStyleTable, const char *pszName)
Get a style string by name.
Definition: ogrfeaturestyle.cpp:1132
Definition: ogr_featurestyle.h:116
void OGR_F_SetStyleTable(OGRFeatureH, OGRStyleTableH)
Definition: ogrfeature.cpp:6197
void OGR_F_SetFieldDateTime(OGRFeatureH, int, int, int, int, int, int, int, int)
Set field to datetime.
Definition: ogrfeature.cpp:4706
void OGR_F_Destroy(OGRFeatureH)
Destroy feature.
Definition: ogrfeature.cpp:218
double getZ(int i) const
Get Z at vertex.
Definition: ogrlinestring.cpp:368
void OGR_F_SetStyleStringDirectly(OGRFeatureH, char *)
Set feature style string.
Definition: ogrfeature.cpp:6034
@ OGRSTUGround
Definition: ogr_core.h:786
void OGR_F_SetFieldInteger64(OGRFeatureH, int, GIntBig)
Set field to 64 bit integer value.
Definition: ogrfeature.cpp:3456
@ OGRSTSymbolSize
Definition: ogr_core.h:839
@ OGRSTLabelHColor
Definition: ogr_core.h:877
const char * GetNameRef()
Fetch name of this field.
Definition: ogr_feature.h:162
int GetFieldAsDateTime(int i, int *pnYear, int *pnMonth, int *pnDay, int *pnHour, int *pnMinute, int *pnSecond, int *pnTZFlag)
Fetch field value as date and time.
Definition: ogrfeature.cpp:2946
int OGRErr
Definition: ogr_core.h:285
OGRGeomFieldDefnH OGR_FD_GetGeomFieldDefn(OGRFeatureDefnH hFDefn, int i)
Fetch geometry field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:665
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:844
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
int GetFieldIndex(const char *pszName)
Fetch the field index given field name.
Definition: ogr_feature.h:330
long long GIntBig
Definition: cpl_port.h:250
@ OGRSTBrushId
Definition: ogr_core.h:819
int getNumInteriorRings() const
Fetch the number of internal rings.
Definition: ogrcurvepolygon.cpp:242
#define VSI_MALLOC_VERBOSE(size)
Definition: cpl_vsi.h:254
OGRErr OGR_FD_ReorderFieldDefns(OGRFeatureDefnH hDefn, int *panMap)
Reorder the field definitions in the array of the feature definition.
Definition: ogrfeaturedefn.cpp:563
GBool AddStyle(const char *pszStyleName, const char *pszStyleString=NULL)
Add a style to the current style table.
Definition: ogrfeaturestyle.cpp:413
bool IsFieldNull(int iField)
Test if a field is null.
Definition: ogrfeature.cpp:1400
OGRwkbGeometryType
Definition: ogr_core.h:312
int OGR_FD_Reference(OGRFeatureDefnH)
Increments the reference count by one.
Definition: ogrfeaturedefn.cpp:1052
@ OGRSTPenCap
Definition: ogr_core.h:804
#define CPL_UNUSED
Definition: cpl_port.h:1008
~OGRStyleMgr()
Destructor.
Definition: ogrfeaturestyle.cpp:173
const char * OGR_F_GetStyleString(OGRFeatureH)
Fetch style string for this feature.
Definition: ogrfeature.cpp:5936
OGRErr OGR_F_SetFID(OGRFeatureH, GIntBig)
Set the feature identifier.
Definition: ogrfeature.cpp:5242
GBool SetFeatureStyleString(OGRFeature *, const char *pszStyleString=NULL, GBool bNoMatching=FALSE)
Set a style in a feature.
Definition: ogrfeaturestyle.cpp:215
@ OGRSTCPen
Definition: ogr_core.h:774
OGRField * GetRawFieldRef(int i)
Fetch a pointer to the internal field value given the index.
Definition: ogr_feature.h:343
int Reference()
Increments the reference count by one.
Definition: ogr_feature.h:251
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:2526
GBool RemoveStyle(const char *pszName)
Remove a style in the table by its name.
Definition: ogrfeaturestyle.cpp:945
void OGR_F_SetFieldStringList(OGRFeatureH, int, char **)
Set field to list of strings value.
Definition: ogrfeature.cpp:4489
const char * OGRGeometryTypeToName(OGRwkbGeometryType eType)
Fetch a human readable name corresponding to an OGRwkbGeometryType value. The returned value should n...
Definition: ogrgeometry.cpp:2391
@ OFTDate
Definition: ogr_core.h:595
void OGR_F_SetFieldDoubleList(OGRFeatureH, int, int, double *)
Set field to list of doubles value.
Definition: ogrfeature.cpp:4345
Definition: ogr_feature.h:279
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:4747
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:164
OGRFeature(OGRFeatureDefn *)
Constructor.
Definition: ogrfeature.cpp:77
@ OGRSTPenPerOffset
Definition: ogr_core.h:803
const double * OGR_F_GetFieldAsDoubleList(OGRFeatureH, int, int *)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:2697
OGRStyleMgr(OGRStyleTable *poDataSetStyleTable=NULL)
Constructor.
Definition: ogrfeaturestyle.cpp:137
void OGR_F_SetNativeData(OGRFeatureH, const char *)
Sets the native data for the feature.
Definition: ogrfeature.cpp:6637
const char * GetNativeMediaType() const
Returns the native media type for the feature.
Definition: ogr_feature.h:468
OGRFieldSubType
Definition: ogr_core.h:612
void OGR_ST_SetParamNum(OGRStyleToolH hST, int eParam, int nValue)
Set Style Tool parameter value from an integer.
Definition: ogrfeaturestyle.cpp:2483
OGRErr SetGeomField(int iField, const OGRGeometry *)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:805
double getZ() const
Fetch Z coordinate.
Definition: ogr_geometry.h:366
GBool InitStyleString(const char *pszStyleString=NULL)
Initialize style manager from the style string.
Definition: ogrfeaturestyle.cpp:306
virtual OGRErr addRing(OGRCurve *)
Add a ring to a polygon.
Definition: ogrcurvepolygon.cpp:338
@ OGRSTBrushPriority
Definition: ogr_core.h:824
const int * GetFieldAsIntegerList(int i, int *pnCount)
Fetch field value as a list of integers.
Definition: ogrfeature.cpp:2487
@ OFTRealList
Definition: ogr_core.h:589
int OGR_F_IsFieldSetAndNotNull(OGRFeatureH, int)
Test if a field is set and not null.
Definition: ogrfeature.cpp:1496
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:1639
double getY() const
Fetch Y coordinate.
Definition: ogr_geometry.h:364
virtual void SetGeometryIgnored(int bIgnore)
Set whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1253
static const char * GetFieldTypeName(OGRFieldType)
Fetch human readable name for a field type.
Definition: ogrfielddefn.cpp:624
int OGR_Fld_IsDefaultDriverSpecific(OGRFieldDefnH hDefn)
Returns whether the default value is driver specific.
Definition: ogrfielddefn.cpp:604
@ wkbGeometryCollection
Definition: ogr_core.h:325
int IsNullable() const
Return whether this field can receive null values.
Definition: ogr_feature.h:114
OGRFieldType
Definition: ogr_core.h:584
CPLErr
Definition: cpl_error.h:52
const double * GetFieldAsDoubleList(int i, int *pnCount)
Fetch field value as a list of doubles.
Definition: ogrfeature.cpp:2656
char ** CSLRemoveStrings(char **papszStrList, int nFirstLineToDelete, int nNumToRemove, char ***ppapszRetStrings)
Definition: cpl_string.cpp:586
@ OGRSTPenJoin
Definition: ogr_core.h:805
virtual OGRwkbGeometryType GetGeomType()
Fetch the geometry base type.
Definition: ogrfeaturedefn.cpp:910
virtual OGRFeatureDefn * Clone()
Create a copy of this feature definition.
Definition: ogrfeaturedefn.cpp:201
OGRFieldDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH, int)
Fetch field definition of the passed feature definition.
Definition: ogrfeaturedefn.cpp:350
#define OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM
Definition: ogr_core.h:566
virtual void AddGeomFieldDefn(OGRGeomFieldDefn *, int bCopy=TRUE)
Add a new geometry field definition.
Definition: ogrfeaturedefn.cpp:708
double GetFieldAsDouble(int i)
Fetch field value as a double.
Definition: ogrfeature.cpp:1918
GBool LoadStyleTable(const char *pszFilename)
Load a style table from a file.
Definition: ogrfeaturestyle.cpp:1049
int GBool
Definition: cpl_port.h:215
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:1280
@ OGRSTSymbolColor
Definition: ogr_core.h:838
char ** CSLAddString(char **papszStrList, const char *pszNewString)
Definition: cpl_string.cpp:83
int OGR_F_GetGeomFieldIndex(OGRFeatureH hFeat, const char *pszName)
Fetch the geometry field index given geometry field name.
Definition: ogrfeature.cpp:1223
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:98
@ OFTInteger64
Definition: ogr_core.h:598
Definition: ogr_geometry.h:684
const char * GetNextStyle()
Get the next style string from the table.
Definition: ogrfeaturestyle.cpp:1261
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH)
Fetch the geometry base type of the passed feature definition.
Definition: ogrfeaturedefn.cpp:938
@ OGRSTUPoints
Definition: ogr_core.h:788
#define OGRERR_NONE
Definition: ogr_core.h:287
char * CPLStrdup(const char *)
Definition: cpl_conv.cpp:284
static void DestroyFeatureDefn(OGRFeatureDefn *)
Definition: ogrfeaturedefn.cpp:1374
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
Definition: ogr_feature.h:207
@ OGRSTLabelAdjVert
Definition: ogr_core.h:876
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:1432
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:4214
@ OGRSTSymbolOColor
Definition: ogr_core.h:847
int OGRGetNonLinearGeometriesEnabledFlag(void)
Get flag to enable/disable returning non-linear geometries in the C API.
Definition: ogr_api.cpp:1925
int OGR_ST_GetParamNum(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as an integer.
Definition: ogrfeaturestyle.cpp:2337
OGRErr OGR_F_SetGeometry(OGRFeatureH, OGRGeometryH)
Set feature geometry.
Definition: ogrfeature.cpp:459
char * CPLBinaryToHex(int nBytes, const GByte *pabyData)
Definition: cpl_string.cpp:2444
@ OGRSTLabelDx
Definition: ogr_core.h:866
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:2389
@ wkbLineString
Definition: ogr_core.h:317
OGRJustification OGR_Fld_GetJustify(OGRFieldDefnH)
Get the justification for this field.
Definition: ogrfielddefn.cpp:803
void * OGRStyleToolH
Definition: ogr_api.h:647
virtual void dumpReadable(FILE *, const char *=NULL, char **papszOptions=NULL) const
Dump geometry in well known text format to indicated output file.
Definition: ogrgeometry.cpp:172
int OGR_FD_IsGeometryIgnored(OGRFeatureDefnH)
Determine whether the geometry can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1232
static void DestroyFeature(OGRFeature *)
Destroy feature.
Definition: ogrfeature.cpp:280
@ OGRSTPenId
Definition: ogr_core.h:802
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:630
Definition: ogr_geometry.h:1162
virtual OGRwkbGeometryType getGeometryType() const CPL_OVERRIDE
Fetch geometry type.
Definition: ogrpoint.cpp:222
const char * OGR_FD_GetName(OGRFeatureDefnH)
Get name of the OGRFeatureDefn passed as an argument.
Definition: ogrfeaturedefn.cpp:251
@ wkbMultiLineString
Definition: ogr_core.h:323
virtual void getEnvelope(OGREnvelope *psEnvelope) const =0
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
#define CSLT_ALLOWEMPTYTOKENS
Definition: cpl_string.h:89
GBool SaveStyleTable(const char *pszFilename)
Save a style table to a file.
Definition: ogrfeaturestyle.cpp:998
const char * GetFieldAsString(int i)
Fetch field value as a string.
Definition: ogrfeature.cpp:2090
@ OFTReal
Definition: ogr_core.h:588
@ OGRSTSymbolPerp
Definition: ogr_core.h:843
virtual OGRErr DeleteGeomFieldDefn(int iGeomField)
Delete an existing geometry field definition.
Definition: ogrfeaturedefn.cpp:773
OGRFieldSubType GetSubType() const
Fetch subtype of this field.
Definition: ogr_feature.h:89
@ OGRSTBrushAngle
Definition: ogr_core.h:820
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:94
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:645
@ OGRSTPenPattern
Definition: ogr_core.h:801
#define OGRNullFID
Definition: ogr_core.h:636
#define CSLT_STRIPENDSPACES
Definition: cpl_string.h:97
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:314
int OGR_FD_IsStyleIgnored(OGRFeatureDefnH)
Determine whether the style can be omitted when fetching features.
Definition: ogrfeaturedefn.cpp:1314
int OGR_F_GetFieldIndex(OGRFeatureH, const char *)
Fetch the field index given field name.
Definition: ogrfeature.cpp:1084
#define CSLT_STRIPLEADSPACES
Definition: cpl_string.h:95
@ OGRSTLabelSize
Definition: ogr_core.h:859
void OGR_Fld_SetName(OGRFieldDefnH, const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:179
@ OGRSTLabelBold
Definition: ogr_core.h:869
OGRErr OGR_FD_DeleteFieldDefn(OGRFeatureDefnH hDefn, int iField)
Delete an existing field definition.
Definition: ogrfeaturedefn.cpp:485
const char * GetNativeData() const
Returns the native data for the feature.
Definition: ogr_feature.h:467
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:435
@ wkbMultiPoint
Definition: ogr_core.h:322
virtual void SetStyleTableDirectly(OGRStyleTable *poStyleTable)
Definition: ogrfeature.cpp:6063
double getX() const
Fetch X coordinate.
Definition: ogr_geometry.h:362
double CPLStrtod(const char *, char **)
Definition: cpl_strtod.cpp:321
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1625
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:992
const char * OGR_ST_GetParamStr(OGRStyleToolH hST, int eParam, int *bValueIsNull)
Get Style Tool parameter value as string.
Definition: ogrfeaturestyle.cpp:2284
OGRFeatureH OGR_F_Create(OGRFeatureDefnH) CPL_WARN_UNUSED_RESULT
Feature factory.
Definition: ogrfeature.cpp:127
#define STARTS_WITH_CI(a, b)
Definition: cpl_port.h:633
#define CPLE_AppDefined
Definition: cpl_error.h:100
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
int IsSame(OGRGeomFieldDefn *)
Test if the geometry field definition is identical to the other one.
Definition: ogrgeomfielddefn.cpp:536
Generated for GDAL by
1.8.17.