TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON-ն GeoJSON-ի տոպոլոգիա-գիտակից ընդլայնումն է։ Օգտագործում է ընդհանուր աղեղով ծածկագրում (բազմանկյունների միջև սահմանները պահվում են միայն մեկ անգամ) և կոորդինատների ամբողջաթիվ քվանտացում — ստացված ֆայլը 60-80% ավելի փոքր է, քան համարժեք GeoJSON-ը։ Ստանդարտ մուտքային տվյալ D3.js-ի, Mapshaper-ի և Observable-ի համար. իդեալական է ինտերակտիվ խորոպլետ քարտեզների և վեբ ատլասների համար։

Արտահանել TopoJSON հիմա ✨ Open Beta — անվճար, առանց սահմանափակումների

Հիմնական հատկություններ

Ընդհանուր աղեղով ծածկագրում (60-80% ավելի փոքր, քան GeoJSON-ը)
Կոորդինատների ամբողջաթիվ քվանտացում
Տոպոլոգիա պահպանող պարզեցում
Օբյեկտների հատկությունները պահպանված են

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.
💻
Վեբ ատլասներ և քարտեզահեն հրապարակումներ
A web atlas and cartographic publications where page weight matters.
📊
Թեթև վարչական սահմանների քարտեզներ
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Օֆլայն վեբ հավելվածներ (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
Ցանկից ընտրեք TopoJSON (Topology-Aware JSON)՝ արտահանման 127 հասանելի ֆորմատներից։
3
Արտահանում
Սեղմեք «Արտահանել» և ստացեք ձեր .topojson ֆայլը 1–5 րոպեում։
4
Ներբեռնում
Ներբեռնեք պատրաստ TopoJSON ֆայլը և բացեք այն D3.js-ում

Ինչպես բացել արտահանումից հետո

Հանրաճանաչ քարտեզներ TopoJSON ֆորմատով

Անվճար

Ստացեք TopoJSON (Topology-Aware JSON) քարտեզի արտահանումներ

Ներբեռնեք պրոֆեսիոնալ TopoJSON քարտեզներ OpenStreetMap-ից։ Ակնթարթային ստեղծում՝ ցանկացած տարածքի համար։

Անվճար / արտահանում
Արտահանել 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