养猪的大哥 发表于 2021-11-16 15:21:49

运行时的一个错误,请大家帮忙看看

Python是3.6.4的
运行时一直报错,错误如下:
Traceback (most recent call last):
File "C:\Users\A\Desktop\GlobalEnviStructWithSquare.py", line 174, in <module>
    ans = intersection_recognition(singleCornerslist, lons, lats)# 两个多边形交叉返回true,否则false
File "C:\Users\A\Desktop\GlobalEnviStructWithSquare.py", line 88, in intersection_recognition
    (singleCornerslist.x, singleCornerslist.y), (singleCornerslist.x, singleCornerslist.y)])
File "D:\python3.6.4\lib\site-packages\shapely\geometry\polygon.py", line 261, in __init__
    ret = geos_polygon_from_py(shell, holes)
File "D:\python3.6.4\lib\site-packages\shapely\geometry\polygon.py", line 539, in geos_polygon_from_py
    ret = geos_linearring_from_py(shell)
File "shapely\speedups\_speedups.pyx", line 413, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: GEOSGeom_createLinearRing_r returned a NULL pointer

请大家帮忙看一下问题出在哪里

代码小白liu 发表于 2021-12-8 18:05:47

代码放出来呀
页: [1]
查看完整版本: 运行时的一个错误,请大家帮忙看看