TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON is een topologiebewuste uitbreiding van GeoJSON. Het gebruikt gedeelde-boog-codering (grenzen tussen polygonen worden slechts één keer opgeslagen) en geheeltallige kwantisering van coördinaten — het resulterende bestand is 60-80% kleiner dan een gelijkwaardige GeoJSON. Standaardinvoer voor D3.js, Mapshaper en Observable; ideaal voor interactieve choropletenkaarten en webatlassen.

TopoJSON nu exporteren ✨ Open bèta — gratis, zonder limieten

Belangrijkste functies

Codering met gedeelde bogen (60-80% kleiner dan GeoJSON)
Kwantisatie van coördinaten in gehele getallen
Topologiebehoudende vereenvoudiging
Objectkenmerken behouden

Over het 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.

Welk programma opent TopoJSON-bestanden

De volgende programma's en toepassingen kunnen TopoJSON (Topology-Aware JSON)-bestanden (.topojson) die uit OSM2CDR zijn geëxporteerd openen, bewerken en verwerken:

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

Format specifications

Wie gebruikt TopoJSON-kaarten

🏗
Interactieve choroplethkaarten in D3.js
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Webatlassen en kaartgestuurde publicaties
A web atlas and cartographic publications where page weight matters.
📊
Lichtgewicht kaarten van bestuursgrenzen
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Offline webapplicaties (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Analyse en visualisatie (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

TopoJSON exporteren

1
Gebied selecteren
Teken een rechthoek of polygoon op de interactieve kaart op osm2cdr.ru
2
TopoJSON kiezen
Selecteer TopoJSON (Topology-Aware JSON) uit de lijst van 127 beschikbare exportformaten
3
Exporteren
Klik op Exporteren en ontvang uw .topojson-bestand binnen 1-5 minuten
4
Downloaden
Download het gerede TopoJSON-bestand en open het in D3.js

Openen na de export

Populaire kaarten in TopoJSON

Free

Ontvang TopoJSON (Topology-Aware JSON)-kaartexports

Download professionele TopoJSON-kaarten van OpenStreetMap. Directe generatie, elk gebied.

Gratis / export
TopoJSON nu exporteren →

Veelgestelde vragen

Wat is het verschil tussen TopoJSON en GeoJSON?
Kan ik TopoJSON terug converteren naar GeoJSON?
Waarom geeft D3.js de voorkeur aan TopoJSON?
Ondersteunt TopoJSON 3D?
How are the layers arranged inside the file?
What is quantization and what does it affect?

Verwante formaten

Vaak samen geëxporteerd

Related Articles