Skip to content

Interface: FieldDescriptor ​

Defined in: types.ts:158

How one GeoJSON property was mapped into a .dbf column.

Properties ​

decimals ​

ts
decimals: number;

Defined in: types.ts:174

Decimal places, for numeric columns. 0 otherwise.


name ​

ts
name: string;

Defined in: types.ts:165

The column name written to the .dbf: at most 11 bytes, sanitised, and unique within the table. Compare with source to spot renames.


source ​

ts
source: string;

Defined in: types.ts:160

The original GeoJSON property name, however long.


type ​

ts
type: "character" | "numeric" | "logical";

Defined in: types.ts:170

The dBase column type inferred from the values seen. Properties holding more than one type, or objects and arrays, fall back to character.


width ​

ts
width: number;

Defined in: types.ts:172

Column width in bytes, sized to the widest value present.

Released under the MIT License.