arcgis python newly generated data set

       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

 

Guess you like

Origin www.cnblogs.com/gisoracle/p/11375067.html