小编Ana*_*nas的帖子

Shapely RuntimeWarning:交集遇到无效值

尝试计算两个几何对象之间的交集时收到此警告。

>>> shapely.intersection(LineString([(0, 0), (1, 1)], LineString([(2.5, 2.5), (3, 3)]))
.../lib/python3.9/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
  return lib.intersection(a, b, **kwargs)
Run Code Online (Sandbox Code Playgroud)

python geometry runtime shapely

3
推荐指数
1
解决办法
5935
查看次数

标签 统计

geometry ×1

python ×1

runtime ×1

shapely ×1