TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON, GeoJSON'un topoloji farkındalıklı bir uzantısıdır. Paylaşılan yay kodlamasını (poligonlar arasındaki sınırlar yalnızca bir kez saklanır) ve koordinatların tam sayı nicemlemesini kullanır — sonuçtaki dosya, eşdeğer GeoJSON'dan %60-80 daha küçüktür. D3.js, Mapshaper ve Observable için standart girdidir; etkileşimli koroplet haritalar ve web atlasları için idealdir.

TopoJSON formatını şimdi dışa aktarın ✨ Açık Beta — ücretsiz, sınırsız

Temel Özellikler

Paylaşımlı yay kodlaması (GeoJSON'dan %60-80 daha küçük)
Koordinatların tamsayıya nicemlenmesi
Topolojiyi koruyan basitleştirme
Öğe öznitelikleri korunur

TopoJSON Formatı Hakkında

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.

TopoJSON Dosyalarını Hangi Program Açar

Aşağıdaki programlar ve uygulamalar, OSM2CDR'den dışa aktarılan TopoJSON (Topology-Aware JSON) (.topojson) dosyalarını açabilir, düzenleyebilir ve bunlarla çalışabilir:

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

Format specifications

TopoJSON Haritalarını Kimler Kullanır

🏗
D3.js'te etkileşimli koroplet haritaları
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Web atlasları ve harita odaklı yayınlar
A web atlas and cartographic publications where page weight matters.
📊
Hafif idari sınır haritaları
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Çevrimdışı web uygulamaları (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Analitik ve görselleştirme (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

TopoJSON Nasıl Dışa Aktarılır

1
Alan seçin
osm2cdr.ru üzerindeki etkileşimli haritada bir dikdörtgen veya çokgen çizin
2
TopoJSON seçin
Mevcut 127 dışa aktarma formatı listesinden TopoJSON (Topology-Aware JSON) seçin
3
Dışa aktar
Dışa Aktar'a tıklayın ve .topojson dosyanızı 1-5 dakika içinde alın
4
İndir
Hazır TopoJSON dosyasını indirin ve D3.js ile açın

Dışa aktardıktan sonra nasıl açılır

TopoJSON formatında popüler haritalar

Ücretsiz

TopoJSON (Topology-Aware JSON) harita dışa aktarımlarını edinin

OpenStreetMap'ten profesyonel TopoJSON haritaları indirin. Anında oluşturma, her alan.

Ücretsiz / dışa aktarma
TopoJSON formatını şimdi dışa aktarın →

Sıkça Sorulan Sorular

TopoJSON, GeoJSON'dan nasıl farklıdır?
TopoJSON'u tekrar GeoJSON'a dönüştürebilir miyim?
D3.js neden TopoJSON'u tercih eder?
TopoJSON, 3D'yi destekler mi?
How are the layers arranged inside the file?
What is quantization and what does it affect?

İlgili Formatlar

Sıkça Birlikte Dışa Aktarılanlar

Related Articles