#include <ogr_feature.h>
Public Member Functions | |
OGRFieldDefn (const char *, OGRFieldType) | |
OGRFieldDefn (OGRFieldDefn *) | |
void | SetName (const char *) |
const char * | GetNameRef () |
OGRFieldType | GetType () |
void | SetType (OGRFieldType eTypeIn) |
OGRJustification | GetJustify () |
void | SetJustify (OGRJustification eJustifyIn) |
int | GetWidth () |
void | SetWidth (int nWidthIn) |
int | GetPrecision () |
void | SetPrecision (int nPrecisionIn) |
void | Set (const char *, OGRFieldType, int=0, int=0, OGRJustification=OJUndefined) |
void | SetDefault (const OGRField *) |
Static Public Member Functions | |
static const char * | GetFieldTypeName (OGRFieldType) |
|
Constructor.
|
|
Constructor. Create by cloning an existing field definition.
|
|
Fetch human readable name for a field type. This static method is the same as the C function OGR_GetFieldTypeName().
|
|
Get the justification for this field. This method is the same as the C function OGR_Fld_GetJustify().
|
|
Fetch name of this field. This method is the same as the C function OGR_Fld_GetNameRef().
|
|
Get the formatting precision for this field. This should normally be zero for fields of types other than OFTReal. This method is the same as the C function OGR_Fld_GetPrecision().
|
|
Fetch type of this field. This method is the same as the C function OGR_Fld_GetType().
|
|
Get the formatting width for this field. This method is the same as the C function OGR_Fld_GetWidth().
|
|
Set defining parameters for a field in one call. This method is the same as the C function OGR_Fld_Set().
|
|
Set default field value. Currently use of OGRFieldDefn "defaults" is discouraged. This feature may be fleshed out in the future. |
|
Set the justification for this field. This method is the same as the C function OGR_Fld_SetJustify().
|
|
Reset the name of this field. This method is the same as the C function OGR_Fld_SetName().
|
|
Set the formatting precision for this field in characters. This should normally be zero for fields of types other than OFTReal. This method is the same as the C function OGR_Fld_SetPrecision().
|
|
Set the type of this field. This should never be done to an OGRFieldDefn that is already part of an OGRFeatureDefn. This method is the same as the C function OGR_Fld_SetType().
|
|
Set the formatting width for this field in characters. This method is the same as the C function OGR_Fld_SetWidth().
|