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