Xuất các tòa nhà sang CityJSON 2.0 để mô hình hóa thành phố 3D. Định dạng JSON gọn nhẹ với việc khử trùng lặp đỉnh. Được hỗ trợ trong 3DCityDB, QGIS 3D, ninja viewer.
Tính năng chính

Giới thiệu về định dạng CityJSON
CityJSON is a compact way of writing the same city model as CityGML, but in ordinary JSON instead of bulky XML. The same set of concepts (buildings, level of detail, attributes), only the file is many times smaller and is parsed by any language without special libraries. It is a recognized OGC community standard, not an amateur invention.
The format is chosen when a semantic 3D model is needed on the web, in scripts or in exchange between teams: to look at it in a browser viewer, to run it through Python, to put it into a repository, to hand it to colleagues without a heavy GIS stack.
The output is a single file: buildings at LOD1 detail are written as closed volumes extruded from OSM outlines. Vertices are stored as integers with millimeter precision through a scale factor and are deduplicated, so the file comes out noticeably lighter than the equivalent XML. The metadata records the coordinate system and the bounds of the model, and the buildings carry height, floor count and class.
Chương trình nào mở được tệp CityJSON
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 CityJSON (3D City Model) (.city.json) được xuất từ OSM2CDR:
Format specifications
- Open standard
- 3D coordinates supported
- Lossless (no quality loss)
- Stores feature attributes
- Output: 1 file
- CityJSON 2.0 (OGC community standard). Lightweight JSON encoding of CityGML. Opens in QGIS plugin, ninja, FME.
Ai sử dụng bản đồ CityJSON
Cách xuất CityJSON
Cách mở tệp sau khi xuất
- ninja (a free web viewer for CityJSON) — drag the file into the browser window and see the model at once; the fastest way to check the result.
- cjio (Python, free) — the command cjio file.city.json info shows statistics and checks the structure, while export converts the model into OBJ or other formats.
- QGIS 3 — CityJSON opens through the 3D view, convenient for looking at the buildings together with the flat layers of the map.
- Blender — import through the CityJSON add-on, if the model is needed for visualization rather than for computations.
- 3DCityDB and FME — accept CityJSON on a par with CityGML, if the model is headed for a city database.
Bản đồ phổ biến ở định dạng CityJSON
Nhận bản đồ xuất ở định dạng CityJSON (3D City Model)
Tải bản đồ CityJSON chuyên nghiệp từ OpenStreetMap. Tạo tức thì, bất kỳ khu vực nào.
Câu hỏi thường gặp
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
CityJSON — Compact JSON Format for 3D City Models (TU Delft, OGC Community Standard)
CityJSON is a TU Delft JSON encoding of CityGML: 6-10× smaller than XML, v2.0 OGC Community Standard 2024, used by Dutch
guide3D Tiles and CityGML: OGC Standards for Smart Cities
Digital city twins using 3D Tiles and CityGML. LOD levels, Cesium visualization, and applications in urban planning and
usecaseCityJSON and Digital City Twins: From OSM to Smart City
CityJSON for 3D city models, LOD levels, BIM integration, applications in Smart City projects and urban planning.