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.
A TopoJSON file containing the geometry collection prefetures
, provinces
, nation
. The geometry is quantized and simplified, but not projected.
A GeoJSON file containing the geometry object prefetures
. The geometry is quantized and simplified, but not projected.
A GeoJSON file containing the geometry object provinces
. The geometry is quantized and simplified, but not projected.
A GeoJSON file containing the geometry object nation
. The geometry is quantized and simplified, but not projected.
Each prefecture has four fields in prefecture
object:
prefecture.id
: the six-digit administrative division codes, such as"110000"
prefecture.区划码
: same asprefecture.id
prefecture.name
: the prefecture English name, such as"Beijing"
prefecture.地名
: the prefecture name, such as"北京市"
Each province has four fields in provinces
object:
province.id
: the six-digit administrative division codes, such as"130000"
province.区划码
: same asprovince.id
province.name
: the province English name, such as"Hebei"
province.地名
: the province name, such as"河北省"
nation
object has three fields:
nation.id
: the string"CN"
nation.name
: the string"People's Republic of China"
nation.地名
: the string"中华人民共和国"
Using Chhina Atlas GeoJSON/TopoJSON plot map in browser
cnAtlas = fetch("https://unpkg.com/cn-atlas/cn-atlas.json").then((response) => response.json())
console.log(cnAtlas)
npm instal cn-atlas
import cnAtlas from 'cn-atlas';
import { nation, provinces, prefectures } from 'cn-atlas';
console.log(cnAtlas)
- ruiduobao/shengshixian.com: provides high-quality adminstrative division
shp
files - topojson/us-atlas: inspiration source
- mbloch/mapshaper: simplify GeoJSON and export TopoJSON
- qgis/QGIS: modify raw
shp
file fields and export GeoJSON - observablehq/plot: plot preview images