I'm still fairly new to GIS and Python but I have a line feature class with one attribute called "View Side" which indicates which direction the buffer should be. I want to create a Python script to iterate through the attribute table and buffer according to the View Side. I have the following code so far, but the end results (the buffers) contain no attributes and I want all the attributes from the original line feature class to be preserved.
buffercursor = arcpy.SearchCursor(fc_albers)
for rows in buffercursor:
if rows.getValue("View_Side") == "L":
side = "LEFT"
elif rows.getValue("Observation_side") == "R":
side = "RIGHT"
arcpy.Buffer_analysis(rows.Shape, fc_buffers2, 250, side, "FLAT", "NONE")
arcpy.Append_management (fc_buffers2, target, 'NO_TEST', '', '')
Why am I doing this? This is a type of walk and view survey. I want to be able to append things to a "master file" down the line. The goal here is everytime I receive a shapefile, I could just plug it in and it'll create these buffers. I could always just select all that are L/R and buffer those and combine them, but this isn't what I'm looking for.