How to create a separate shapefile for each row

المشرف العام

Administrator
طاقم الإدارة
What arcpy function can you use to create a separate shapefile for each row in the original shapefile? I want to keep all the attributes of the original.

Am I on the right track?

#create a file for each polygon in the shapefile and name it "NH + ID"with arcpy.da.SearchCursor(NHfilename, ["ID", "SHAPE@"]) as cursor: for row in cursor: out_name = "NH" + str(row[0]) # Define the output shapefile name arcpy.FeatureClassToFeatureClass_conversion(row[1], outDir, out_name)

أكثر...
 
أعلى