TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSONは、トポロジーを考慮したGeoJSONの拡張です。共有アーク符号化(ポリゴン間の境界を一度だけ格納する)と座標の整数量子化を用いるため、生成されるファイルは同等のGeoJSONより60~80%小さくなります。D3.js、Mapshaper、Observableの標準的な入力で、インタラクティブな階級区分図やWebアトラスに最適です。

今すぐTopoJSONをエクスポート ✨ オープンベータ — 無料、制限なし

主な機能

弧の共有エンコード(GeoJSONより60〜80%小さい)
座標の整数量子化
トポロジを保持した簡略化
フィーチャ属性を保持

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.

TopoJSONファイルを開けるプログラム

次のプログラムおよびアプリケーションは、OSM2CDRからエクスポートしたTopoJSON (Topology-Aware JSON)(.topojson)ファイルを開き、編集し、利用できます:

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

Format specifications

TopoJSON地図を利用するユーザー

🏗
D3.js でのインタラクティブな階級区分図
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Web 地図帳・地図を用いた出版物
A web atlas and cartographic publications where page weight matters.
📊
軽量な行政界地図
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
オフライン Web アプリ(PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
分析・可視化(Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

TopoJSONのエクスポート方法

1
範囲を選択
osm2cdr.ruのインタラクティブ地図上で長方形またはポリゴンを描画します
2
TopoJSONを選択
利用可能な127種類のエクスポートフォーマットの一覧からTopoJSON (Topology-Aware JSON)を選択します
3
エクスポート
「エクスポート」をクリックすると、1〜5分で.topojsonファイルを受け取れます
4
ダウンロード
完成したTopoJSONファイルをダウンロードし、D3.jsで開きます

エクスポート後の開き方

TopoJSONの人気地図

フリー

TopoJSON (Topology-Aware JSON)の地図エクスポートを入手

OpenStreetMapからプロフェッショナルなTopoJSON地図をダウンロード。即時生成、任意の範囲に対応。

無料 /エクスポート
今すぐTopoJSONをエクスポート →

よくある質問

TopoJSON は GeoJSON と何が違うのですか?
TopoJSON を GeoJSON に戻せますか?
なぜ D3.js は TopoJSON を好むのですか?
TopoJSON は 3D に対応していますか?
How are the layers arranged inside the file?
What is quantization and what does it affect?

関連フォーマット

よく一緒にエクスポートされるフォーマット

Related Articles