def eliminate(save): arcpy.env.workspace = save with arcpy.da.UpdateCursor(os.path.join(save, 'PointToFeature.shp'), 'addNumber') as cursor: # 获取所有重叠区域的地块,并存储至delArr数组 print('获取重叠图斑') for row in cursor: if row[0] <> '168': delArr.append(row[0]) # 把所有重叠地块进行融合至其他地块 print('融合重叠图斑') arcpy.Eliminate_management(os.path.join(save, 'PointToFeature.shp'), os.path.join(save, '成果.shp'), "LENGTH", delArr) 大佬们,我这样子用貌似不行啊,使用Eliminate工具时怎么用代码选中需要消除的图斑 |
全部评论