bagardne

Why aren't my rows being inserted into the table?

Discussion created by bagardne on Nov 22, 2013
Latest reply on Nov 22, 2013 by bagardne
I am attempting to insertRows into my new table from my existing table. It should be scrolling through the existing table and taking that value and placing it into the new table.

    #b. search the dissolved intersection layer
    irows = InsertCursor(street_tally)
    srows = SearchCursor(int_lay, '', '', '', 'COMPOSITE A')
    for srow in srows:
        name = srow.COMPOSITE
        sev = srow.severity
        if prev_name == name:
            tally += int(sev)
            #var = name
            #print name, tally
        else:
            tally = int(sev)
        #tally = int(sev)
        #print name, tally
        irow = irows.newRow()
        irow.AddID = counter
        irow.STREET = name
        irow.SEVERITY = tally
        irows.insertRow(irow)
        counter +=1
        prev_name = name


Thank you again for all your help.

Sincerely,

Bryce

Outcomes