TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON on GeoJSON-i topoloogiateadlik laiendus. See kasutab jagatud kaarte (arcs) kodeerimist (hulknurkadevahelised piirid salvestatakse vaid korra) ja koordinaatide täisarvulist kvantimist — saadud fail on 60–80% väiksem kui samaväärne GeoJSON. Standardsisend rakendustele D3.js, Mapshaper ja Observable; ideaalne interaktiivsete koropleetkaartide ja veebiatlaste jaoks.

Ekspordi TopoJSON kohe ✨ Avatud beeta — tasuta, ilma piiranguteta

Põhiomadused

Jagatud kaarte kodeerimine (60–80% väiksem kui GeoJSON)
Koordinaatide täisarvuline kvantimine
Topoloogiat säilitav lihtsustamine
Objekti atribuudid säilivad

Vormingu TopoJSON kohta

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.

Milline programm avab TopoJSON-faile

Järgmised programmid ja rakendused suudavad avada, redigeerida ning töödelda OSM2CDR-ist eksporditud TopoJSON (Topology-Aware JSON) (.topojson) faile:

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

Format specifications

Kes kasutab TopoJSON-kaarte

🏗
Interaktiivsed koropleetkaardid D3.js-is
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Veebiatlased ja kaardipõhised väljaanded
A web atlas and cartographic publications where page weight matters.
📊
Kergekaalulised halduspiiride kaardid
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Võrguühenduseta veebirakendused (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Analüütika ja visualiseerimine (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

Kuidas eksportida vormingusse TopoJSON

1
Vali ala
Joonista interaktiivsel kaardil aadressil osm2cdr.ru ristkülik või polügon
2
Vali TopoJSON
Vali 127 saadaoleva eksportvormingu hulgast TopoJSON (Topology-Aware JSON)
3
Ekspordi
Klõpsa „Ekspordi“ ja saa oma .topojson-fail 1–5 minutiga
4
Laadi alla
Laadi alla valmis TopoJSON-fail ja ava see programmis D3.js

Kuidas pärast eksporti avada

Populaarsed kaardid vormingus TopoJSON

Free

Hangi kaardiekspordid vormingus TopoJSON (Topology-Aware JSON)

Laadi alla professionaalsed TopoJSON-kaardid OpenStreetMapi andmetest. Kohene genereerimine, mis tahes ala.

Tasuta / eksport
Ekspordi TopoJSON kohe →

Korduma kippuvad küsimused

Mille poolest erineb TopoJSON GeoJSON-ist?
Kas saan TopoJSON-i tagasi GeoJSON-iks teisendada?
Miks D3.js eelistab TopoJSON-i?
Kas TopoJSON toetab 3D-d?
How are the layers arranged inside the file?
What is quantization and what does it affect?

Convert to TopoJSON and back

Seotud vormingud

Sageli koos eksporditavad vormingud

Related Articles