我正在尝试运行一个简单的Cartopy示例:
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines()
plt.show()
但是我收到此错误:
几何必须是Point或LineStringpython: geos_ts_c.cpp:4179: int GEOSCoordSeq_getSize_r(GEOSContextHandle_t, const geos::geom::CoordinateSequence*, unsigned int*): Assertion
0!= cs失败。]
我使用miniconda3安装了Cartopy:conda install -c conda-forge cartopy
我还尝试通过pip(在虚拟环境中)安装Cartopy,但出现相同的错误。我的操作系统是Debian Buster。
任何想法?