TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON adalah ekstensi GeoJSON yang sadar topologi. Menggunakan pengkodean arc bersama (batas antarpoligon hanya disimpan satu kali) dan kuantisasi koordinat bilangan bulat — file hasilnya 60-80% lebih kecil daripada GeoJSON setara. Masukan standar untuk D3.js, Mapshaper, dan Observable; ideal untuk peta koroplet interaktif dan atlas web.

Ekspor TopoJSON sekarang ✨ Open Beta — gratis, tanpa batas

Fitur Utama

Pengkodean arc bersama (60-80% lebih kecil daripada GeoJSON)
Kuantisasi koordinat bilangan bulat
Penyederhanaan yang mempertahankan topologi
Properti fitur dipertahankan

Tentang Format TopoJSON

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.

Program Apa yang Membuka File TopoJSON

Program dan aplikasi berikut dapat membuka, menyunting, dan mengolah file TopoJSON (Topology-Aware JSON) (.topojson) yang diekspor dari OSM2CDR:

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

Format specifications

Siapa yang Menggunakan Peta TopoJSON

🏗
Peta koroplet interaktif di D3.js
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Atlas web dan publikasi berbasis peta
A web atlas and cartographic publications where page weight matters.
📊
Peta batas administratif yang ringan
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Aplikasi web offline (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Analitik dan visualisasi (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

Cara Mengekspor TopoJSON

1
Pilih area
Gambar persegi panjang atau poligon pada peta interaktif di osm2cdr.ru
2
Pilih TopoJSON
Pilih TopoJSON (Topology-Aware JSON) dari daftar 127 format ekspor yang tersedia
3
Ekspor
Klik Ekspor dan terima file .topojson Anda dalam 1-5 menit
4
Unduh
Unduh file TopoJSON yang sudah siap dan buka di D3.js

Cara Membuka Setelah Ekspor

Peta populer dalam TopoJSON

Gratis

Dapatkan ekspor peta TopoJSON (Topology-Aware JSON)

Unduh peta TopoJSON profesional dari OpenStreetMap. Pembuatan instan, area apa pun.

Gratis / ekspor
Ekspor TopoJSON sekarang →

Pertanyaan yang Sering Diajukan

Apa perbedaan TopoJSON dengan GeoJSON?
Bisakah saya mengonversi TopoJSON kembali ke GeoJSON?
Mengapa D3.js lebih menyukai TopoJSON?
Apakah TopoJSON mendukung 3D?
How are the layers arranged inside the file?
What is quantization and what does it affect?

Format Terkait

Sering Diekspor Bersama

Related Articles