一
先获取县级地图轮廓
用GeoAtlas
http://datav.aliyun.com/tools/atlas/#&lat=31.80289258670676&lng=104.150390625&zoom=3
再在县级地图绘制乡镇地图划分
具体划分可以查xx省地图全图高清版
http://geojson.io
用多边形工具抠出乡镇划区
点击多边形修改数据
填写经纬center
http://www.jiqrxx.com/
填写行政区划adcode
https://xingzhengquhua.51240.com/
填写信息
id,name等
save保存
二
或者安装bigemap
下载该乡镇的坐标
更改格式
改为
[经,纬],[经,纬],[经,纬],[经,纬]格式
当遇到某一乡镇有两个或以上区域时(多一层[],并且将Polygon 改为 MultiPolygon)
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "闽宁镇",
"id": "640121104000"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[经,纬],[经,纬]
],
[
[经,纬],[经,纬]
]
]
]
},
//正常只有一个区域时
{
"type": "Feature",
"properties": {
"name": "黄羊滩农场",
"id": "640121400000"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[经,纬],[经,纬]
]
]
}
}
]
}
(机构代码查询)
https://www.cods.org.cn/