I have a feature class that has a field of unique ID numbers. I would like to create an array of these numbers so I can loop over them in ArcPy. Any ideas?
Take the 2-minute tour
×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.
If you have Arc 10.1 or above, I'd use an arcpy.da cursor. Also specify just the field(s) you want.
|
|||||||||
|
Use a cursor to add to a list. The use the list for whatever.
|
|||||||||||||
|