TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON، GeoJSON کی ایک ٹوپولوجی سے آگاہ ایکسٹینشن ہے۔ یہ مشترکہ قوس انکوڈنگ (پولیگانز کے درمیان حدود صرف ایک بار محفوظ) اور نقاط کی عددی تقسیم استعمال کرتا ہے — نتیجہ فائل مساوی GeoJSON سے 60-80% چھوٹی ہوتی ہے۔ D3.js، Mapshaper اور Observable کے لیے معیاری ان پٹ؛ متعامل کوروپلیتھ نقشوں اور ویب اٹلسز کے لیے بہترین۔

ابھی TopoJSON برآمد کریں ✨ Open Beta — مفت، کوئی حد نہیں

اہم خصوصیات

مشترکہ قوس انکوڈنگ (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 نقشے ڈاؤن لوڈ کریں۔ فوری تخلیق، کوئی بھی علاقہ۔

Free / برآمد
ابھی 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