TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Price before payment
.topojson · application/json

TopoJSON yra topologiją suvokiantis GeoJSON plėtinys. Naudoja bendrų lankų kodavimą (ribos tarp poligonų saugomos tik kartą) ir koordinačių sveikųjų skaičių kvantavimą – gautas failas yra 60–80 % mažesnis nei lygiavertis GeoJSON. Standartinė įvestis D3.js, Mapshaper ir Observable; idealiai tinka interaktyviems choropleto žemėlapiams ir žiniatinklio atlasams.

OpenStreetMap data as of 5 October 2026 · 26 days ago

Eksportuoti TopoJSON dabar ✨ Atviroji beta — nemokamai, be apribojimų

Pagrindinės savybės

✓Bendrų lankų kodavimas (60–80 % mažesnis nei GeoJSON)
✓Koordinačių sveikųjų skaičių kvantavimas
✓Topologiją išsaugantis supaprastinimas
✓Išsaugomos objektų savybės

Apie TopoJSON formatą

TopoJSON was invented by Mike Bostock, the author of D3.js, to solve a simple problem: in GeoJSON neighboring polygons store their shared border twice. TopoJSON moves all the lines into a common array of arcs that the objects then refer to. On top of that, coordinates are rounded to an integer grid and written as increments — the file gets sharply lighter.

The format is taken for web graphics and analytics: choropleths in D3, interactive atlases, boundary maps in Observable, lightweight layers for offline applications. The second motive is simplification: during generalization the shared borders move together, and no gaps appear between neighboring districts.

The output is a single document: every layer becomes a separate object inside it — roads, buildings, water and so on — and object attributes are preserved. Coordinates are in WGS84, up to 100,000 objects per layer. The topology is built by our own code, with no external dependencies.

The price of compactness is the rounding of coordinates. The grid step depends on the size of the area: for a district it is on the order of a meter, for a country hundreds of meters. For a web map that is invisible; for precise measurements take GeoJSON or GeoPackage.

Kokia programa atidaro TopoJSON failus

Šios programos gali atidaryti, redaguoti TopoJSON (Topology-Aware JSON) (.topojson) failus, eksportuotus iš OSM2CDR, ir dirbti su jais:

💻D3.js 💻Mapshaper 💻topojson-server 💻topojson-client 💻Observable 💻ndjson-cli

Format specifications

Kas naudoja TopoJSON žemėlapius

🏗
Interaktyvūs choropleto žemėlapiai D3.js
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Žiniatinklio atlasai ir žemėlapiais grįstos publikacijos
A web atlas and cartographic publications where page weight matters.
📊
Lengvi administracinių ribų žemėlapiai
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Žiniatinklio programos be interneto (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Analitika ir vizualizacija (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

Kaip eksportuoti TopoJSON

1
Pažymėkite sritį
Nubrėžkite stačiakampį arba daugiakampį interaktyviame žemėlapyje osm2cdr.ru
2
Pasirinkite TopoJSON
Iš 127 prieinamų eksporto formatų sąrašo pasirinkite TopoJSON (Topology-Aware JSON)
3
Eksportuoti
Spustelėkite „Eksportuoti“ ir gaukite savo .topojson failą per 1–5 minutes
4
Atsisiųsti
Atsisiųskite paruoštą TopoJSON failą ir atidarykite jį programoje D3.js

Kaip atidaryti po eksporto

Populiarūs TopoJSON formato žemėlapiai

Free

Gaukite TopoJSON (Topology-Aware JSON) žemėlapių eksportą

Atsisiųskite profesionalius TopoJSON žemėlapius iš OpenStreetMap. Momentinis generavimas, bet kuri sritis.

Nemokamas / eksportas
Eksportuoti TopoJSON dabar →

Dažnai užduodami klausimai

Kuo TopoJSON skiriasi nuo GeoJSON? ▼
Ar galiu konvertuoti TopoJSON atgal į GeoJSON? ▼
Kodėl D3.js teikia pirmenybę TopoJSON? ▼
Ar TopoJSON palaiko 3D? ▼
How are the layers arranged inside the file? ▼
What is quantization and what does it affect? ▼

Convert to TopoJSON and back

Susiję formatai

Dažnai eksportuojama kartu

Related Articles