DuckDB 🪵

DuckDB Spatial Database

Open Beta
.duckdb · application/vnd.duckdb

DuckDB is an embedded analytical database its CWI Amsterdam authors call "SQLite for analytics": a single `.duckdb` file, columnar storage, a vectorized engine, and the `ST_*` spatial function set via the spatial extension. Our exporter writes the selected OSM area into a `.duckdb` container where each map layer becomes its own table. To set expectations honestly: geometry is stored as WKT TEXT in a `geom_wkt` column rather than a native GEOMETRY type — to get real geometry you simply call `ST_GeomFromText(geom_wkt)` after `LOAD spatial`. Coordinates stay in WGS84 (EPSG:4326); spatial indexes and Hilbert sorting are not created — those are left to you.

OpenStreetMap data as of 24 August 2026 · 46 days ago

Safirisha DuckDB sasa ✨ Open Beta — bila malipo, bila vikomo

Vipengele Muhimu

✓Single `.duckdb` file — one table per map layer (polygons, lines, points, roads)
✓Geometry in a `geom_wkt` (WKT) column, read via `ST_GeomFromText` after `LOAD spatial`
✓OSM attributes preserved as separate columns; export metadata in a `_metadata` table
✓Coordinates in WGS84 (EPSG:4326), up to 500,000 features per layer
✓Opens via the `duckdb file.duckdb` CLI or `import duckdb` in Python/R

Kuhusu Muundo wa DuckDB

DuckDB is an analytical database that lives in a single file and needs no server. It is often called the SQLite of analytics: columnar storage and a vectorized engine give fast aggregations and joins over millions of rows right on a laptop, while the spatial extension adds the familiar ST_ functions.

A map is exported to DuckDB when you need SQL but do not want to raise PostgreSQL with PostGIS: a one-off analysis in a notebook, an ETL script, a model in dbt, a prototype query before moving it into a big warehouse. The file can simply be handed to a colleague — they will open it with a single command.

The output is a single .duckdb file, where every map layer has become a separate table and OSM attributes have become columns; the export parameters lie in the service table _metadata. The geometry is written as WKT text into the geom_wkt column: that way the file reads even without the spatial extension, and real geometry is obtained by calling ST_GeomFromText after LOAD spatial. The coordinates are WGS84; spatial indexes are not created, that decision is left to you.

Programu Gani Hufungua Faili za DuckDB

Programu na programu-tumizi zifuatazo zinaweza kufungua, kuhariri, na kufanya kazi na faili za DuckDB Spatial Database (.duckdb) zilizosafirishwa kutoka OSM2CDR:

💻DuckDB CLI 💻Python (pip install duckdb) 📐R (install.packages duckdb) 💻DBeaver 💻JupyterLab

Format specifications

Nani Hutumia Ramani za DuckDB

🏗
Ad-hoc spatial analytics in Jupyter without spinning up a PostgreSQL/PostGIS server
A one-off spatial analysis in a notebook — without installing and configuring a database server.
💻
ETL pipelines: read, join and aggregate OSM data in plain SQL with zero infrastructure
Reading, joining and aggregating OSM data with a single SQL statement inside an ETL script.
📊
dbt models and notebook-driven workflows where `.duckdb` is a portable team artifact
A portable artifact for the team: the file goes into the repository and opens the same way for everyone.
🎨
Prototyping queries before migrating to Snowflake/BigQuery
A rough run-in of queries before moving the logic into a big cloud warehouse.

Jinsi ya Kusafirisha DuckDB

1
Chagua eneo
Chora mstatili au poligoni kwenye ramani shirikishi katika osm2cdr.ru
2
Chagua DuckDB
Chagua DuckDB Spatial Database kutoka orodha ya miundo 127 ya usafirishaji inayopatikana
3
Safirisha
Bofya Safirisha na upokee faili yako ya .duckdb ndani ya dakika 1-5
4
Pakua
Pakua faili tayari ya DuckDB na uifungue katika DuckDB CLI

Jinsi ya Kufungua Baada ya Kuhamisha

Ramani maarufu katika DuckDB

Bila malipo

Pata usafirishaji wa ramani za DuckDB Spatial Database

Pakua ramani za kitaalamu za DuckDB kutoka OpenStreetMap. Uzalishaji wa papo hapo, eneo lolote.

Bila malipo / usafirishaji
Safirisha DuckDB sasa →

Maswali Yanayoulizwa Mara kwa Mara

Is geometry stored as a native GEOMETRY type? ▼
How does DuckDB differ from SQLite/GeoPackage? ▼
Are spatial indexes created? ▼
What projection is the data in? ▼
What tables are inside the file? ▼
How do I turn the export into GeoParquet or GeoJSON? ▼
Do I have to install anything to open 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

Miundo Inayohusiana

Husafirishwa Pamoja Mara kwa Mara

Related Articles