FlatGeobuf

FlatGeobuf (FGB)

Open Beta
.fgb · application/flatgeobuf

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 đồ.

Xuất FlatGeobuf ngay ✨ Open Beta — miễn phí, không giới hạn

Tính năng chính

Định dạng nhị phân gọn nhẹ
Chỉ mục không gian tích hợp
HTTP range request
Tải từng đoạn nhanh
Example FlatGeobuf export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

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:

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

Format specifications

Ai sử dụng bản đồ FlatGeobuf

🏗
GIS đám mây
The layer sits in object storage and is read directly, with no database and no geoserver.
💻
Truyền phát dữ liệu địa lý
The client fetches only the features in the visible area — thanks to the index and range requests.
📊
Bản đồ web
A vector source for MapLibre, deck.gl and Leaflet that loads faster than an equivalent GeoJSON.
🎨
Tập dữ liệu lớn
Hundreds of thousands of features in one file, without the shapefile's limits on size and field names.
🗺
Kiến trúc serverless
A static file instead of an API: nothing to stand up and nothing to maintain.

Cách xuất FlatGeobuf

1
Chọn khu vực
Vẽ một hình chữ nhật hoặc đa giác trên bản đồ tương tác tại osm2cdr.ru
2
Chọn FlatGeobuf
Chọn FlatGeobuf (FGB) từ danh sách 127 định dạng xuất khả dụng
3
Xuất
Nhấn Xuất và nhận tệp .fgb của bạn trong 1-5 phút
4
Tải xuống
Tải tệp FlatGeobuf đã sẵn sàng và mở trong QGIS

Cách mở tệp sau khi xuất

Bản đồ phổ biến ở định dạng FlatGeobuf

Miễn phí

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.

Miễn phí / lần xuất
Xuất FlatGeobuf ngay →

Câu hỏi thường gặp

Vì sao FlatGeobuf tốt hơn GeoJSON?
Tôi có thể mở FlatGeobuf trong QGIS không?
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?

Định dạng liên quan

Thường được xuất cùng nhau

Related Articles