rows = arcpy.SearchCursor(pathAndNameOfShapefile) for row in rows: valueOfField = row.getValue(fieldName) #do something here with value del rows #delete cursor object variable del row #delete row object variable
I just did something similar but used a search cursor. I iterated through every row of a single field, then used that to build a definition query with the layer object. Sounds like a cursor might work for you...Chris.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.