My code creates a dissolved feature class with 2 rows. For some reason I am unable to access the 2nd row using the following code:
fcCount = arcpy.GetCount_management(fc)print(fc) #2def getrowValues(): with arcpy.da.SearchCursor(fc, "Field") as cursor: for row in cursor: print(row[0]) #Prints value print(row[1]) #IndexError: tuple index out of rangerowValues = getrowValues()I looked at the examples here, but I was unable to find the source of error.
أكثر...
fcCount = arcpy.GetCount_management(fc)print(fc) #2def getrowValues(): with arcpy.da.SearchCursor(fc, "Field") as cursor: for row in cursor: print(row[0]) #Prints value print(row[1]) #IndexError: tuple index out of rangerowValues = getrowValues()I looked at the examples here, but I was unable to find the source of error.
أكثر...