【发布时间】:2019-03-12 04:53:14
【问题描述】:
我正在尝试使用 Cartopy 离线绘制地图。我找到了这篇文章:
Location of stored offline data for cartopy
但是,将下载文件所在的cartopy.config['data_dir']更改为'C:/...'后,当我尝试绘制海岸线时,它仍然想下载地图。
cartopy.config['data_dir'] = '.../CartopyMaps'
ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines()
控制台说:
Downloading:
http://naciscdn.org/naturalearth/110m/physical/ne_110m_coastline.zip
但是,我在.../CartopyMaps/shapefiles/natural_earth/physical/ 中有ne_110m_coastline dbf、shp 和 shx 文件
为什么 Cartopy 看不到我的本地地图,我该如何解决?
【问题讨论】:
-
有没有人解决这个问题?我有同样的问题。 Cartopy 坚持下载地图,即使我在规定的 data_dir 中有地图