2024-03-28 22:12:10 发布
网友
我想知道什么是最快的方法来知道多边形内的点。之前我用了下面的代码,但是速度太慢了。我对python中的搜索引擎一无所知,但如果有人知道这方面的知识,我也希望他能让我知道。你知道吗
from shapely.geometry.polygon import Polygon poly = Polygon(num) with open(file , w) as f: if poly.contains(points) is True: f.write(points)
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