Giter Club home page Giter Club logo

world-geo-json-zh's Introduction

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 《有没有内地和港澳台四个单独拿出来绘制的版本呢》 ,或参考带注释的 JSONC 文件

  • 国际标准化组织尚未制定下列国家(地区)的 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 ❤

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.