(schools, 'schools_lyr') # Hard-coded for input parameter for testing sara = vsGdb + '\CarlislePumpShools' try: cursor = arcpy.SearchCursor(sara, fields="BUFFDIST; UNITS") # old cursor syntax for row in cursor: # Having this block active fails tools # Goal is to add buffer d...
A text editor with syntax highlighting like sublime 3 would be a plus. 1) Iterate Over Features The iteration over features works with a so-called searchCursor: The SearchCursor function establishes a read-only cursor on a feature class or table. The SearchCursor can be used to iterate ...
The update cursor error occurred because you were trying to update the search cursor row, not the update cursor row. InsertRow and updateRow do not have the same syntax. See my blog about Turbo Charging Data Manipulation with Python Cursors and Dictionaries. import arcpy, os, ti...
The update cursor error occurred because you were trying to update the search cursor row, not the update cursor row. InsertRow and updateRow do not have the same syntax. See my blog about Turbo Charging Data Manipulation with Python Cursors and Dictionaries. import arcpy, os, ...