FlatGeobuf là định dạng nhị phân hiệu năng cao cho dữ liệu địa lý, dựa trên FlatBuffers. Được tối ưu cho các quy trình cloud-native và các truy vấn HTTP range. Chỉ mục không gian tích hợp sẵn cho phép truy cập tức thì tới bất kỳ phần nào của bản đồ.
Tính năng chính

Giới thiệu về định dạng FlatGeobuf
FlatGeobuf is a binary vector data format based on FlatBuffers, which appeared in 2018 as "a shapefile for the cloud". Features are laid out in the file sequentially, with a spatial index written alongside, so the fragment you need is read directly, without parsing the whole file.
The main feature is working over HTTP range requests: you can put the file in object storage or on static hosting and read from the browser only the features that fall into the current screen. You don't have to stand up a geoserver for the sake of one layer.
All the selected layers are merged into a single .fgb, and every feature keeps a _layer attribute with the name of its source layer — it takes the export apart again into roads, buildings, water and greenery. OpenStreetMap attributes are preserved, coordinates are WGS84 (EPSG:4326), and the spatial index is written automatically.
Compared to GeoJSON the file is noticeably smaller and reads faster; compared to a shapefile there are no limits on field name length, encoding or size. There is one price to pay: you cannot look at such a file in a text editor.
Chương trình nào mở được tệp FlatGeobuf
Các chương trình và ứng dụng sau có thể mở, chỉnh sửa và làm việc với tệp FlatGeobuf (FGB) (.fgb) được xuất từ OSM2CDR:
Format specifications
- Open standard
- 3D coordinates supported
- Lossless (no quality loss)
- Stores feature attributes
- Output: 1 file
- FlatGeobuf .fgb. Binary streamable spatial format with built-in spatial index. 5-10x faster than Shapefile for large datasets.
Ai sử dụng bản đồ FlatGeobuf
Cách xuất FlatGeobuf
Cách mở tệp sau khi xuất
- QGIS 3.16 and newer (free) — drag the .fgb into the program window; the format is read by the standard GDAL, no plugins needed.
- Python — geopandas.read_file("map.fgb"); a filter on the _layer column splits the export back into the source layers.
- A web map — the flatgeobuf library for JavaScript reads the file by URL and loads only the visible area; it works with Leaflet, MapLibre and deck.gl.
- ogr2ogr — ogr2ogr -f GPKG out.gpkg map.fgb converts it into GeoPackage, GeoJSON or PostGIS.
- Putting it in the cloud — when publishing to S3 or static hosting, enable CORS and Range request support, and the client will fetch only the fragments it needs.
Bản đồ phổ biến ở định dạng FlatGeobuf
Nhận bản đồ xuất ở định dạng FlatGeobuf (FGB)
Tải bản đồ FlatGeobuf chuyên nghiệp từ OpenStreetMap. Tạo tức thì, bất kỳ khu vực nào.
Câu hỏi thường gặp
Định dạng liên quan
Thường được xuất cùng nhau
Related Articles
FlatGeobuf (FGB) — Streaming Binary GIS Format: Internals, R-tree, HTTP Range Requests and OSM Export
Deep dive on FlatGeobuf: Bjorn Harrtell's 2018 binary format, packed Hilbert R-tree, HTTP range requests, OSM export wor
guideFlatGeobuf: A Streaming Format for Web GIS
FlatGeobuf supports HTTP range requests and spatial indexing. Comparison with GeoJSON, examples for Leaflet, MapLibre, a
formatGIS Data Formats in 2026: From Shapefile to Cloud-Native
GIS format overview: Shapefile, GeoPackage, FlatGeobuf, PMTiles, GeoParquet, COG — evolution and choice in 2026.