mapscript.DBFInfo

class mapscript.DBFInfo

An object containing information about a DBF file

Attributes

nFields

int immutable Number of fields in the DBF

nRecords

int immutable Number of records in the DBF

thisown

The membership flag

Methods

__init__()[المصدر]
getFieldDecimals(iField: int) int[المصدر]

Get the field decimals of a DBF using the field index iField

getFieldName(iField: int) char[المصدر]

Get the field name of a DBF using the field index iField

getFieldType(iField: int) int[المصدر]

Get the field type of a DBF using the field index iField. Field types are one of FTString, FTInteger, FTDouble, FTInvalid

getFieldWidth(iField: int) int[المصدر]

Get the field width of a DBF using the field index iField