我试图使用Shapely parallel_offset
,但似乎找不到它。我已经包含了示例中的导入,但是它无法识别parallel_offset
。在
from matplotlib import pyplot
from shapely.geometry import LineString
from descartes import PolygonPatch
line=LineString([(0,0),(0,1),(1,1),(2,0)])
offset = line.parallel_offset(1,'left',join_style=2)
我得到:
^{pr2}$我做错什么了?在
此功能有两个需要满足的要求:
我已经复制了'你的代码行'如下,这也是工作。在
I got the result as in the figure。在
原因可能是安装错误,请用更新版本重新安装。在
相关问题 更多 >
编程相关推荐