鱼C论坛

 找回密码
 立即注册
查看: 2078|回复: 1

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

[复制链接]
发表于 2021-11-16 15:21:49 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
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[2].x, singleCornerslist[2].y), (singleCornerslist[3].x, singleCornerslist[3].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

请大家帮忙看一下问题出在哪里
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-12-8 18:05:47 | 显示全部楼层
代码放出来呀
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-6-30 01:26

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表