myFC = r"C:\temp\test.shp" oidFieldName = gp.describe(myFC).oidfieldname searchRows = gp.searchcursor(myFC) searchRow = searchRows.next() while searchRow: oidFieldValue = searchRow.getvalue(oidFieldName) outputFC = r"C:\temp\output_" + str(oidFieldValue) + ".shp" gp.Select(myFC, outputFC, oidFieldName + " = " + str(oidFieldValue) searchRow = searchRows.next()
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.