如何通过手动修改GeoJson文件实现省级镂空Feature制作

发布时间:2021-12-13 19:47:18 作者:柒染
来源:亿速云 阅读:275

如何通过手动修改GeoJson文件实现省级镂空Feature制作,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

一、先用QGIS绘制一个环形Feature并保存为GeoJson,看看环形Feature的数据结构是什么样

{
    "type": "FeatureCollection", 
    "name": "test", 
    "crs": {
        "type": "name", 
        "properties": {
            "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
        }
    }, 
    "features": [
        {
            "type": "Feature", 
            "properties": {
                "id": 1
            }, 
            "geometry": {
                "type": "MultiPolygon", 
                "coordinates": [
                    [
                        [
                            [
                                98.62682583778792, 
                                54.32228639928258
                            ], 
                            [
                                109.40281163615893, 
                                55.957263554897494
                            ], 
                            [
                                116.64873312127047, 
                                55.02829926193448
                            ], 
                            [
                                117.35474598392236, 
                                52.94741924569732
                            ], 
                            [
                                114.64217024847035, 
                                51.832662094141696
                            ], 
                            [
                                112.7842416625443, 
                                50.68074637086755
                            ], 
                            [
                                103.71755016322525, 
                                50.792222086023116
                            ], 
                            [
                                98.62682583778792, 
                                54.32228639928258
                            ]
                        ], 
                        [
                            [
                                103.9976189834291, 
                                53.8974727328586
                            ], 
                            [
                                105.91267520881026, 
                                51.91148849913
                            ], 
                            [
                                107.99323012033545, 
                                54.18118476624841
                            ], 
                            [
                                103.9976189834291, 
                                53.8974727328586
                            ]
                        ]
                    ]
                ]
            }
        }
    ]
}

二、着手制作镂空的内蒙区域GeoJson

了解环形Feature的GeoJson结构之后,接下来我们可以把现有的内蒙古区域GeoJson改造一下,让它变成镂空的。

[ [ 70.35465968686151, 73.302099634723305 ], [ 158.04277887424999, 73.181814148869549 ], [ 157.922493388396219, 11.234788934184962 ], [ 70.114088715153997, 12.317358306868769 ], [ 70.35465968686151, 73.302099634723305 ] ]

如何通过手动修改GeoJson文件实现省级镂空Feature制作

关于如何通过手动修改GeoJson文件实现省级镂空Feature制作问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注亿速云行业资讯频道了解更多相关知识。

推荐阅读:
  1. Manage Attachment feature
  2. 如何通过vue手动封装on、emit、off

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

geojson feature

上一篇:json数据类型怎样直接赋值给相应的对象

下一篇:怎么在Cubieboard上搭建个人云存储

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》