AnsweredAssumed Answered

I want to create a few geoprocesses for each of the rows in a feature

Question asked by GISGURU_001 on Sep 21, 2012
Latest reply on Sep 27, 2012 by GISGURU_001
I want to create a few geoprocesses for each of the rows in a feature, so that a row gets worked on at a time then when the operations is finished it moves on to the next row till it gets to the last row, I used the script below but its not working; it creates the buffer for all the features first before moving to the next geoprocessing operation instead of creating the output of the two geoprocesses first then move to the next row. Please what im I doing wrong. Thank you.

fc = 'C:/Users/Administrator/Documents/ArcGIS/Default.gdb/Test' field = "OBJECTID" with arcpy.da.SearchCursor(fc, (field)) as cursor: ...     for row in cursor: ...         arcpy.Buffer_analysis("Test", "DataDrivenPage_Bufferz", "14 meters", "FULL", "ROUND", "NONE")      arcpy.Clip_analysis("DataDrivenPage_Bufferz","Test","dd")

Outcomes