Input format
What is FGB?
FlatGeobuf is an open, performance-oriented binary format for simple features, developed as an open-source project initiated by Björn Harrtell. It targets fast reading of large vector datasets, both locally and over HTTP, and supports streaming and spatially filtered access through range requests without a server-side service.
A file begins with a magic number and a header that holds the layer schema, geometry type, feature count and an optional coordinate reference system. An optional packed Hilbert R-tree spatial index follows, then the features, each serialized with FlatBuffers. Field names and string values are stored as UTF-8 without formal length limits. Point, line, polygon, multi-part and collection geometries are supported, optionally with Z and M values. Each file holds a single layer. The format is designed to be written once and read many times, so editing or appending features generally means rewriting the file.
Typical software
- GDAL/OGR
- QGIS
- PostGIS
- DuckDB
- OpenLayers