arcgis python 新生成的数据设置

       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