我正在尝试识别一个要素类中的重叠要素。作为一个Searchcursor,这段代码工作得很好,但是当我转换为update cursor时,当当前更新(e1[1])被称为。你知道吗
with arcpy.da.UpdateCursor(in_features, ["SHAPE@", "Working_comments"]) as cur:
for e1,e2 in itertools.combinations(cur,2):
if e1[0].overlaps(e2[0]):
e1[1] = "overlaps"
cur.updateRow(e1[1])
目前没有回答
相关问题 更多 >
编程相关推荐