GeoJSON 💻

GeoJSON

Open Beta
.geojson · application/geo+json

GeoJSON là định dạng dữ liệu địa lý mở dựa trên JSON. Giải pháp chuẩn cho các nhà phát triển web, tương thích với Leaflet, Mapbox, OpenLayers, D3.js và bất kỳ phần mềm GIS nào.

Xuất GeoJSON ngay ✨ Open Beta — miễn phí, không giới hạn

Tính năng chính

Định dạng JSON dễ đọc
Thuộc tính đối tượng (tên, loại)
Phép chiếu WGS84
Trình duyệt hỗ trợ sẵn
Example GeoJSON export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Giới thiệu về định dạng GeoJSON

GeoJSON is an open geodata format (RFC 7946) in which geography is written as ordinary JSON: an array of features, each with a geometry and a set of properties. A human can read it in a text editor, any programming language parses it in one line, and practically all web cartography understands it — Leaflet, Mapbox GL, OpenLayers, D3.js — with no plugins or converters.

An OSM map is exported to GeoJSON when you need the features themselves rather than a picture: to attach a layer to a website, compute statistics for a district, filter the categories you need, load the data into PostGIS or run it through GeoPandas. It is also the most convenient intermediate format: from it, ogr2ogr or QGIS will make SHP, GeoPackage, KML — anything you like.

The output is a single UTF-8 file: one FeatureCollection gathering all the layers of the selected area. Every feature keeps its OpenStreetMap attributes (name, type, tags) and a service property _layer with the name of its source layer — one line of filtering takes the data apart again into roads, buildings, water, greenery and points of interest. Coordinates are WGS84 (EPSG:4326), as the specification requires; the recorded precision is six decimal places, about ten centimeters on the ground: the file drops into any GIS and any web framework with no reprojection.

Chương trình nào mở được tệp GeoJSON

Các chương trình và ứng dụng sau có thể mở, chỉnh sửa và làm việc với tệp GeoJSON (.geojson) được xuất từ OSM2CDR:

💻Leaflet 💻Mapbox 🌎QGIS 💻D3.js 💻Kepler.gl 💻GeoPandas

Format specifications

Ai sử dụng bản đồ GeoJSON

🏗
Phát triển web
The native format for Leaflet, Mapbox and OpenLayers: the map is attached to a site with a couple of lines of code.
💻
Bản đồ tương tác
Vector layers with attributes for clickable maps with tooltips and filters.
📊
Trực quan hóa dữ liệu
A ready source for D3.js and dashboards: boundaries, POI and routes in standard JSON.
🎨
API và dịch vụ
A lightweight geodata exchange format for REST APIs and microservices.
🗺
Khoa học dữ liệu
Loading city geometry into GeoPandas and QGIS for spatial analysis.

Cách xuất GeoJSON

1
Chọn khu vực
Vẽ một hình chữ nhật hoặc đa giác trên bản đồ tương tác tại osm2cdr.ru
2
Chọn GeoJSON
Chọn GeoJSON từ danh sách 127 định dạng xuất khả dụng
3
Xuất
Nhấn Xuất và nhận tệp .geojson của bạn trong 1-5 phút
4
Tải xuống
Tải tệp GeoJSON đã sẵn sàng và mở trong Leaflet

Cách mở tệp sau khi xuất

Bản đồ phổ biến ở định dạng GeoJSON

Miễn phí

Nhận bản đồ xuất ở định dạng GeoJSON

Tải bản đồ GeoJSON chuyên nghiệp từ OpenStreetMap. Tạo tức thì, bất kỳ khu vực nào.

Miễn phí / lần xuất
Xuất GeoJSON ngay →

Câu hỏi thường gặp

Tôi có thể mở GeoJSON trong trình duyệt không?
GeoJSON có miễn phí không?
Tôi có thể nạp GeoJSON vào PostGIS không?
How do I split the export back into layers?
Which projection do the coordinates arrive in?
What should I do if the file turns out too big for a browser?

So sánh với các định dạng khác

Định dạng liên quan

Thường được xuất cùng nhau

Related Articles