Skip to content

BarbarossaWang/cn-atlas

Repository files navigation

China Atlas GeoJSON/TopoJSON

This repository provides a convenient redistribution of China's cartographic boundary shapfiles that derived from the ruiduobao/shengshixian.com, 2023 edition as TopoJSON and GeoJSON.

cn-atlas.json

Download

A TopoJSON file containing the geometry collection prefetures, provinces, nation. The geometry is quantized and simplified, but not projected.

prefectures.json

Download

A GeoJSON file containing the geometry object prefetures. The geometry is quantized and simplified, but not projected.

provinces.json

Download

A GeoJSON file containing the geometry object provinces. The geometry is quantized and simplified, but not projected.

nation.json

Download

A GeoJSON file containing the geometry object nation. The geometry is quantized and simplified, but not projected.

Data Formats

Each prefecture has four fields in prefecture object:

  • prefecture.id: the six-digit administrative division codes, such as "110000"
  • prefecture.区划码: same as prefecture.id
  • prefecture.name: the prefecture English name, such as "Beijing"
  • prefecture.地名: the prefecture name, such as "北京市"

prefecture overview


Each province has four fields in provinces object:

  • province.id: the six-digit administrative division codes, such as "130000"
  • province.区划码: same as province.id
  • province.name: the province English name, such as "Hebei"
  • province.地名: the province name, such as "河北省"

province overview


nation object has three fields:

  • nation.id: the string "CN"
  • nation.name: the string "People's Republic of China"
  • nation.地名: the string "中华人民共和国"

nation overview

Usage

Using Chhina Atlas GeoJSON/TopoJSON plot map in browser

Fetch data from CDN

cnAtlas = fetch("https://unpkg.com/cn-atlas/cn-atlas.json").then((response) => response.json())

console.log(cnAtlas)

Donwload data by NPM

npm instal cn-atlas
import cnAtlas from 'cn-atlas';
import { nation, provinces, prefectures } from 'cn-atlas';

console.log(cnAtlas)

Credit

About

Pre-built China administrative boundaries GeoJSON/TopoJSON | 中国行政区划边界

Resources

Stars

Watchers

Forks