【发布时间】:2021-05-26 15:38:10
【问题描述】:
我是 Geopandas 的新手。如何在地图上画一个圆圈?我想定义 LAT/LON 和半径,然后在地图上绘制。
这就是我想要的:
代码如下:
import matplotlib.pyplot as plt
import geopandas
plt.rcParams["font.family"] = "Times New Roman"
states = geopandas.read_file('data/usa-states-census-2014.shp')
type(states)
states.crs
states = states.to_crs("EPSG:3395")
states.boundary.plot(figsize=(18, 12), color="Black")
plt.show()
如何根据纬度/经度和半径绘制圆?
【问题讨论】:
-
你试过我的代码了吗?还有什么问题吗?
-
我认为您提供的代码可以工作,但在尝试安装 cartopy 时出现错误:错误:无法为使用 PEP 517 且无法直接安装的 cartopy 构建轮子
标签: python matplotlib geopandas