try: # Update the spatial index(es) # r = arcpy.CalculateDefaultGridIndex_management(outFeatures) arcpy.AddSpatialIndex_management(outFeatures, r.getOutput(0), r.getOutput(1), r.getOutput(2)) except: pass
原文地址:https://www.cnblogs.com/gisoracle/p/11375067.html
时间: 2024-10-13 07:17:22