在python中使用shapely库创建多边形时,我遇到了麻烦。polygonShape) for polygonShape in fileAppender]def testPolygon(polygonShape): IllegalArgumentException: Invalid number of points in LinearRing found 3 - must be
这里的图像解释了这个问题,较小的多边形是较大多边形中的一个洞,但两者都是多边形列表中的独立多边形。
在Stackoverflow和gis.stackexchange.com上有很多类似的问题,但我还没有找到一个真正解决这个问题的from shapely.geometry import Point
from shap