TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Price before payment
.topojson · application/json

TopoJSON, GeoJSON ਦਾ ਟੋਪੋਲੋਜੀ-ਜਾਣੂ ਵਿਸਤਾਰ ਹੈ। ਇਹ ਸਾਂਝੇ-ਚਾਪ ਏਨਕੋਡਿੰਗ (ਬਹੁਭੁਜਾਂ ਵਿਚਕਾਰ ਸਰਹੱਦਾਂ ਸਿਰਫ਼ ਇੱਕ ਵਾਰ ਸੰਭਾਲੀਆਂ ਜਾਂਦੀਆਂ ਹਨ) ਅਤੇ ਨਿਰਦੇਸ਼ਾਂਕਾਂ ਦੇ ਪੂਰਨ-ਅੰਕ ਕੁਆਂਟਾਈਜ਼ੇਸ਼ਨ ਦੀ ਵਰਤੋਂ ਕਰਦਾ ਹੈ — ਨਤੀਜਨ ਫਾਈਲ ਬਰਾਬਰ GeoJSON ਨਾਲੋਂ 60-80% ਛੋਟੀ ਹੁੰਦੀ ਹੈ। D3.js, Mapshaper ਅਤੇ Observable ਲਈ ਮਿਆਰੀ ਇਨਪੁੱਟ; ਪਰਸਪਰ-ਕਿਰਿਆਸ਼ੀਲ ਕੋਰੋਪਲੈਥ ਨਕਸ਼ਿਆਂ ਅਤੇ ਵੈੱਬ ਐਟਲਸਾਂ ਲਈ ਆਦਰਸ਼।

OpenStreetMap data as of 5 October 2026 · 16 days ago

ਹੁਣੇ 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.
💻
ਵੈੱਬ ਐਟਲਸ ਅਤੇ ਨਕਸ਼ਾ-ਆਧਾਰਿਤ ਪ੍ਰਕਾਸ਼ਨ
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 ਚੁਣੋ
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? ▼

Convert to TopoJSON and back

ਸੰਬੰਧਿਤ ਫਾਰਮੈਟ

ਅਕਸਰ ਇਕੱਠੇ ਐਕਸਪੋਰਟ ਕੀਤੇ ਜਾਂਦੇ ਹਨ

Related Articles