geojson乡镇拼接的说明

简介: geojson乡镇拼接的说明

1.新建记事本文件,打开另存为.json文件,utf8编码;(或者直接使用IDE建立utf8的json文件);

2.复制一下内容:

{
  "type": "FeatureCollection",
  "features": []
}


3.筛选乡镇数据,如图:选择格式化的Formatted,点击复制

4.将复制的乡镇边界放入对象中[]中,多个用英文的,隔开;

{
  "type": "FeatureCollection",
  "features": [{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": 
    [
      [
        [
          113.58642780324192,
          32.38950115885626
        ],
        [
          113.59470766963086,
          32.39932294967504
        ],
        [
          113.59593847572461,
          32.41064440143729
        ],
        [
          113.5958609046895,
          32.41583874939646
        ],
        [
          113.59454466355548,
          32.41658806349834
        ],
        [
          113.59095282851945,
          32.418632445724626
        ],
        [
          113.58827168231228,
          32.42003383248601
        ],
        [
          113.5868169051975,
          32.424679516239785
        ],
        [
          113.5884580729748,
          32.426568881551866
        ],
        [
          113.5807182699062,
          32.43345952948857
        ],
        [
          113.58043575931629,
          32.43622100852634
        ],
        [
          113.58036323691512,
          32.43692836019225
        ],
        [
          113.57521582787246,
          32.43934162976945
        ],
        [
          113.56484825684353,
          32.45763211461144
        ],
        [
          113.56321211219482,
          32.46577058209834
        ],
        [
          113.56312476201377,
          32.46619347326077
        ],
        [
          113.56305834672462,
          32.4665153416524
        ],
        [
          113.56404696603354,
          32.46938017430372
        ],
        [
          113.5681337100796,
          32.46948891940585
        ],
        [
          113.56814733205533,
          32.47795112748356
        ],
        [
          113.57611671495093,
          32.47894200590315
        ],
        [
          113.57614663025885,
          32.47905370523128
        ],
        [
          113.57662526765823,
          32.480854834290554
        ],
        [
          113.57646612955274,
          32.48230027809013
        ],
        [
          113.5762647690296,
          32.484131617990904
        ],
        [
          113.57363083065152,
          32.487262896634554
        ],
        [
          113.57289354384146,
          32.49323993439244
        ],
        [
          113.57331193128474,
          32.49996242282293
        ],
        [
          113.57498766294573,
          32.50300555764754
        ],
        [
          113.57753730204337,
          32.50487663316728
        ],
        [
          113.57723654071987,
          32.505706797006795
        ],
        [
          113.57465444639152,
          32.50724342058059
        ],
        [
          113.57068079627142,
          32.51117124052388
        ],
        [
          113.55923689419879,
          32.51582819539884
        ],
        [
          113.55711661066027,
          32.517713216863335
        ],
        [
          113.5541442659699,
          32.52035499509289
        ],
        [
          113.55017011380471,
          32.51972997228734
        ],
        [
          113.5511463218611,
          32.51868511300906
        ],
        [
          113.53926255079034,
          32.51584849682353
        ],
        [
          113.5311821467963,
          32.51101109959597
        ],
        [
          113.52446832267565,
          32.50844913065924
        ],
        [
          113.52017000486438,
          32.506808717736696
        ],
        [
          113.51274087086217,
          32.505911819341975
        ],
        [
          113.51250345905062,
          32.50588286769955
        ],
        [
          113.50787219788707,
          32.505323780660774
        ],
        [
          113.4998210004127,
          32.501444943938274
        ],
        [
          113.49052100971532,
          32.50162974098343
        ],
        [
          113.4832876334999,
          32.4978961494542
        ],
        [
          113.47831956637714,
          32.49533152151131
        ],
        [
          113.46310961658618,
          32.49877658801427
        ],
        [
          113.46162863717488,
          32.49912147667413
        ],
        [
          113.45546285061076,
          32.497703077989705
        ],
        [
          113.45114118328117,
          32.493047363093254
        ],
        [
          113.44283946775006,
          32.48410101392659
        ],
        [
          113.42911453101645,
          32.47463408916616
        ],
        [
          113.42919458474148,
          32.47455661782615
        ],
        [
          113.42933923481901,
          32.473939134614916
        ],
        [
          113.4509915873057,
          32.458362420597226
        ],
        [
          113.45236509933828,
          32.443397987948494
        ],
        [
          113.45267695991407,
          32.44000219936844
        ],
        [
          113.45274309025355,
          32.439287376510514
        ],
        [
          113.46095238547205,
          32.4325878225296
        ],
        [
          113.4630369509175,
          32.43031550342798
        ],
        [
          113.46778051090111,
          32.425145725114334
        ],
        [
          113.4679242992186,
          32.41379519331824
        ],
        [
          113.47385262792112,
          32.40969371806568
        ],
        [
          113.477937731894,
          32.40686727748541
        ],
        [
          113.47904951702485,
          32.40213631028984
        ],
        [
          113.48174270368777,
          32.39067016321921
        ],
        [
          113.4838088438278,
          32.38944183938889
        ],
        [
          113.48775511969438,
          32.384555373965185
        ],
        [
          113.49294395087962,
          32.38368349828015
        ],
        [
          113.49674757831845,
          32.38187724205357
        ],
        [
          113.50213986707062,
          32.38048014631691
        ],
        [
          113.50407511061063,
          32.379978736713824
        ],
        [
          113.50799977051469,
          32.37896136393373
        ],
        [
          113.51136604657017,
          32.377740108487785
        ],
        [
          113.51494761643599,
          32.37613013643845
        ],
        [
          113.51948348242138,
          32.376231853925376
        ],
        [
          113.52907224368704,
          32.378732499894475
        ],
        [
          113.53864768678953,
          32.386315560128665
        ],
        [
          113.54275439895126,
          32.38980458319818
        ],
        [
          113.54477143523795,
          32.39707185897988
        ],
        [
          113.54315170339238,
          32.403836659670155
        ],
        [
          113.54048790680632,
          32.41408329302392
        ],
        [
          113.54071412849862,
          32.416203046984585
        ],
        [
          113.54110270644031,
          32.419840790702295
        ],
        [
          113.54530107082313,
          32.42398702006957
        ],
        [
          113.5481583864761,
          32.42372705457694
        ],
        [
          113.55072911514179,
          32.423492596418015
        ],
        [
          113.55225047916636,
          32.4211539462104
        ],
        [
          113.55369584388222,
          32.41612412484318
        ],
        [
          113.55696472277864,
          32.41144215704101
        ],
        [
          113.56379879244608,
          32.40457156876612
        ],
        [
          113.56668957003299,
          32.403495072970685
        ],
        [
          113.5763614611896,
          32.39989163846236
        ],
        [
          113.58030843370852,
          32.395195100149934
        ],
        [
          113.58228356710896,
          32.39321594240844
        ],
        [
          113.58559783481371,
          32.38989400793215
        ],
        [
          113.58642780324192,
          32.38950115885626
        ]
      ]
    ]
  },
  "properties": {
    "geom": "SRID=4326;MULTIPOLYGON(((113.58654372861 32.4311292947818,113.594274363953 32.4242334016731,113.592634564783 32.4223445722099,113.594087524044 32.4176977817476,113.596766282855 32.4162953110219,113.600355481615 32.4142499703504,113.601670921261 32.413500",
    "provinceœ": "河南省",
    "city‚": "南阳市",
    "coutry": "桐柏县",
    "town": "吴城镇"
  }
}//如果是多个,用','隔开,继续复制]
}


