【发布时间】:2020-09-04 18:12:21
【问题描述】:
我正在尝试将表示海岸红杉范围的 shapefile 覆盖到我在 geoviews 中处理的其他一些数据上。我可以使用 cartopy 和 matplotlib 成功绘制数据。 GeoPandas 读取 shapefile,但将 GeoDataFrame 或单个形状多边形传递给 gv.Shape(如在“Shape”下的 geoviews user guide 中)始终导致
AttributeError: 'list' object has no attribute 'xy'
我不确定问题出在 Shapely 还是 Geoviews 中。我怀疑 geoviews 因为 geopandas 能够重新投影和绘制多边形。
我已经 put up a notebook 演示了问题并提供了 shapefile。
非常感谢任何帮助或想法。
【问题讨论】: