Skip to content

sunzy/world-geo-json-zh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

world-geo-json-zh

简体中文 Geo JSON 世界地图,带有国家(地区)的 ISO 3166 代码、中文简称与全称。含中国南海海域十段线。

A simplified Chinese world map in GeoJSON format, including ISO 3166 codes, Chinese short names, and full names of countries (regions). Contains China's Ten-Dash Line.

🌏 Data

👀 Demo

Install

<script type="module">
    import worldGeoJsonZh from 'https://cdn.jsdelivr.net/npm/@surbowl/world-geo-json-zh/+esm'
</script>

or

npm i @surbowl/world-geo-json-zh

Data

Properties

{
   "type": "FeatureCollection",
   "features": [
      {
         "type": "Feature",
         "properties": {
            "name": "中国",
            "full_name": "中华人民共和国",
            "iso_a2": "CN",   // ISO 3166 Alpha-2 code
            "iso_a3": "CHN",  // ISO 3166 Alpha-3 code
            "iso_n3": "156"   // ISO 3166 Numeric code
         },
         "geometry": {
            "type": "MultiPolygon",
            "coordinates": [ ...... ]
         }
      },
      {
         "type": "Feature",
         "properties": {
            "name": "智利",
            "full_name": "智利共和国",
            "iso_a2": "CL",
            "iso_a3": "CHL",
            "iso_n3": "152"
         },
         "geometry": {
            "type": "MultiPolygon",
            "coordinates": [ ...... ]
         }
      },
      
      ......
      
   ]
}

Source

本项目基于 Natural Earth 1:50m Cultural Vectors Admin 0 – Countries 地图生成,为降低文件体积,使用 Mapshaper 以 Douglas-Peucker 方法进行简化处理(-simplify dp 10% keep-shapes),Polygon 坐标精确到小数点后 6 位。

此外通过参考下列地图对结果进行调整:

  • 参照阿里云 DataV 高德地图
    • 增加:中国南海海域十段线与群岛地图
    • 调整:中国黑瞎子岛界限
    • 调整:中国藏南地区界限
    • 调整:中国西藏阿里地区同印度喜马偕尔邦和北方邦接壤部分界限
  • 参照 Natural Earth 1:10m Cultural Vectors Admin 0 – Countries 地图
    • 增加:美国本土外小岛屿(iso_a2: UM)地图

Note

  • 如果您需要区分中国内地、中国香港、中国澳门、中国台湾,请参考 Issue 《有没有内地和港澳台四个单独拿出来绘制的版本呢》

  • 国际标准化组织尚未制定下列国家(地区)的 ISO 3166 代码,无法通过 ISO 3166 代码匹配到下列国家(地区),您可根据业务需要将 -99 替换为自定义值。

    name iso_a2 iso_a3 iso_n3
    科索沃 XK -99 -99
    北塞浦路斯 -99 -99 -99
    索马里兰 -99 -99 -99
    锡亚琴冰川 -99 -99 -99

References

License

The Unlicense

Contributing

欢迎大家在 Issues 中提供建议、反馈 Bug ❤

About

🌏 简体中文 GeoJSON 世界地图,带有国家(地区)的 ISO 3166 代码、中文简称与全称。A simplified Chinese world map in GeoJSON format, including ISO 3166 codes, Chinese short names, and full names of countries (regions).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 100.0%