5.如果在echarts中,使用需要将"town": "吴城镇"键值改为name,即:“name”: “吴城镇”.

Done !

相关文章
|
SQL JSON 数据格式
获取中国【省、市、区县、乡镇街道】json,csv,sql数据
获取中国【省、市、区县、乡镇街道】json,csv,sql数据
981 0
|
定位技术
百度地图拾取经纬度转为标准GEOJSON格式的函数解决方案
百度地图拾取经纬度转为标准GEOJSON格式的函数解决方案
262 0
|
4月前
|
编解码
ENVI无缝镶嵌、拼接栅格数据的方法
【8月更文挑战第10天】使用ENVI进行无缝镶嵌的方法包括:准备具有一致空间参考的栅格数据;通过“File”菜单逐个加载数据;启动“Seamless Mosaic”工具;添加待镶嵌图像;调整几何校正、颜色平衡及羽化参数以平滑过渡;设定输出路径与格式;最后执行镶嵌并检查结果质量,必要时微调参数直至满意。
327 1
|
4月前
|
JSON 数据可视化 定位技术
Map——使用BIGEMAP+geojson获取乡镇行政边界数据
Map——使用BIGEMAP+geojson获取乡镇行政边界数据
176 0
|
4月前
Map——全国省市区EXCEL表格(包含code)
Map——全国省市区EXCEL表格(包含code)
61 0
|
JSON 定位技术 数据格式
GeoJSON区县级地理数据信息拼接使用说明
GeoJSON区县级地理数据信息拼接使用说明
661 0
|
定位技术
百度地图开发:字符串经纬度转为经纬度数组的解决方案
百度地图开发:字符串经纬度转为经纬度数组的解决方案
161 0
|
SQL JSON 数据格式
获取【省、市、区县、乡镇街道】json,csv,sql数据
获取【省、市、区县、乡镇街道】json,csv,sql数据
126 1
|
定位技术
百度拾取经纬度坐标转化的geojson数据偏离中心的解决方案
百度拾取经纬度坐标转化的geojson数据偏离中心的解决方案
152 0
qgis 将县区的数据转成市区的边界数据
在第一步的基础上,有了21个面,那么咱们可以对当前的面进行融合操作,生成一个面,也就是咱们需要的市区边界数据。
qgis 将县区的数据转成市区的边界数据