Geographic Information Integration of World,世界地理信息集成
searchKeys: 世界各国GEO数据
,Geo data of countries around the world
GeoJSON
数据均在 /dist
目录下,按照国家编码分目录存储
GeoJSON
数据,具体见 /resource/original/noSuchCountries.json
/dist/countries.info.json
中整合世界主要国家或地区的地理信息,包括但不限于以下内容:
WGS84
:为一种大地坐标系,也是目前广泛使用的GPS
全球卫星定位系统使用的坐标系。GCJ02
:又称火星坐标系,是由中国国家测绘局制定的地理坐标系统,是由WGS84
加密后得到的坐标系。BD09
:为百度坐标系,在GCJ02
坐标系基础上再次加密。其中bd09ll
表示百度经纬度坐标,bd09mc
表示百度墨卡托米制坐标。
GCJ02
的坐标系;而 BD09
坐标系为基于 GCJ02
加密的坐标系,亦可以直接使用country type
的说明
Member State
联合国会员国,来源于 United Nations » Member StatesNon-member State
联合国非会员国,即观察员国,来源于 United Nations » Non-member StatesSovereign State
主权国家,来源于 Google翻译 » 主权国家Ramallah
)region_name
/region_code
标记省/州
级行政区划的名称和编码中华人民共和国
🇨🇳
中华人民共和国
所属数据,使用省级(自治区、直辖市)、地级(市、州、盟)、县级(区、市、旗)、乡级(镇、街道)四级区划,详见中华人民共和国民政部 > 行政区划统计表中华人民共和国
省级区划整理数据见中华人民共和国 > 省级行政区划中华人民共和国
具体区划内容参见中华人民共和国民政部 > 行政区划代码中华人民共和国
具体区划编码可参见中华人民共和国统计局 > 统计用区划和城乡划分代码中华人民共和国
行政区别的几点说明
宁夏回族自治区
英文名为 Ningxia Hui Autonomous Region
,但有使用 Ningsia Hui Autonomous Region
,如GeoLite2数据库;台湾省
行政编码为71
,但根据国务院办公厅关于印发《港澳台居民居住证申领发放办法》的通知,台湾身份号码地址码使用830000
,此处暂使用7100000
;
公民身份号码由公安机关按照公民身份号码国家标准编制。香港居民公民身份号码地址码使用810000,澳门居民公民身份号码地址码使用820000,台湾居民公民身份号码地址码使用830000。
陕西
的英文名为Shaanxi
,山西
的英文名Shanxi
,注意区分;香港
🇭🇰 、澳门
🇲🇴 、台湾
的简称使用港
、澳
、台
Country_Code
使用 ISO3166-1
编码,具体见ISO3166-1,及百度百科 - ISO 3166-1GeoJSON
数据来源见5. 参考 中 5.4. 数据来源南朝鲜
> 韩国
见数据字典
GEO
数据
*.info.json
为 基础信息(国家名称、编码、首都信息等)*.geo.json
为 结构化GEO
数据,具体字段见说明数据字典*.all.json
为 基于geo.json
数据格式,整合info.json
数据的结构化数据体*.dist.json
为 常用可直接使用的结构化数据,基本满足构建地图及其他需要tree -a -L 2 -I "node_modules|*.json|.*|.vscode|LICENSE|logs"
.
├── README.md # 说明文档
├── build # 构建脚本
│ ├── index.js # 执行文件
│ └── sparse.js # 抽稀脚本
├── config # 配置文件
├── dist # 输出结果
│ └── CHN # 国家数据,按照国家编码按文件夹组织
├── resource # 源数据
│ ├── gaode # 来源于高德地图API的原始数据,未加工
│ ├── original # 原始数据,已加工
│ ├── raw # 原始数据,未加工
│ └── sql # SQL数据
├── src # 源码
│ ├── common
│ ├── crawler
│ ├── index.js
│ ├── model.js
│ ├── models
│ └── sync.js
├── test
└── yarn.lock
/dist
目录结构/dist/CHN
目录结构.
├── country.bd09.geo.json # BD09坐标系 - 原始数据,来源于坐标系转换,适配百度地图
├── country.bd09.sparse.1.geo.json # BD09坐标系 - 按1km抽稀后结果数据
├── country.bd09.sparse.10.geo.json # 同上,10km抽稀
├── country.bd09.sparse.2.geo.json # 同上,2km抽稀
├── country.bd09.sparse.20.geo.json # 同上,20km抽稀
├── country.bd09.sparse.5.geo.json # 同上,5km抽稀
├── country.gcj02.geo.json # GCJ02坐标系 - 原始数据,来源于高德开放平台,适配高德、腾讯等国内主流地图
├── country.gcj02.sparse.1.geo.json # GCJ02坐标系 - 按1km抽稀后结果数据
├── country.gcj02.sparse.10.geo.json
├── country.gcj02.sparse.2.geo.json
├── country.gcj02.sparse.20.geo.json
├── country.gcj02.sparse.5.geo.json
├── country.wgs84.geo.json # WGS84坐标系 - 原始数据,来源于坐标系转换,适配Google地图
├── country.wgs84.sparse.1.geo.json # WGS84坐标系 - 按1km抽稀后结果数据
├── country.wgs84.sparse.10.geo.json
├── country.wgs84.sparse.2.geo.json
├── country.wgs84.sparse.20.geo.json
├── country.wgs84.sparse.5.geo.json
└── region # 省份数据
└── region.info.json
/dist
其他国家目录结构.
├── country.resource.geo.json # 该国家原始数据,具体数据来源见下 数据来源
└── country.wgs84.geo.json # WGS84坐标系 - 适配Google地图
# 下载项目
git clone https://github.com/occultskyrong/wgii.git
# 安装依赖
yarn install
# 自动生成数据
npm run build
# 【暂不可用】使用sequelize-auto导出model
sequelize-auto -o './models' -h localhost -p 3306 -u root -x root -d test
version | date | desc |
---|---|---|
0.0.1 | 2018-12-09 | 完成联合国会员国国家信息数据整理 |
0.0.1 | 2018-12-13 | 完成中华人民共和国国家GeoJSON 数据整理 |
0.0.1 | 2019-01-11 | 完成联合国会员国国家信息数据输出,见dist/countries_info.json |
0.0.1 | 2019-01-14 | 完成中华人民共和国省级信息数据整理 |
0.0.1 | 2019-01-22 | 完成世界国家数据与ISO3316-1的交叉比对 |
0.0.1 | 2019-01-29 | 完成与 world.geo.json 项目的数据合并 |
ISO3166
整理国家和地区信息fork https://github.com/occultskyrong/wgii
git clone <your own repository>
git branches <your own branch>
git checkout <your own branch>
yarn install -D
# ... something change
eslint --fix .
# ... fix something do not eslint autofix
git cz
# ... step by step add commit with message
git push
# ... there will be eslint check pre-commit
pull request
LICENSE
的开源引用GeoLite2
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.
- DouglasPeucker 道格拉斯-普克算法,是将曲线近似表示为一系列点,并减少点的数量的一种算法
- geojson.io 一个可以测试边界在
- wandergis/coordtransform 提供了百度坐标(
BD09
)、国测局坐标(火星坐标,GCJ02
)、和WGS84
坐标系之间的转换
Geo.json
数据源
- GitHub - johan/world.geo.json ,绝大多数国家
GeoJSON
数据来源于此项目,特此感谢- GitHub - arm0th/CountryGeoJSONCollection ,部分国家
GeoJSON
数据来源- GitHub - jawish/maldives-geo ,马尔代夫 🇲🇻
GeoJSON
数据来源- inditex.cn , 安道尔 🇦🇩
GeoJSON
数据来源- GitHub - misterbisson/bgeo-data,巴林王国 🇧🇭
GeoJSON
数据来源- GitHub - codeforamerica/click_that_hood
- 开发 > Web服务 API > 开发指南 > API文档 > 行政区域查询 , 中国 🇨🇳
GeoJSON
数据来源