在jupyter中将geojson文件下载到大叶 [英] downloading geojson file into folium in jupyter
本文介绍了在jupyter中将geojson文件下载到大叶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要一张欧洲地图(作为json文件,因此我可以与geojson一起使用)将其作为图层放置在Folium地图上,因此我可以将其数据集嵌入到该地图上,以显示欧洲哪个国家的酒精度最高服务.我在从GitHub获取json文件以在jyputer中打开
I want a map of Europe (as json file, so i can work with geojson) to place it on Folium map as layers so I am able to embed my data set onto it to show which country in Europe has the highest alcohol serving. I am having problems with getting the json file from GitHub to open in jyputer
This is what I have so far and i have the file of europe country in geojson from github https://github.com/Leaflet/Leaflet.VectorGrid/blob/master/docs/eu-countries.geo.json
推荐答案
您将必须下载该文件.现在您将能够添加图层:
You will have to download that file. Now you will be able to add the layer:
# geo_path is the path to your geojson file
map1.choropleth(geo_path=geo_path)
display(map1)
这篇关于在jupyter中将geojson文件下载到大叶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文