#terl应无多部件
with arcpy.da.UpdateCursor(terl,["shape@"]) as cs:
for row in cs:
shpLine = row[0]
ptList =
for part in shpLine:
for pnt in part:
if pnt:
ptList.append(pnt)
ptList2 =
for pt in ptList:
if pt.X==90.0:
continue
else:
ptList2.append(pt)
array = arcpy.Array(ptList2)
shpLine2 = arcpy.Polyline(array,terl)
row[0]=shpLine2
cs.updateRow(row)
1 个回复
zsf - SGG
赞同来自:
为删除特定折点的功能,可采用重新创建Polyline的方式
如下,去掉横坐标为90.0的折点:
要回复问题请先登录或注册