FlatGeobuf

FlatGeobuf (FGB)

Open Beta
.fgb · application/flatgeobuf

FlatGeobuf 是一种基于 FlatBuffers 的高性能地理数据二进制格式。针对云原生工作流和 HTTP 范围请求进行了优化。内置空间索引,可即时访问任意地图片段。

立即导出 FlatGeobuf ✨ Open Beta — 免费无限制

主要特点

紧凑的二进制格式
内置空间索引
HTTP 范围请求
快速分片加载
FlatGeobuf 格式导出示例(莫斯科中心,1x0.5 公里)
示例:莫斯科中心区,约 1x0.5 公里,中等详细度

关于 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.

打开 FlatGeobuf 文件的程序

以下程序可以打开、编辑和处理从 OSM2CDR 导出的 FlatGeobuf (FGB)(.fgb)文件:

🌎QGIS 💻GDAL/OGR 💻GeoPandas 💻MapLibre 💻DeckGL 💻Leaflet (flatgeobuf plugin)

格式规格

谁在使用 FlatGeobuf 地图

🏗
云端 GIS
The layer sits in object storage and is read directly, with no database and no geoserver.
💻
地理数据流式传输
The client fetches only the features in the visible area — thanks to the index and range requests.
📊
网页地图
A vector source for MapLibre, deck.gl and Leaflet that loads faster than an equivalent GeoJSON.
🎨
大型数据集
Hundreds of thousands of features in one file, without the shapefile's limits on size and field names.
🗺
无服务器架构
A static file instead of an API: nothing to stand up and nothing to maintain.

如何导出 FlatGeobuf

1
选择区域
在 osm2cdr 的交互式地图上绘制矩形或多边形
2
选择 FlatGeobuf
从 127 种可用导出格式中选择 FlatGeobuf (FGB)
3
导出
点击导出,1–5 分钟内收到您的 .fgb 文件
4
下载
下载完成的 FlatGeobuf 文件并在 QGIS 中打开

导出后如何打开

FlatGeobuf 格式的热门地图

Free

导出 FlatGeobuf (FGB) 地图

从 OpenStreetMap 下载专业的 FlatGeobuf 地图。即时生成,任意区域。

免费 / 导出
立即导出 FlatGeobuf →

常见问题

FlatGeobuf 为何比 GeoJSON 更好?
我能在 QGIS 中打开 FlatGeobuf 吗?
How do I split the export back into layers?
Which coordinate system does the data arrive in?
Does the file have to be on a server for range requests to work?

相关格式

经常一起导出

Related Articles