WKB 🧮

Well-Known Binary (OGC)

Open Beta
.wkb · application/vnd.ogc.wkb

WKB (Well-Known Binary) is the binary representation of vector geometry from the OGC Simple Features standard (1999), the foundation of almost every GIS database: each geometry inside PostGIS, MySQL Spatial or GeoPackage is WKB. The format is several times more compact than textual WKT because coordinates are packed into doubles without ASCII. Our exporter writes the geometries of the selected OSM layers into a .wkb file: every object is standard OGC WKB, but the file is a container — an 8-byte header (a WKB marker plus the number of objects), then geometries with a length prefix, while the coordinate system lies in a companion .prj file. Honestly: to parse the file you have to read the header and the lengths — this is not a single "bare" blob for a direct ST_GeomFromWKB. Attributes are not preserved, and all the selected layers are merged into one stream of geometries (up to 500,000 objects).

OpenStreetMap data as of 24 August 2026 · 42 days ago

WKB қазір экспорттау ✨ Ашық бета — тегін, шектеусіз

Негізгі мүмкіндіктер

✓Each feature's geometry is standard OGC WKB
✓Container: an 8-byte header + length-prefixed geometries
✓Coordinate system in a companion .prj (WKT) file
✓Several times more compact than text WKT (doubles without ASCII)
✓Single layer — a .wkb file, multiple layers — a ZIP archive

WKB форматы туралы

WKB is the binary encoding of geometry from the OGC Simple Features standard: byte order, a shape type code and coordinates as double-precision numbers. Inside PostGIS, GeoPackage and SpatiaLite geometry is stored exactly like this, which is why WKB is read and written by every spatial library — Shapely, GEOS, JTS, GDAL.

This export is taken by people writing their own pipeline: parsing without going through text, loading into a database, testing their own implementation of the standard, compact transfer of geometry between services.

You need to know how the file is arranged in advance. This is not one "bare" geometry but a container: eight bytes of header (a WKB marker and the number of objects), then geometries one after another, each preceded by its length. The geometries themselves are standard OGC WKB and can be fed into ST_GeomFromWKB one by one once the container is parsed. The coordinate system lies in a neighboring .prj file in text form.

The limits: OpenStreetMap attributes are not preserved — geometry only, and all the selected layers are merged into a single stream with no separation. The ceiling is 500,000 geometries. If you need names, tags and layers, take GeoPackage, FlatGeobuf or GeoJSON.

WKB файлдарын қандай бағдарлама ашады

Келесі бағдарламалар мен қосымшалар OSM2CDR-дан экспортталған Well-Known Binary (OGC) (.wkb) файлдарын ашып, өңдеп, олармен жұмыс істей алады:

💻PostGIS 💻Shapely (Python) 💻GDAL/OGR 💻JTS / GEOS 🌎QGIS

Format specifications

WKB карталарын кім пайдаланады

🏗
Building a custom GIS pipeline on Shapely, JTS, or GEOS without parsing GeoJSON
Geometry is read straight into Shapely, JTS or GEOS — with no intermediate text parsing.
💻
Loading geometry into PostGIS or MySQL after parsing the container header
Parsed geometries are fed into ST_GeomFromWKB and land in PostGIS or MySQL.
📊
Checking your implementation against the OGC Simple Features standard
Convenient material for testing your own implementation of the OGC standard on real city data.
🎨
Compact geometry transfer between services as a binary exchange
Compact binary exchange of geometry between services, where text is excessive.

WKB форматын қалай экспорттауға болады

1
Аумақты таңдаңыз
osm2cdr.ru сайтындағы интерактивті картада тіктөртбұрыш немесе көпбұрыш салыңыз
2
WKB таңдаңыз
127 қолжетімді экспорт форматының тізімінен Well-Known Binary (OGC) таңдаңыз
3
Экспорт
Экспорт түймесін басып, .wkb файлыңызды 1–5 минутта алыңыз
4
Жүктеп алу
Дайын WKB файлын жүктеп алып, оны PostGIS бағдарламасында ашыңыз

Экспорттан кейін қалай ашу керек

WKB форматындағы танымал карталар

Тегін

Well-Known Binary (OGC) карта экспорттарын алыңыз

OpenStreetMap-тан кәсіби WKB карталарын жүктеп алыңыз. Лезде жасалады, кез келген аумақ.

Тегін / экспорт
WKB қазір экспорттау →

Жиі қойылатын сұрақтар

Can I INSERT it directly via ST_GeomFromWKB? ▼
Where is the coordinate system stored? ▼
How does WKB differ from WKT? ▼
How do I read WKB in Python? ▼
Are OSM names and tags preserved? ▼
How do I tell one layer from another? ▼
How many objects fit into the file? ▼

What people who already downloaded say

Reviews are quoted in the language their authors wrote them in.

Наконец-то карты можно скачать в векторе. Автору спасибо!
Ильяс, сентябрь 2026
всё очень круто, не ожидал что просто приду и скачаю кусочек карты! спасибо!!!
Сергей, сентябрь 2026
ОГРОМНОЕ СПАСИБО!!! ОЧЕНЬ ХОРОШАЯ ПРОГРАММА!!! Искал карту в векторе на стыке 3 стран - очень помогло!!
Андрей, сентябрь 2026
Ты - молодец! Сделал большое и нужное дело!
Артем, сентябрь 2026
Иван, спасибо огромное! Не просто человек - Человечище!
Константин, сентябрь 2026
иван, вы просто чудо. Спасибо за неимоверно крутой сервис
Студент-архитектор, сентябрь 2026
Относительно быстро и качественно собирает карты, самое приятно что бесплатно. удобно выбирать области
Юзер, сентябрь 2026

Қатысты форматтар

Жиі бірге экспортталады

Related Articles