Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy,os
- fc_to_clip=r'C:TEST.gdbpolygons123'
- clipfeatures=r'C:TEST.gdbclip_features'
- out_location=r'C:TEST.gdb'
- with arcpy.da.SearchCursor(clipfeatures,['OBJECTID','SHAPE@']) as cursor:
- for row in cursor:
- print row[0]
- arcpy.Clip_analysis(in_features=fc_to_clip, clip_features=row[1],out_feature_class=os.path.join(out_location,'Clip_'+str(row[0])))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement