I have one shapefile that covers an entire city. I also have a list of 100 shapefiles which are buffers in different places in the city. Now I want to clip for each buffer from that city using ArcMap and python. I tried using arcpy in python but the code is not working.
import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "U:\Park and Residential Area\Test\SBA park_res_buffer_5\SBA.gdb"
infeature= "U:\Park and Residential Area\Test\park_res_merge.shp"
clipfeatture = arcpy.ListFeatureClasses("*", "polygon")
for i in clipfeatture:
outclipfeatture = arcpy.Clip_analysis(infeature,i)
outclipfeatture.save("U:\Park and Residential Area\Test\SBA park_res_buffer_5/"*i)
This is the error i get:
Traceback (most recent call last):
File "<pyshell#10>", line 3, in <module> outclipfeatture.save("U:\Park and Residential Area\Test\SBA park_res_buffer_5/"*i)
AttributeError: 'Result' object has no attribute 'save'