Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BadHeaderLength error = errors.New("Bad dbf header length")
Functions ¶
This section is empty.
Types ¶
type Dbf ¶
type Dbf struct {
Version byte
Year int
Month int
Day int
NumRecords uint32
NumHeaderBytes uint16
NumRecordBytes uint16
Incomplete byte
Encrypted byte
Mdx byte
Language byte
DriverName string
Fields []DbfField
// contains filtered or unexported fields
}
DBase database file format, just enough to read Census shapefile bundles. http://www.dbase.com/KnowledgeBase/int/db7_file_fmt.htm https://www.clicketyclick.dk/databases/xbase/format/dbf.html
type DbfField ¶
type DbfField struct {
Name string
Type DbfFieldType
Length uint8
Count uint8
// StartPos is the calulated (not read from file) position within fixed size record row
StartPos int
// contains filtered or unexported fields
}
func (*DbfField) StringValue ¶
StringValue is the value of this field for the current row.
type DbfFieldType ¶
type DbfFieldType uint8
const ( DbfFieldNumeric DbfFieldType = DbfFieldType('N') DbfFieldChar DbfFieldType = DbfFieldType('C') )
Click to show internal directories.
Click to hide internal directories.