TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Open Beta
.topojson · application/json

TopoJSON არის GeoJSON-ის ტოპოლოგიის გამთვალისწინებელი გაფართოება. იყენებს გაზიარებული რკალების კოდირებას (პოლიგონებს შორის საზღვრები მხოლოდ ერთხელ ინახება) და კოორდინატების მთელრიცხვა კვანტიზაციას — შედეგად მიღებული ფაილი 60-80%-ით უფრო მცირეა ეკვივალენტურ GeoJSON-ზე. სტანდარტული შესატანი 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
აირჩიეთ 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? ▼

Convert to TopoJSON and back

დაკავშირებული ფორმატები

ხშირად ერთად ექსპორტირებული

Related Articles