geojson详解(引用)

链接:https://www.jianshu.com/p/852d7ad081b3

geojson可用于echarts绘制地图时所使用的地图底图矢量数据,例如:xicheng.json

{
	"type": "FeatureCollection",
	"features": [{
		"type": "Feature",
		"properties": {
			"name": "广安门外"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[116.3223620605466, 39.893801838256],
						[116.34075164794922, 39.8936701335924],
						[116.34143829345703, 39.875317920188344],
						[116.317324492188, 39.8769472480469],
						[116.317324492188, 39.8819472480469],
						[116.319324492188, 39.8819472480469],
						[116.320324492188, 39.8869472480469],
						[116.321824492188, 39.8869472480469]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "广安门内"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[116.34109497070311, 39.87983973554458],
						[116.36993408203125, 39.87970800405549],
						[116.3697624206543, 39.8951188709751],
						[116.35293960571288, 39.894723763816785],
						[116.34984970092775, 39.89380183825623],
						[116.34830474853514, 39.89643587838578],
						[116.3419532775879, 39.896699276830915],
						[116.34178161621092, 39.89393354266699],
						[116.34075164794922, 39.8936701335924]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "陶然亭"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[116.36993408203125, 39.88721629504685],
						[116.37937545776366, 39.88734801211131],
						[116.3792037963867, 39.88036665897025],
						[116.38195037841795, 39.880630119164756],
						[116.38195037841795, 39.878522409266346],
						[116.38383865356444, 39.878390675246706],
						[116.38401031494139, 39.868755941712825],
						[116.34143829345703, 39.869417920188344],
						[116.34109497070311, 39.87983973554458],
						[116.36993408203125, 39.87970800405549]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "大栅栏"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[116.3697624206543, 39.8951188709751],
						[116.39104843139647, 39.895250572855026],
						[116.394345, 39.868843],

						[116.38401031494139, 39.868755941712825],
						[116.38383865356444, 39.878390675246706],
						[116.38195037841795, 39.878522409266346],
						[116.38195037841795, 39.880630119164756],
						[116.3792037963867, 39.88036665897025],
						[116.37937545776366, 39.88734801211131],

						
						[116.36993408203125, 39.88721629504685]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "月坛"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[116.32736206054686, 39.91737289576941],
						[116.35036468505858, 39.91763621372854],
						[116.35053634643556, 39.899728286187894],
						[116.35276794433594, 39.89485546645597],

						[116.34984970092775, 39.89380183825623],
						[116.34830474853514, 39.89643587838578],
						[116.3419532775879, 39.896699276830915],
						[116.34178161621092, 39.89393354266699],
						[116.34075164794922, 39.8936701335924],

						[116.32736206054686, 39.89380183825623]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "金融街"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[
							116.35036468505858,
							39.91363621372854
						],
						[
							116.35036468505858,
							39.92085170443116
						],
						[
							116.36632919311523,
							39.92098334531233
						],
						[
							116.36615753173827,
							39.8951188709751
						],
						[116.35276794433594, 39.89485546645597],
						[116.35053634643556, 39.899728286187894]

					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "西长安街"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[
							116.36632919311523,
							39.92066429748714
						],
						[
							116.38778686523436,
							39.92079595026529
						],
						[116.39104843139647, 39.895250572855026],
						[
							116.36615753173827,
							39.8951188709751
						]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "展览路"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[
							116.34419302368164,
							39.94423128816934
						],
						[
							116.34419302368164,
							39.94883128816934
						],
						[
							116.35019302368164,
							39.94883128816934
						],
						[
							116.35036468505858,
							39.91763621372854
						],
						[116.32736206054686, 39.91737289576941],
						[116.327345, 39.933843],
						[116.327345, 39.936843],
						[116.321345, 39.941843],
						[116.321345, 39.944543]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "新街口"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[
							116.36735916137694,
							39.94383128816934
						],
						[
							116.36632919311523,
							39.92098334531233
						],
						[
							116.35036468505858,
							39.92085170443116
						],
						[
							116.35019302368164,
							39.94383128816934
						]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "什刹海"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[
							116.36735916137694,
							39.9436996796908
						],
						[
							116.38486862182617,
							39.94383128816934
						],

						[
							116.38486862182617,
							39.93663128816934
						],
						[
							116.38886862182617,
							39.93463128816934
						],

						[
							116.38926686523436,
							39.92079595026529
						],
						[
							116.36632919311523,
							39.92066429748714
						]
					]
				]
			]
		}
	}, {
		"type": "Feature",
		"properties": {
			"name": "德胜门"
		},
		"geometry": {
			"type": "MultiPolygon",
			"coordinates": [
				[
					[
						[
							116.3671875,
							39.94383128816934
						],
						[
							116.36529922485352,
							39.957911932580835
						],
						[
							116.3730239868164,
							39.95804351371704
						],
						[
							116.3730239868164,
							39.96172768273857
						],
						[
							116.38349533081055,
							39.96212240336062
						],
						[
							116.37971878051758,
							39.9500166010947
						],
						[
							116.38435363769531,
							39.9500166010947
						],
						[
							116.38492529907225,
							39.94383128816934
						]
					]
				]
			]
		}
	}]
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值