Geobuf 📦

Geobuf (Protobuf-encoded GeoJSON)

Open Beta
.pbf · application/x-protobuf

Geobuf is a compact binary packing of GeoJSON on Protocol Buffers, created at Mapbox (Vladimir Agafonkin, 2015). It encodes the same objects as GeoJSON but typically 6–8x smaller thanks to varint, coordinate delta encoding, and a key dictionary; decoding returns an equivalent GeoJSON losslessly. It is a transport layer for mobile maps, edge CDN caches, and IndexedDB storage, not an analytical format. Our exporter builds a FeatureCollection from the OSM layers and encodes it into real protobuf .pbf with 6-digit precision (~0.1 m). Important: the format is honest — if encoding fails the export errors out, we do NOT substitute gzipped GeoJSON under a .pbf name.

ఇప్పుడే Geobuf ఎగుమతి చేయండి ✨ ఓపెన్ బీటా — ఉచితం, పరిమితులు లేవు

ముఖ్య లక్షణాలు

Binary packing of GeoJSON on Protocol Buffers, typically 6–8x smaller
Lossless: decoding returns an equivalent GeoJSON
Default coordinate precision of 6 digits (~0.1 m)
geobuf decoders for JavaScript and Python (Leaflet, Mapbox GL, D3)
Honest guarantee: real protobuf or an error, never a substitution

Geobuf ఫార్మాట్ గురించి

Geobuf solves one problem: the same GeoJSON, but many times smaller. Instead of text — Protocol Buffers; instead of repeating property names — a dictionary of keys; instead of full coordinates — the differences between neighboring points, written as variable-length numbers. The meaning of the data does not change, only the packing does.

This is a transport format. It is taken when data has to be delivered: into a mobile app over a weak network, onto a CDN node, into a browser's offline storage. Computing statistics or editing features in it is awkward — for that it is first decoded back into GeoJSON.

The file contains a single FeatureCollection with all the selected layers, encoded as genuine protobuf. Coordinates are rounded to six decimal places, which is about ten centimeters on the ground — more than enough for city-level detail. OpenStreetMap attributes are preserved.

There is no substitution: if the encoding fails, the export ends with an error. Handing you a gzipped GeoJSON under a .pbf extension would be easier, but such a file would not decode with the geobuf library — and so would be useless.

Geobuf ఫైళ్లను ఏ ప్రోగ్రామ్ తెరుస్తుంది

OSM2CDR నుండి ఎగుమతి చేసిన Geobuf (Protobuf-encoded GeoJSON) (.pbf) ఫైళ్లను కింది ప్రోగ్రామ్‌లు మరియు అప్లికేషన్‌లు తెరవగలవు, సవరించగలవు మరియు వాటితో పని చేయగలవు:

💻geobuf (npm) 💻python-geobuf 💻Node.js 💻Mapbox GL JS 💻Leaflet

Format specifications

Geobuf మ్యాప్‌లను ఎవరు ఉపయోగిస్తారు

🏗
Delivering vector data to a mobile app over a slow network
A compact parcel instead of a heavy GeoJSON — the difference is especially noticeable on mobile internet.
💻
Caching OSM selections on an edge CDN at a smaller size
Fewer bytes on every request to the cache: cheaper traffic and a faster response.
📊
Storing offline data in browser IndexedDB in compact form
The data sits packed in the browser's memory and is unpacked as needed.
🎨
Backing up GeoJSON snapshots 6–8x smaller without data loss
The same set of features in a file many times smaller, and decoding returns the original GeoJSON without any loss.

Geobuf ను ఎలా ఎగుమతి చేయాలి

1
ప్రాంతాన్ని ఎంచుకోండి
osm2cdr.ru లోని ఇంటరాక్టివ్ మ్యాప్‌పై ఒక దీర్ఘచతురస్రం లేదా బహుభుజిని గీయండి
2
Geobuf ను ఎంచుకోండి
అందుబాటులో ఉన్న 127 ఎగుమతి ఫార్మాట్‌ల జాబితా నుండి Geobuf (Protobuf-encoded GeoJSON) ను ఎంచుకోండి
3
ఎగుమతి
'ఎగుమతి' క్లిక్ చేసి మీ .pbf ఫైల్‌ను 1-5 నిమిషాల్లో అందుకోండి
4
డౌన్‌లోడ్
సిద్ధంగా ఉన్న Geobuf ఫైల్‌ను డౌన్‌లోడ్ చేసి దానిని geobuf (npm) లో తెరవండి

ఎగుమతి తర్వాత ఎలా తెరవాలి

Geobuf లో జనాదరణ పొందిన మ్యాప్‌లు

ఉచితం

Geobuf (Protobuf-encoded GeoJSON) మ్యాప్ ఎగుమతులను పొందండి

OpenStreetMap నుండి ప్రొఫెషనల్ Geobuf మ్యాప్‌లను డౌన్‌లోడ్ చేయండి. తక్షణ ఉత్పత్తి, ఏ ప్రాంతమైనా.

ఉచితం / ఎగుమతి
ఇప్పుడే Geobuf ఎగుమతి చేయండి →

తరచుగా అడిగే ప్రశ్నలు

Does Geobuf replace GeoJSON?
How do I open a Geobuf .pbf file?
Do you substitute gzipped GeoJSON for Geobuf?
What is the coordinate precision?
Can this .pbf be confused with Mapbox vector tiles?
How much smaller does the file get?

సంబంధిత ఫార్మాట్‌లు

తరచుగా కలిసి ఎగుమతి చేయబడేవి

Related Articles