TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON is 'n topologie-bewuste uitbreiding van GeoJSON. Dit gebruik gedeelde-boog-enkodering (grense tussen poligone word net een keer gestoor) en heelgetal-kwantisering van koördinate — die gevolglike lêer is 60-80% kleiner as die ekwivalente GeoJSON. Standaardinvoer vir D3.js, Mapshaper en Observable; ideaal vir interaktiewe choropleth-kaarte en webatlasse.

Voer TopoJSON nou uit ✨ Oop beta — gratis, geen beperkings nie

Sleutelkenmerke

Gedeelde-boog-enkodering (60-80% kleiner as GeoJSON)
Heelgetalkwantisering van koördinate
Topologie-behoudende vereenvoudiging
Kenmerk-eienskappe behou

Oor die TopoJSON-formaat

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.

Watter program open TopoJSON-lêers

Die volgende programme en toepassings kan TopoJSON (Topology-Aware JSON) (.topojson)-lêers wat uit OSM2CDR uitgevoer is, open, redigeer en daarmee werk:

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

Format specifications

Wie gebruik TopoJSON-kaarte

🏗
Interaktiewe choropleetkaarte in D3.js
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Webatlasse en kaartgedrewe publikasies
A web atlas and cartographic publications where page weight matters.
📊
Liggewig-administratiewegrenskaarte
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Vanlyn webtoepassings (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Analise en visualisering (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

Hoe om TopoJSON uit te voer

1
Kies gebied
Teken 'n reghoek of veelhoek op die interaktiewe kaart by osm2cdr.ru
2
Kies TopoJSON
Kies TopoJSON (Topology-Aware JSON) uit die lys van 127 beskikbare uitvoerformate
3
Uitvoer
Klik op Uitvoer en ontvang jou .topojson-lêer binne 1-5 minute
4
Aflaai
Laai die gereede TopoJSON-lêer af en open dit in D3.js

Hoe om dit ná uitvoer te open

Gewilde kaarte in TopoJSON

Gratis

Kry TopoJSON (Topology-Aware JSON)-kaartuitvoere

Laai professionele TopoJSON-kaarte van OpenStreetMap af. Onmiddellike generering, enige gebied.

Gratis / uitvoer
Voer TopoJSON nou uit →

Gereelde vrae

Hoe verskil TopoJSON van GeoJSON?
Kan ek TopoJSON terug na GeoJSON omskakel?
Waarom verkies D3.js TopoJSON?
Ondersteun TopoJSON 3D?
How are the layers arranged inside the file?
What is quantization and what does it affect?

Convert to TopoJSON and back

Verwante formate

Dikwels saam uitgevoer

Related Articles