How to go about buffering different values in a field separately?

المشرف العام

Administrator
طاقم الإدارة
I have a clip of urban areas where the names are all messy with hyphens, apostrophe's etc so have decided to use the number value for each name to populate a list.

I have a list populated with integer values for each urban area of an urban areas shapefile.I am wanting to buffer each value separately.

At the moment I use a search cursor to add all values of a field in the urban areas shape file to a list and had tried to buffer each value as seen below. I am having an issue because the value is a number or am I going about this the wrong way? Thank you.

clause = '"UA06" < 500'field = ["UA06"]ua_list = []with arcpy.da.SearchCursor(waikato_ua, field, clause) as cursor: for row in cursor: if row[0] not in ua_list: ua_list.append(row[0]) for ua in ua_list: print ua print "Buffering zones outside waikato urban areas" distance = 10000 while distance < 55000: buffer_value = str(ua) + "_" + str(distance) arcpy.Buffer_analysis(str(ua), buffer_value, distance, "OUTSIDE_ONLY", "", "LIST", "")

distance +=10000After this I hope to intersect a land cover data base and LUC data base that are within the buffer zones, using an assumption that land cover such as high producing grass land is productive and LUC less than 4 is productive and calculate the area of productive land within the buffer zones.



أكثر...
 
أعلى