Skip to main content

Module schema

Module schema 

Source
Expand description

Derives a dBase table schema from GeoJSON properties.

dBase is far stricter than GeoJSON: field names are capped at 11 bytes, every column has one fixed type, and every record must supply a value for every column. On top of that, dbase crops any value that overruns its declared width — silently. So we make one pass over the data to learn the exact widths needed, rather than guessing and corrupting the tail of long values.

Structs§

Field
One resolved column: where it came from, what it is called in the .dbf, and how it is stored.
Schema
The full set of columns, in the order they first appeared in the input.

Enums§

FieldKind

Constants§

MAX_CHARACTER_WIDTH
Widest character field dBase can describe.