Introduction
FlatGeobuf is a binary format for geographic features, based on FlatBuffers and
designed for performance. A file holds a single layer. Files use the extension
.fgb.
Structure
A file begins with magic bytes, which include the major version of the specification and a patch level. A header of variable size follows, written as a FlatBuffer. An optional index, a static packed Hilbert R-tree, may come next, and then the features, each of them a FlatBuffer.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the fields of the header and feature tables, geometry encoding, property values and the layout of the index.
- Viewer: the site has no viewer for this format.
Links
Software
- GDAL – reads and writes FlatGeobuf from version 3.1
- QGIS – geographic information system, supported from version 3.16
- GeoServer – map server, supported from version 2.17
- PostGIS – spatial extension for PostgreSQL, supported from version 3.2.0
Developers
- FlatGeobuf – specification and libraries
Reference
- FlatGeobuf specification layout – the project’s repository
- FlatGeobuf driver – GDAL’s documentation