TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON ir topoloģiju atbalstošs GeoJSON paplašinājums. Izmanto koplietotu loku kodēšanu (robežas starp daudzstūriem tiek glabātas tikai vienreiz) un koordinātu veselo skaitļu kvantēšanu — iegūtais fails ir par 60–80% mazāks nekā līdzvērtīgs GeoJSON. Standarta ievaddati programmām D3.js, Mapshaper un Observable; ideāli piemērots interaktīvām horoplētkartēm un tīmekļa atlantiem.

Eksportēt TopoJSON tūlīt ✨ Atklātā beta versija — bezmaksas, bez ierobežojumiem

Galvenās iespējas

✓Koplietotu loku kodēšana (par 60–80% mazāks nekā GeoJSON)
✓Koordinātu veselo skaitļu kvantēšana
✓Topoloģiju saglabājoša vienkāršošana
✓Objektu īpašības saglabātas

Par TopoJSON formātu

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.

Kura programma atver TopoJSON failus

Tālāk norādītās programmas un lietotnes var atvērt, rediģēt un strādāt ar TopoJSON (Topology-Aware JSON) (.topojson) failiem, kas eksportēti no OSM2CDR:

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

Format specifications

Kas izmanto TopoJSON kartes

🏗
Interaktīvas horoplētkartes programmā D3.js
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Tīmekļa atlanti un karšu publikācijas
A web atlas and cartographic publications where page weight matters.
📊
Vieglas administratīvo robežu kartes
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Bezsaistes tīmekļa lietotnes (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Analītika un vizualizācija (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

Kā eksportēt TopoJSON

1
Atlasiet apgabalu
Uzzīmējiet taisnstūri vai daudzstūri interaktīvajā kartē vietnē osm2cdr.ru
2
Izvēlieties TopoJSON
Atlasiet TopoJSON (Topology-Aware JSON) no 127 pieejamo eksporta formātu saraksta
3
Eksportēt
Noklikšķiniet uz Eksportēt un saņemiet savu .topojson failu 1–5 minūtēs
4
Lejupielādēt
Lejupielādējiet gatavo TopoJSON failu un atveriet to programmā D3.js

Kā atvērt pēc eksporta

Populāras kartes formātā TopoJSON

Free

Eksportējiet kartes formātā TopoJSON (Topology-Aware JSON)

Lejupielādējiet profesionālas TopoJSON kartes no OpenStreetMap. Tūlītēja ģenerēšana, jebkurš apgabals.

Bezmaksas / eksports
Eksportēt TopoJSON tūlīt →

Biežāk uzdotie jautājumi

Ar ko TopoJSON atšķiras no GeoJSON? ▼
Vai TopoJSON var pārveidot atpakaļ par GeoJSON? ▼
Kāpēc D3.js dod priekšroku TopoJSON? ▼
Vai TopoJSON atbalsta 3D? ▼
How are the layers arranged inside the file? ▼
What is quantization and what does it affect? ▼

Convert to TopoJSON and back

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

Saistītie formāti

Bieži eksportē kopā

Related Articles