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()
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.