DBaseFile

class DBaseFile(bytes: ByteArray, charset: DBaseCharset? = null, cpgText: String? = null)

Parser for a dBASE III / IV (.dbf) sidecar file holding shapefile attributes. Records are read eagerly into records; row N (one-based, matching the .shp record number) is at records[N - 1].

Mirrors WebWorldWind's DBaseFile + DBaseField + DBaseRecord triplet.

Field types supported: C (character), N (number), F (float — also returned as number), L (logical), D (date string YYYYMMDD). Unknown type bytes cause the parser to drop the field (with a warning) rather than fail.

Constructors

Link copied to clipboard
constructor(bytes: ByteArray, charset: DBaseCharset? = null, cpgText: String? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class ModificationDate(val year: Int, val month: Int, val day: Int)

Date stored in the dBASE header. Months are 1-based here (the on-disk byte is also 1-based; we keep that interpretation).

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Decoded codepage byte (DBF header offset 29). 0 = unspecified.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard